I have an RCP application in which i changed position of the window(shell) and its size by overriding the postWindowCreate() method in ApplicationWorkbenchWindowAdvisor class, the widgets in the views are not fitted to the changed window size, to see all widgets either i have to maximize the window or move scroll bars of the view to see all the widgets inside the view, is it possible to auto-fit(show all widgets in the current window size without moving scroll bars or maximizing the window) the widgets in the view even if the screen size varies.
Share
Usually, you change the size of the shell in
WorkbenchWindowAdvisor.preWindowOpen(), not inWorkbenchWindowAdvisor.postWindowCreate():Likewise, you can set the window title and the style of the window.
The position of the window is usually best set in
WorkbenchWindowAdvisor.postWindowCreate()…If you must change the size of the window, then remember to call
shell.pack()!