Problems with RCP application (First Problem) [message #445974] |
Sun, 12 March 2006 01:32 |
Antonio Gurisatti Messages: 109 Registered: July 2009 |
Senior Member |
|
|
I have an application (MyApp) that has a perspective with the following initial layout:
public void createInitialLayout(IPageLayout layout) {
layout.setEditorAreaVisible(false);
// Left side area
IFolderLayout leftfolder = layout.createFolder("connections",
IPageLayout.LEFT, 0.33f, layout.getEditorArea());
leftfolder.addPlaceholder(NavigatorView.ID + ":*");
// Top side area
IFolderLayout topfolder = layout.createFolder("editors",
IPageLayout.TOP, 0.70f, layout.getEditorArea());
topfolder.addPlaceholder("com.maguri.derbypad.views.top*" + ":*");
// Bottom side area
IFolderLayout bottomfolder = layout.createFolder("results",
IPageLayout.BOTTOM, 0.25f, layout.getEditorArea());
bottomfolder.addPlaceholder("com.maguri.derbypad.views.bottom* ");
// Show console
bottomfolder.addView(IConsoleConstants.ID_CONSOLE_VIEW);
}
Additionally, In the preWindowOpen() method of the ApplicationWorkbenchWindowAdvisor I created a message console and added it to the console manager.
When the application starts, its supposed to show the left and top areas empty, and the console in the bottom area.
Now, the problem is that the exported application (that runs outside Eclipse) has the following behaviour:
1. The first time I launch the application it's ok (Left and top areas shown empty and console in bottom area).
2. There after, when launching the application, the bottom area (where the console area is) covers all usable area and left and top empty areas are not shown.
Now the real question: Is there a way to keep the behaviour exactly the same as in the first launch of application?
Thanks a lot for any help
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03570 seconds