Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » How to disable Eclipse e4 max/min/close buttons in TrimmedWindow(rap e4 min/max/close)
How to disable Eclipse e4 max/min/close buttons in TrimmedWindow [message #1830948] Fri, 07 August 2020 03:48 Go to next message
Eclipse UserFriend
My Eclipse e4 application contains a TrimmedWindow. This menu cannot be moved or closed. Now I'm searching a way to disable max/min/close of that Trimmedwindow.

Is there some tag available for the trimmedwondow or can I do this in code without fullscreen enabling?

index.php/fa/38752/0/

  • Attachment: buttons.PNG
    (Size: 8.83KB, Downloaded 338 times)
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Mouse move events for TreeViewer
Next Topic:[ANN] RAP 3.13 M2 is available for download
Goto Forum:
  


Current Time: Wed May 21 08:31:48 EDT 2025

Powered by FUDForum. Page generated in 0.02788 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top