Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 16825 - Duplicate Edit menu entries
Summary: Duplicate Edit menu entries
Status: RESOLVED DUPLICATE of bug 14061
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC All
: P1 critical (vote)
Target Milestone: ---   Edit
Assignee: Nick Edgar CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-22 10:50 EDT by Grant Gayed CLA
Modified: 2002-05-23 14:55 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Grant Gayed CLA 2002-05-22 10:50:58 EDT
F1

I'm logging to UI because I'm guessing that this is a plugin activation 
problem.  Sorry if this should actually be in jdt-ui or pde-ui.

- start a brand new Eclipse workspace, close its initial Welcome dialog
- File -> New -> Other
- Plugin Development -> Plugin Project, Next
- project name = 123, Next
- Next
- select "Plugin with a Property Page" from list, Next
- Finish
- OK to "plugin must bea activated" dialog
- plugin opens up, will have some errors due to bogus name (ok)
- click on the Source tab of the plugin editor
- drop down the Edit menu at the top, all should look good (ie.- no repeated 
items)
- in the Packages view traverse to and open 123/src/123/123Plugin.java
- now drop down the Editor menu at the top and it will have the following 
duplicate groups of items:
 -> Find Next, Find Previous, Increment Find, Go To Line...
 -> Mark, Delete Line
Comment 1 Randy Giffen CLA 2002-05-23 14:53:33 EDT
Thank-you very much for reporting this case.

Simplier case
1) Open plugin.xml editor
2) Switch to source page
3) Close editor

The problem is caused when PDEEditorContributor does
	public void contributeToMenu(IMenuManager mm) {
		subMenuManager = new SubMenuManager(mm);
and has its source page contribute to subMenuManager which is able to locate 
the edit menu directly.
The editor menu manager (mm) does not wrap the edit menu.
Comment 2 Randy Giffen CLA 2002-05-23 14:55:58 EDT

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