Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » How to set/modify the style of the application window
How to set/modify the style of the application window [message #871237] Fri, 11 May 2012 14:36 Go to next message
Fausto Telia is currently offline Fausto Telia
Messages: 8
Registered: May 2012
Junior Member
I need to set a specific style to the main application window.

In RCP 3.X this setting was done in the preWindowOpen() method of the workbench window advisor, before the application window was created.

public void preWindowOpen() {

IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
configurer.setInitialSize(new Point(1024, 768-1));

--------> configurer.setShellStyle(0);
......


Is there any way to do the same in RCP 4?

In the application model I have defined a Window not a TrimmedWindow.

Thanks
fausto
Re: How to set/modify the style of the application window [message #871242 is a reply to message #871237] Fri, 11 May 2012 15:20 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5321
Registered: July 2009
Senior Member
The only solution I can think of is to write your own renderer.

Can you file a bug so that we allow this to be configured through CSS.
All we would need to do is to make the WBWRenderer access the CSSEngine
to query the shell-style value.

Tom

Am 11.05.12 16:36, schrieb Fausto Telia:
> I need to set a specific style to the main application window.
>
> In RCP 3.X this setting was done in the preWindowOpen() method of the
> workbench window advisor, before the application window was created.
>
> public void preWindowOpen() {
>
> IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
> configurer.setInitialSize(new Point(1024, 768-1));
>
> --------> configurer.setShellStyle(0);
> ......
>
>
> Is there any way to do the same in RCP 4?
>
> In the application model I have defined a Window not a TrimmedWindow.
>
> Thanks
> fausto
Re: How to set/modify the style of the application window [message #871281 is a reply to message #871242] Fri, 11 May 2012 18:31 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de Alwis
Messages: 242
Registered: July 2009
Senior Member
We can't get shell styles from CSS as we don't have a widget to look up against.

A workable approach would be to have the renderer look for SWT.XXX-style tags in the MWindow's tags.
Re: How to set/modify the style of the application window [message #871527 is a reply to message #871281] Mon, 14 May 2012 10:34 Go to previous messageGo to next message
Fausto Telia is currently offline Fausto Telia
Messages: 8
Registered: May 2012
Junior Member
As suggested, I have submitted bug 379396.
thanks
fausto
Re: How to set/modify the style of the application window [message #996977 is a reply to message #871527] Thu, 03 January 2013 10:28 Go to previous message
Gowtham Prasad is currently offline Gowtham Prasad
Messages: 2
Registered: January 2013
Junior Member
Cant we create tags and use them on application window
Previous Topic:Decorating tab icons
Next Topic:Eclipse 4 user interface testing with SWTBot
Goto Forum:
  


Current Time: Thu Sep 18 01:52:27 GMT 2014

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

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