Community
Participate
Working Groups
Actually, what I want is adding the published API to manage editors' layout(such as IDE.openEditor(IWorkbenchPage page, IFile input, String editorStackID)), and change the perspectiveExtensions' extension point to add the editors' layout information(such as different types of file have different stacks): <extension point="org.eclipse.ui.perspectiveExtensions"> <perspectiveExtension targetID="org.eclipse.ui.resourcePerspective"> <actionSet id="org.eclipse.jdt.ui.JavaActionSet"/> <viewShortcut id="org.eclipse.jdt.ui.PackageExplorer"/> <newWizardShortcut id="org.eclipse.jdt.ui.wizards.NewProjectCreationWizard"/> <perspectiveShortcut id="org.eclipse.jdt.ui.JavaPerspective"/> <view id="org.eclipse.jdt.ui.PackageExplorer" relative="org.eclipse.ui.views.ResourceNavigator" relationship="stack"/> <view id="org.eclipse.jdt.ui.TypeHierarchy" relative="org.eclipse.ui.views.ResourceNavigator" relationship="left" ratio="0.50"/> <!--add editor stack layout information just like view layout--> <editorStack id="DefaultEditorWorkbook"/><!-- this is the default workbook id--> <editorStack id="MyNewEditorStack" relative="DefaultEditorWorkbook" relationship="bottom" ratio="0.50"/> </perspectiveExtension> </extension> Then, in my applicaiton, I can call the IDE.openEditor(workbenchPage, file, "MyNewEditorStack") to open the editor and place it at right position. But, if many plug-ins have their own editorStack definitions, the editor area will be in a mess... Hmm, hope a best solution could be given, :) Thanks!
*** Bug 167338 has been marked as a duplicate of this bug. ***
Mmm. Paul, do you have an opinion on this? This is more closely related to perspectives so I dont feel comfortable saying yay or nay on my own.
Maybe, it's not a good idea that editor layout information have relation to perspectives... But, it's useful if providing published API to manage the editors' layout, such as opening an editor at right position(stack), moving an editor to another position(stack)...
As per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009
Remy is now responsible for watching the [EditorMgmt] component area.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.