Reputation: 621
There is setMinimumSize option in Eclipse RCP but no setMaximumSize, is there any way to implement that type of function ?
Upvotes: 2
Views: 486
Reputation: 7229
There is no way you could set a max. size to an app.
A workaround could be the following:
On your ApplicationWorkbenchWindowAdvisor
class, at preWindowOpen()
method, you could set your maximum configurer.setInitialSize()
and block the maximize
function, hidding the button via configurer.setShellStyle(SWT.MIN | SWT.CLOSE);
Upvotes: 1