Disable the duplication of a perspective by dragging [message #447500] |
Fri, 07 April 2006 04:26  |
Eclipse User |
|
|
|
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 #447684 is a reply to message #447673] |
Wed, 12 April 2006 11:52  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.47140 seconds