-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Easy way to disable window resizing #452
Comments
There's no such feature currently but it would be easy to add - until then the only possibility is to provide your own renderer for MWindow by subclassing "DefWindowRenderer" and "DefWindowRenderer.WWindowImpl" and overloading there "createWidget" (https://github.com/eclipse-efx/efxclipse-rt/blob/3.x/modules/ui/org.eclipse.fx.ui.workbench.renderers.fx/src/main/java/org/eclipse/fx/ui/workbench/renderers/fx/DefWindowRenderer.java#L456). Of course you could also do all that using eg https://wiki.eclipse.org/Efxclipse/Runtime/e4#ELifecycleService Maybe you want to provide a PR |
@tomsontom Thanks a lot for your quick response! I have tried the following as an easy way to achieve this:
and Somehow, the lifecycle callback is not getting invoked at all whereas I debugged that the addon can successfully create the instance of the lifecycle class. Do you have any idea why the lifecycle callback is not getting executed? Eagerly looking forward to your further assistance. |
As far as I debugged, for |
Is there any easy way to disable window resizing? for example, using persisted properties, similar to Eclipse e4 with SWT where we can disable the resizing by setting
styleOverride
persisted property to the numeric value ofSWT.CLOSE | SWT.TITLE
.The text was updated successfully, but these errors were encountered: