Author: snjeza
Date: 2009-01-26 19:38:45 -0500 (Mon, 26 Jan 2009)
New Revision: 13283
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/views/ProjectArchivesCommonView.java
Log:
JBIDE-3572 Problem with archives when deleting 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-26
21:15:27 UTC (rev 13282)
+++
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/ArchivesActionProvider.java 2009-01-27
00:38:45 UTC (rev 13283)
@@ -80,6 +80,10 @@
}
public void menuAboutToShow2(IMenuManager manager) {
+ IProject currentProject = ProjectArchivesCommonView.getInstance().getCurrentProject();
+ if (currentProject == null || !currentProject.exists() || !currentProject.isOpen()) {
+ return;
+ }
addNewPackageActions(newPackageManager);
IStructuredSelection selection = getSelection();
Modified:
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/views/ProjectArchivesCommonView.java
===================================================================
---
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/views/ProjectArchivesCommonView.java 2009-01-26
21:15:27 UTC (rev 13282)
+++
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/views/ProjectArchivesCommonView.java 2009-01-27
00:38:45 UTC (rev 13283)
@@ -78,6 +78,10 @@
public void selectionChanged(IWorkbenchPart part, ISelection selection) {
if( part == instance )
return;
+ if (selection == null || selection.isEmpty()) {
+ getInitialInput();
+ jiggleViewerInput();
+ }
if (!(selection instanceof IStructuredSelection))
return;
Show replies by date