|
Re: How to disable Eclipse e4 max/min/close buttons in TrimmedWindow [message #1830970 is a reply to message #1830948] |
Fri, 07 August 2020 09:49  |
Eclipse User |
|
|
|
Hi Engin,
One possibility is to register a model processor in one of your plugin.xml like this:
<extension
id="id1"
point="org.eclipse.e4.workbench.model">
<processor
apply="initial"
beforefragment="true"
class="esa.egoscc.gsmccc.product.model.TrimBarDecorator">
</processor>
</extension>
Then, create your model processor class. In my example I remove completely the main trim bar of the main application window:
public class TrimBarDecorator
{
@Inject
@Optional
private MWindow window;
@Execute
public void modifyTrimBar(MApplication app)
{
if (this.window == null)
{
this.window = app.getChildren().get(0);
}
this.window.getPersistedState().put(IPresentationEngine.STYLE_OVERRIDE_KEY, String.valueOf(SWT.NO_TRIM));
}
}
Best regards,
David
|
|
|
Powered by
FUDForum. Page generated in 0.02788 seconds