Bug 36107 - [Action Sets] workbench.xml keeps global scope action in new plugin from being recognized
Summary: [Action Sets] workbench.xml keeps global scope action in new plugin from bein...
Status: RESOLVED DUPLICATE of bug 6929
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Simon Arsenault CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-05 18:46 EST by Bob Foster CLA
Modified: 2003-05-22 16:00 EDT (History)
0 users

See Also:


Attachments
File drag example (17.78 KB, application/x-zip-compressed)
2003-04-21 10:55 EDT, Tod Creasey CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Foster CLA 2003-04-05 18:46:19 EST
1. To reproduce this, download the filedrag plugin from 
http://sourceforge.net/projects/sunshade. (The plugin is so simple it 
qualifies as a short test case.)

2. In an existing install of 2.1 in which the default workspace has been 
created and is not empty, exit Eclipse and unzip the plugin into the plugins 
folder. Restart Eclipse in the default workspace.

3. Verify that no Open... item appears immediately beneath the New... item in 
the File menu.

4. Close Eclipse again. Go to the default workspace .metadata folder and 
delete the workbench.xml file in the .plugins\org.eclipse.ui.workbench folder. 
Restart Eclipse in the default workspace.

5. Verify that an Open... item appears immediately beneath the New... item in 
the File menu.

[Seen in Eclipse 2.1 final, WinXP]

If this bug is as general as it appears to be, can someone suggest a 
workaround that plugin writers can employ to ensure their global scope actions 
are properly installed?
Comment 1 Nick Edgar CLA 2003-04-10 11:52:50 EDT
If this action is being contributed via an action set (which I hope it is, 
since that's the only way to do this through API), then you will need to 
manually enable it for any existing perspectives.  This is a known problem.
Comment 2 Tod Creasey CLA 2003-04-21 10:54:46 EDT
The problem here appears to be with action sets getting slammed after the 
extensions in the plugin.xml is read. Reassigning and attaching the file drag 
example.

BTW if you use the same example in a fresh Eclipse the new entry shows up no 
problem.
Comment 3 Tod Creasey CLA 2003-04-21 10:55:24 EDT
Created attachment 4648 [details]
File drag example
Comment 4 Simon Arsenault CLA 2003-04-21 11:58:05 EDT
This is the known problem where the workbench does not update when new plugins 
are installed after being run at least once. If you close the perspective and 
reopen again, you will see the action. Or you can reset the perspective.
Comment 5 Bob Foster CLA 2003-04-22 00:36:52 EDT
Well, fix it. ;-}

Install instructions:

1. Install plugin.
2. Close all open perspectives and re-open them.

Pfui.
Comment 6 Simon Arsenault CLA 2003-05-22 16:00:20 EDT

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