[jbosstools-commits] JBoss Tools SVN: r43895 - trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Fri Sep 21 02:14:37 EDT 2012
Author: rob.stryker at jboss.com
Date: 2012-09-21 02:14:37 -0400 (Fri, 21 Sep 2012)
New Revision: 43895
Modified:
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/ArchivesActionProvider.java
Log:
JBIDE-12493 to trunk missing menu
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 2012-09-21 05:18:11 UTC (rev 43894)
+++ trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/ArchivesActionProvider.java 2012-09-21 06:14:37 UTC (rev 43895)
@@ -37,6 +37,7 @@
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.ISharedImages;
+import org.eclipse.ui.IViewSite;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.navigator.CommonActionProvider;
import org.eclipse.ui.navigator.ICommonActionExtensionSite;
@@ -114,14 +115,9 @@
menuAboutToShow2(manager);
}
- public void menuAboutToShow2(IMenuManager manager) {
- if (ProjectArchivesCommonView.getInstance() == null) {
+ public void menuAboutToShow2(IMenuManager manager) {
+ if( site == null || site.getAdapter(IViewSite.class) == null )
return;
- }
- IProject currentProject = ProjectArchivesCommonView.getInstance().getCurrentProject();
- if (currentProject == null || !currentProject.exists() || !currentProject.isOpen()) {
- return;
- }
addNewPackageActions(newPackageManager);
IStructuredSelection selection = getSelection(site);
More information about the jbosstools-commits
mailing list