Bug 430862 - [Perspectives] Customized Perspective with Editors
Summary: [Perspectives] Customized Perspective with Editors
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.3   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-21 06:19 EDT by rahul kumar CLA
Modified: 2014-04-11 14:32 EDT (History)
0 users

See Also:


Attachments
Customized Perspective (172.15 KB, image/png)
2014-03-21 06:19 EDT, rahul kumar CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description rahul kumar CLA 2014-03-21 06:19:39 EDT
Created attachment 241091 [details]
Customized Perspective

In Kepler, I moved an editor(e.g. Activator.java editor) adjacent to the views. After this I saved the perspective. Now when ever I reset this perspective the mentioned editor automatically moves to the defined place. This is great. But now the problem is I want to use the same perspective in my eclipse application also. But when I checked Perspective class, it does not has any methods to fix the position of a specific editor. Even PerspectiveExtensions extension point does not has any attributes for this. So, Can please anyone let me know how to achieve this.
Comment 1 Eric Moffatt CLA 2014-04-11 14:32:40 EDT
Right now this isn't possible. When declaring a perspective through the factory the state is fairly stable when dealing with views. It's far less so for arbitrarily contributing an editor since the 'input' (the resource being edited) also needs to exist as well as defining the 'type' of editor to use.

You may be better off by using a view instead of an editor (note that you can mark a view as 'dirty' same as you can an editor. The main difference is that the view's implementation will have to be capable of finding the stuff it wants to show.