Problems with RCP application (First Problem) [message #445974] |
Sat, 11 March 2006 20:32  |
Eclipse User |
|
|
|
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
|
|
|
|
|
Re: Problems with RCP application (First Problem) [message #1148167 is a reply to message #445974] |
Mon, 21 October 2013 06:08  |
Eclipse User |
|
|
|
Hello, since it has been a long time, i am not sure if anyone is reading again this post. Nevertheless, I am running into the same (or a very similar) problem. I created an eclipse RCP application and a product with three perspectives. There are a lot of functions implemented, so I tried to clean up the GUI. Each function with its appropriate button is only visible when its belonging perpespective is active. So there are a lot of GUI icons not shown. This works fine while starting the product from the workbench and also launching the first time after exporting the product.
When launching another time, every icon is shown.
I tried this process in Juno and in Kepler, but no difference. There is also no difference when trying the same process in Ubuntu Linux or Windows. I tried to print a console message and discovered the the ApplicationWorkbenchAdvisor.getInitialPerspectiveID() is called a remarkable amount of times during startup, even when starting a second time.
Is there any help or any hint for help available?
|
|
|
Powered by
FUDForum. Page generated in 0.07982 seconds