Can't resize and remove title bar of a workbench window [message #989465] |
Thu, 06 December 2012 05:36  |
Eclipse User |
|
|
|
Hi Eclipse Community,
I'm new to Eclipse RCP programming and I need some help to overcome a problem I stumbled upon while approaching my first "Hello RCP" application. I've just installed "Eclipse for RCP and RAP Developers" Juno SR1 on my 64-bit Windows 7 machine. I've created a new plug-in project using the "Hello RCP" template. I've tried to launch the application and everything works fine showing a window with an empty workbench.
The problem is that when I try to configure some aspects of this window, adding code into the preWindowOpen() method of ApplicationWorkbenchWindowAdvisor, some of that configurations works and some not. First I tried to rename and resize the window, here's the code:
public void preWindowOpen() {
IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
configurer.setInitialSize(new Point(200, 200));
configurer.setShowCoolBar(false);
configurer.setShowStatusLine(false);
configurer.setTitle("My new Title"); //$NON-NLS-1$
}
The title change works just fine, but the window size remains unchanged no matter which values I use as arguments of the Point object instantiation.
Then I tried to manipulate the shell style of the window, removing the window border and title bar through the configurer.setShellStyle(SWT.NO_TRIM) method call but that seems to be unresponsive too.
What I'd like to have is a smaller window without border or title bar. Can someone help me figure out what I'm doing wrong?
Thanks,
Marco
|
|
|
|
Powered by
FUDForum. Page generated in 0.03868 seconds