Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Disable the duplication of a perspective by dragging
Disable the duplication of a perspective by dragging [message #447500] Fri, 07 April 2006 08:26 Go to next message
Stephane is currently offline StephaneFriend
Messages: 28
Registered: July 2009
Junior Member
Hello,

I get a problem in my RCP app because I cannot manage duplicated editors
on the same resource.
For duplicated editors, I have found that presentations extension point
could solve the problem and remove the 'New editor' action in the
context menu of the editor tab.

The problem comes now from perspectives. Indeed, the user is still able
to duplicate a perspective in a new window by dragging its icon from the
perspective toolbar.
Then, the user can open the same resource in an editor in each instance
of the duplicated perspective. Here's the point.

My question is quite simple :
How to disable the ability to duplicate a perspective in a new window ?

Thanks in advance.

Stephane
Re: Disable the duplication of a perspective by dragging [message #447663 is a reply to message #447500] Wed, 12 April 2006 07:38 Go to previous messageGo to next message
Stephane is currently offline StephaneFriend
Messages: 28
Registered: July 2009
Junior Member
Nobody ? I really need help on this point. If I were not clear, I could
better describe my problem.

Stephane

Stephane a écrit :
> Hello,
>
> I get a problem in my RCP app because I cannot manage duplicated
> editors on the same resource.
> For duplicated editors, I have found that presentations extension
> point could solve the problem and remove the 'New editor' action in
> the context menu of the editor tab.
>
> The problem comes now from perspectives. Indeed, the user is still
> able to duplicate a perspective in a new window by dragging its icon
> from the perspective toolbar.
> Then, the user can open the same resource in an editor in each
> instance of the duplicated perspective. Here's the point.
>
> My question is quite simple :
> How to disable the ability to duplicate a perspective in a new window ?
>
> Thanks in advance.
>
> Stephane
Re: Disable the duplication of a perspective by dragging [message #447673 is a reply to message #447663] Wed, 12 April 2006 11:50 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Stephane wrote:
> Nobody ? I really need help on this point. If I were not clear, I could
> better describe my problem.

Your problem as stated, you cannot disable this duplication of
perspectives, unless you remove new window and the perspective switcher
from your RCP app.

Your actual problem is you cannot have 2 editors open on your same
resource at the same time. I'd try and fix that problem.

Option 1: move to an MVC pattern, like the text editors. They take
their editor input and ask a document provider for their document. The
document provider will hand back the same document model for the same
editor input. Now both editors are working on the same model, and
property change events cause both editors to update their info at the
same time.

Option 2: Manage your list of open resources, and if a request to open
an input that's already in your list occurs don't fully open your normal
editor, just open it with a message window saying "Resource already open
.... please contact your dealer."

Later,
PW


Re: Disable the duplication of a perspective by dragging [message #447684 is a reply to message #447673] Wed, 12 April 2006 15:52 Go to previous message
Stephane is currently offline StephaneFriend
Messages: 28
Registered: July 2009
Junior Member
Thanks a lot. I will investigate your proposed solutions.

Paul Webster a écrit :
> Stephane wrote:
>> Nobody ? I really need help on this point. If I were not clear, I
>> could better describe my problem.
>
> Your problem as stated, you cannot disable this duplication of
> perspectives, unless you remove new window and the perspective
> switcher from your RCP app.
>
> Your actual problem is you cannot have 2 editors open on your same
> resource at the same time. I'd try and fix that problem.
>
> Option 1: move to an MVC pattern, like the text editors. They take
> their editor input and ask a document provider for their document.
> The document provider will hand back the same document model for the
> same editor input. Now both editors are working on the same model,
> and property change events cause both editors to update their info at
> the same time.
>
> Option 2: Manage your list of open resources, and if a request to open
> an input that's already in your list occurs don't fully open your
> normal editor, just open it with a message window saying "Resource
> already open ... please contact your dealer."
>
> Later,
> PW
Previous Topic:Generate help toc(referencing JavaDoc) from available plugins
Next Topic:Editor Filters
Goto Forum:
  


Current Time: Mon Nov 11 21:41:58 GMT 2024

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

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

Back to the top