Editors and perspectives [message #326318] |
Fri, 14 March 2008 18:04 |
Eclipse User |
|
|
|
Originally posted by: joelgreg.yahoo.com
Hey guys,
is it possible to have an editor not shared among the perspectives?
I have a perspective, I open an editor and I see it in my perspective.
Great. When I open another perspective (using
window.getWorkbench().showPerspective( SecondPerspective.ID, window ) ),
the editor in the other perspective appears in the editor area of the new
perspective. Any idea?
The problem I am facing is the editor opened in the 1st perspective is
related to this one, not the second one.
Thanks JG
|
|
|
Re: Editors and perspectives [message #326322 is a reply to message #326318] |
Fri, 14 March 2008 18:32 |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
Joel Gregoire wrote:
> Hey guys,
>
> is it possible to have an editor not shared among the perspectives?
> I have a perspective, I open an editor and I see it in my perspective.
> Great. When I open another perspective (using
> window.getWorkbench().showPerspective( SecondPerspective.ID, window ) ),
> the editor in the other perspective appears in the editor area of the
> new perspective. Any idea?
> The problem I am facing is the editor opened in the 1st perspective is
> related to this one, not the second one.
I don't think there is built-in support for tying an editor to a
particular perspective. Unlike Views, Editors are, by design,
perspective-agnostic.
You could create an IPerspectiveListener that finds and closes the
editor when the perspective is changed, and attach that to the
IWorkbenchWindow. But it would be an unexpected behavior for users that
are familiar with Eclipse.
Hope this helps,
Eric
|
|
|
|
Powered by
FUDForum. Page generated in 0.07146 seconds