Bug 167336 - [EditorMgmt][Perspectives] Add edtiors' layout information to perspectiveExtensions' extensiton point
Summary: [EditorMgmt][Perspectives] Add edtiors' layout information to perspectiveExte...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 167338 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-12-10 02:23 EST by Jerome CLA
Modified: 2019-09-06 16:17 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jerome CLA 2006-12-10 02:23:32 EST
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!
Comment 1 Tod Creasey CLA 2006-12-11 09:27:06 EST
*** Bug 167338 has been marked as a duplicate of this bug. ***
Comment 2 Kim Horne CLA 2006-12-11 09:44:48 EST
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. 
Comment 3 Jerome CLA 2006-12-11 21:20:02 EST
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)...
Comment 4 Susan McCourt CLA 2009-07-09 19:09:34 EDT
As per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009
Comment 5 Boris Bokowski CLA 2009-11-17 13:04:59 EST
Remy is now responsible for watching the [EditorMgmt] component area.
Comment 6 Eclipse Webmaster CLA 2019-09-06 16:17:56 EDT
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.