[SOLVED] RAP E4 - Window properties and Tags [message #1719332] |
Thu, 07 January 2016 10:17 |
Eclipse User |
|
|
|
Hello,
I just switch to Eclipse E4 RAP after years of using RAP with Eclipse RCP 3.x, and I have difficulties to go back to the same appearance for my RAP application.
In Eclipse RAP I used to setup the properties of my window in ApplicationWorkbenchWindowAdvisor with the method :
@Override
public void preWindowOpen() {
this.configurer = getWindowConfigurer();
configurer.setShowCoolBar(false);
configurer.setShowMenuBar(false);
configurer.setShowStatusLine(false);
configurer.setShowPerspectiveBar(false);
configurer.setShowProgressIndicator(false);
configurer.setShowFastViewBars(false);
configurer.setTitle("Listeriomics");
configurer.setShellStyle(SWT.NO_TRIM);
}
Now I am using Application.e4xmi. So I should setup these properties as Tags in the xmi file. By searching on the internet I only find the Tag: shellMaximized, to setup full screen mode. But I can't find the other available tags/properties.
Where can I find them ?
Basically I want my window to have no toolbar and no window frame = minimize, maximize, close button. As I am developping a website this is useless.
[Updated on: Wed, 20 January 2016 14:11] by Moderator Report message to a moderator
|
|
|
|
Re: RAP E4 - Window properties and Tags [message #1720709 is a reply to message #1719688] |
Wed, 20 January 2016 12:00 |
Eclipse User |
|
|
|
Thanks for your reply.
I am now in full screen mode but I still have the trim.
What do I have to add in my "ApplicationConfiguration" ?
And where ?
In OSGI-INF/contribution.xml ?
or directly in :
public class BasicApplication implements ApplicationConfiguration {
public void configure(Application application) {
System.out.println("run");
Map<String, String> properties = new HashMap<String, String>();
properties.put(WebClient.PAGE_TITLE, "Hello e4 RAP");
application.addEntryPoint("/List", new E4EntryPointFactory(E4ApplicationConfig.create("platform:/plugin/bacnet.e4.rap/Application.e4xmi")), properties);
application.setOperationMode( OperationMode.SWT_COMPATIBILITY );
}
}
[Updated on: Wed, 20 January 2016 14:13] by Moderator Report message to a moderator
|
|
|
Re: RAP E4 - Window properties and Tags [message #1720716 is a reply to message #1720709] |
Wed, 20 January 2016 14:08 |
Eclipse User |
|
|
|
Ok, I found it but it is really not obvious...
I followed this tutorial: https://shomeier.wordpress.com/2014/12/15/hiding-the-menu-bar-for-rcprap-with-eclipse-4/
In the Application.e4xmi > Trimmed Window panel. Select Supplementary, and add in the Persisted State: Key=styleOverride Value=8
That is really what I dislike with the switch to Eclipse e4. In the past everything was done through Java method which we use to Override, and thus the automatic text completion tools was helping us to go through every porperties possible which one can modify for Perspective, Views, Dialogs, etc... Now it is through xml file, and (key,values) pairs. So there is no way one can know easily the list of properties, tags, state, one can use and modify.
|
|
|
Re: RAP E4 - Window properties and Tags [message #1720718 is a reply to message #1720709] |
Wed, 20 January 2016 14:09 |
Eclipse User |
|
|
|
Ok I found how to do it following this link:
https://shomeier.wordpress.com/2014/12/15/hiding-the-menu-bar-for-rcprap-with-eclipse-4/
You have to go in the Trimmedwindows properties and add in the PersitedState: key=styleOverride value=8
That is really what I dislike with the switch to Eclipse e4. In the past everything was done through Java method which we use to Override, and thus the automatic text completion tools was helping us to go through every porperties possible which one can modify for Perspective, Views, Dialogs, etc... Now it is through xml file, and (key,values) pairs. So there is no way one can know easily the list of properties, tags, state, one can use and modify.
|
|
|
Re: RAP E4 - Window properties and Tags [message #1720719 is a reply to message #1720709] |
Wed, 20 January 2016 14:10 |
Eclipse User |
|
|
|
Ok I found how to do it following this link:
https://shomeier.wordpress.com/2014/12/15/hiding-the-menu-bar-for-rcprap-with-eclipse-4/
You have to go in the Trimmedwindows properties and add in the PersitedState: key=styleOverride value=8
That is really what I dislike with the switch to Eclipse e4. In the past everything was done through Java method which we use to Override, and thus the automatic text completion tools was helping us to go through every porperties possible which one can modify for Perspective, Views, Dialogs, etc... Now it is through xml file, and (key,values) pairs. So there is no way one can know easily the list of properties, tags, state, one can use and modify.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04610 seconds