Author: snjeza
Date: 2009-01-25 17:38:47 -0500 (Sun, 25 Jan 2009)
New Revision: 13264
Modified:
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/ArchivesActionProvider.java
Log:
JBIDE-3627 Exception while creating second war archive for Seam war project
Modified:
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/ArchivesActionProvider.java
===================================================================
---
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/ArchivesActionProvider.java 2009-01-24
01:33:22 UTC (rev 13263)
+++
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/ArchivesActionProvider.java 2009-01-25
22:38:47 UTC (rev 13264)
@@ -14,7 +14,10 @@
import org.eclipse.core.resources.IProject;
import org.eclipse.jface.action.Action;
+import org.eclipse.jface.action.ActionContributionItem;
import org.eclipse.jface.action.GroupMarker;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.action.IContributionItem;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.MenuManager;
import org.eclipse.jface.action.Separator;
@@ -191,9 +194,8 @@
* @param manager
*/
private void addNewPackageActions (IMenuManager manager) {
- //workaround for JBIDE-3016
- if( manager.getItems().length > 0)
- return;
+ //workaround for JBIDE-3016
+ manager.removeAll();
for( int i = 0; i < newPackageActions.length; i++ ) {
NewArchiveAction action = newPackageActions[i];
Show replies by date