0

I want to restrict the window size of an RCP app from resizing. So in prewindowopen of ApplicationWorkbenchWindowAdvisor class I tried

IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
    configurer.setShellStyle(SWT.CLOSE | SWT.MIN | SWT.MODELESS | SWT.BORDER | SWT.TITLE);

But it does not seem to have any effect on the window. When I tried the same things in a dialog this seems to work. Any clue on this will really help.

Rüdiger Herrmann
  • 20,512
  • 11
  • 62
  • 79
Rajesh Kumar Dash
  • 2,203
  • 6
  • 28
  • 57

1 Answers1

0

This looks like Eclipse bug 432501 which is saying the setShellStyle is being ignored in Eclipse 4. There is currently no fix for this.

greg-449
  • 109,219
  • 232
  • 102
  • 145
  • any alternative to restrict shell from resizing .I donot want to add listener on shell – Rajesh Kumar Dash Apr 17 '15 at 09:52
  • You might be able to edit the application.e4xmi and use 'styleOverride' (see http://blog.vogella.com/2014/03/17/using-eclipse-application-model-persisted-state-to-specify-the-swt-stylebits/) – greg-449 Apr 17 '15 at 10:08
  • I am using eclipse 3x on eclipse 4 Still i have not moved to E4 . – Rajesh Kumar Dash Apr 17 '15 at 10:11
  • The e4xmi file is still used with 3.x on Eclipse 4 (called LegacyIDE.e4xmi in the org.eclipse.platform plugin). I believe it is possible to modify this. – greg-449 Apr 17 '15 at 10:17