Bug 282388 - [EditorMgmt] No options to diable "New Editor" popup menu item on editor tab
Summary: [EditorMgmt] No options to diable "New Editor" popup menu item on editor tab
Status: CLOSED DUPLICATE of bug 103045
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4.2   Edit
Hardware: PC Windows XP
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact: Remy Suen CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-03 11:15 EDT by Raghuveer CLA
Modified: 2009-11-24 10:51 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raghuveer CLA 2009-07-03 11:15:46 EDT
In our application we have multiple editor opened. We would like to have only single instance of each editor. But "New Editor" popup menu item options is bringing up another instance of the same editor.

  Is there any way to disable either the menu item or to have single instance of the editor at any point in time.
Comment 1 Paul Webster CLA 2009-07-06 15:02:07 EDT
See bug 112293

PW
Comment 2 Boris Bokowski CLA 2009-07-09 11:04:05 EDT
Sorry, this is currently not possible. You can try to support more than one instance of an editor, or if that is not an option, perhaps you are willing to contribute a patch to add this feature?

See http://wiki.eclipse.org/Platform_UI/How_to_Contribute
Comment 3 Raghuveer CLA 2009-07-14 07:09:15 EDT
(In reply to comment #2)
> Sorry, this is currently not possible. You can try to support more than one
> instance of an editor, or if that is not an option, perhaps you are willing to
> contribute a patch to add this feature?
> 
> See http://wiki.eclipse.org/Platform_UI/How_to_Contribute
> 

We shall add this when we find some time to contribute in this area.
Comment 4 Boris Bokowski CLA 2009-07-14 10:18:12 EDT
(In reply to comment #3)
> We shall add this when we find some time to contribute in this area.

Great! Feel free to discuss how best to approach this, on this bug.
Comment 5 Boris Bokowski CLA 2009-11-17 13:06:14 EST
Remy is now responsible for watching the [EditorMgmt] component area.
Comment 6 niv0 - CLA 2009-11-19 03:01:43 EST
Hi,

I just managed to disable the "new editor" action within Galileo by creating a handler for command "org.eclipse.ui.window.newEditor".
The handler is active for my editors but never enabled 
=> expression: activeWhen/activePart/instanceof(my editors)
=> expression: enabledWhen/count/value -1

This allows disabling the command for your editors, but not for standard text editors.

Maybe Paul can tell if this might be the correct way to go currently.
Comment 7 Remy Suen CLA 2009-11-24 10:51:08 EST

*** This bug has been marked as a duplicate of bug 103045 ***