Author: rob.stryker(a)jboss.com
Date: 2009-01-26 09:39:39 -0500 (Mon, 26 Jan 2009)
New Revision: 13269
Modified:
branches/jbosstools-3.0.0.CR2/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/extensions/ModuleActionProvider.java
Log:
JBIDE-3633
Modified:
branches/jbosstools-3.0.0.CR2/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/extensions/ModuleActionProvider.java
===================================================================
---
branches/jbosstools-3.0.0.CR2/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/extensions/ModuleActionProvider.java 2009-01-26
14:03:59 UTC (rev 13268)
+++
branches/jbosstools-3.0.0.CR2/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/extensions/ModuleActionProvider.java 2009-01-26
14:39:39 UTC (rev 13269)
@@ -11,6 +11,7 @@
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IContributionItem;
import org.eclipse.jface.action.IMenuManager;
+import org.eclipse.jface.action.Separator;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.swt.widgets.Shell;
@@ -69,6 +70,12 @@
ms[i] = (ModuleServer)arr[i];
this.selection = ms;
+ IContributionItem sep =
menu.find(ServerActionProvider.CONTROL_MODULE_SECTION_END_SEPARATOR);
+ if( sep == null ) {
+ sep = new Separator(ServerActionProvider.CONTROL_MODULE_SECTION_END_SEPARATOR);
+ sep.setVisible(false);
+ menu.add(sep);
+ }
menu.insertBefore(ServerActionProvider.CONTROL_MODULE_SECTION_END_SEPARATOR,
incrementalPublishModuleAction);
menu.insertBefore(ServerActionProvider.CONTROL_MODULE_SECTION_END_SEPARATOR,
fullPublishModuleAction);
if (selection.size() == 1) {
Show replies by date