|
Re: when using setSaveAndRestore() the application always show the editor area [message #832747 is a reply to message #832650] |
Fri, 30 March 2012 10:36   |
Eclipse User |
|
|
|
I debugged the application, and I saw something weird...
My `Perspective` class is like this
public void createInitialLayout(IPageLayout layout) {
IPartService partService = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getPartService();
partService.addPartListener(new PerspectiveListenerAdapter());
this.layout = layout;
String editorAreaId = layout.getEditorArea();
layout.createPlaceholderFolder(FI_TOP, IPageLayout.TOP, ratioTop, editorAreaId);
layout.createPlaceholderFolder(FI_BOTTOM, IPageLayout.BOTTOM, ratioBottom, editorAreaId);
layout.setEditorAreaVisible(false);
}
but, when i set `setSaveAndRestore` to true, the Application doesn't hit `createInitialLayout`
is this a bug?
|
|
|
|
Re: when using setSaveAndRestore() the application always show the editor area [message #835157 is a reply to message #834840] |
Mon, 02 April 2012 17:35  |
Eclipse User |
|
|
|
I believe that the creatInitialLayout will only be called once if setSaveAndRestore is true. Calling it on every launch would defeat the purpose of the feature. A value of true says that the Eclipse framework tracks the layout of the perspective so customizations by the user are saved from one session to the next. If createInitialLayout were called, it would wipe out the layout customized by the user.
|
|
|
Powered by
FUDForum. Page generated in 0.06620 seconds