Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Editors and perspectives
Editors and perspectives [message #326318] Fri, 14 March 2008 18:04 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Editors and perspectives [message #326609 is a reply to message #326318] Wed, 26 March 2008 13:30 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

We're looking at support that might help you do it (not actually opening
and closing the editor, just hiding it).

https://bugs.eclipse.org/bugs/show_bug.cgi?id=11001

But it's a complex problem, and not a lot of people are trying out the
patch (or updating it).

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Previous Topic:How to create a directory
Next Topic:visibleWhen expression is not always evaluated when a custom source changes
Goto Forum:
  


Current Time: Thu Nov 21 13:18:12 GMT 2024

Powered by FUDForum. Page generated in 0.07146 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top