Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to avoid sharing editors across perspectives
How to avoid sharing editors across perspectives [message #463509] Mon, 12 February 2007 21:08 Go to next message
Eclipse UserFriend
I'm working on an RCP application that creates multiple perspectives. The
user can switch from one perspective to another depending on the task that
needs to be accomplished. Editors in one prespective may not be relevant
in other perspectives. How can I prevent sharing editors across
perspectives?

The only alternative that I can think of is to create each perspective in
its own exclusive window, but I don't want to open multiple windows.
Should the strategy be to enable and disable windows rather than switching
perspectives?

Appreciate your suggestions/workarounds...

Octavio
Re: How to avoid sharing editors across perspectives [message #463512 is a reply to message #463509] Mon, 12 February 2007 23:43 Go to previous messageGo to next message
Eclipse UserFriend
Sharing editors across perspectives is an Eclipse feature and you can't
prevent that.

Snjeza

Octavio Berlanga wrote:
> I'm working on an RCP application that creates multiple perspectives.
> The user can switch from one perspective to another depending on the
> task that needs to be accomplished. Editors in one prespective may not
> be relevant in other perspectives. How can I prevent sharing editors
> across perspectives?
>
> The only alternative that I can think of is to create each perspective
> in its own exclusive window, but I don't want to open multiple windows.
> Should the strategy be to enable and disable windows rather than
> switching perspectives?
>
> Appreciate your suggestions/workarounds...
>
> Octavio
>
>
>
Re: How to avoid sharing editors across perspectives [message #463513 is a reply to message #463512] Tue, 13 February 2007 01:14 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

if you know which editors should not be shared (or if maybe no editor should
be shared) across perspectives, you could register an
IPerspectiveListener and close these editors via
IWorkbenchPage.closeEditor(*) methods programmatically.

Maybe this gives you a help.

Greetz,
Carsten



"Snjezana Peco" <snjeza.peco@gmail.com> schrieb im Newsbeitrag
news:eqrflc$hna$1@utils.eclipse.org...
> Sharing editors across perspectives is an Eclipse feature and you can't
> prevent that.
>
> Snjeza
>
> Octavio Berlanga wrote:
>> I'm working on an RCP application that creates multiple perspectives.
>> The user can switch from one perspective to another depending on the task
>> that needs to be accomplished. Editors in one prespective may not be
>> relevant in other perspectives. How can I prevent sharing editors across
>> perspectives?
>>
>> The only alternative that I can think of is to create each perspective in
>> its own exclusive window, but I don't want to open multiple windows.
>> Should the strategy be to enable and disable windows rather than
>> switching perspectives?
>>
>> Appreciate your suggestions/workarounds...
>>
>> Octavio
>>
>>
Re: How to avoid sharing editors across perspectives [message #463724 is a reply to message #463513] Wed, 14 February 2007 20:25 Go to previous message
Eclipse UserFriend
OK. It sounds like I should simply use views instead of editors. Thanks
for your comments.
Previous Topic:implementing undo actions
Next Topic:Splash Screen
Goto Forum:
  


Current Time: Sat Mar 15 23:57:00 EDT 2025

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

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

Back to the top