Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gvozdev2010-01-14 04:58:14 +0000
committerAndrew Gvozdev2010-01-14 04:58:14 +0000
commit1c80988eb55335a9e0093ea1c830d475afe7f2c8 (patch)
treef11ee3ef66b9fa7e243eef4f83bf9aa33b400301
parent2ef049ea2889660e585070ef0dae6c388579ce72 (diff)
downloadorg.eclipse.cdt-1c80988eb55335a9e0093ea1c830d475afe7f2c8.tar.gz
org.eclipse.cdt-1c80988eb55335a9e0093ea1c830d475afe7f2c8.tar.xz
org.eclipse.cdt-1c80988eb55335a9e0093ea1c830d475afe7f2c8.zip
bug 206369: Double-clicking closed project should open it
Patch from Marc-Andre Laperle
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/cview/OpenFileGroup.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/cview/OpenFileGroup.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/cview/OpenFileGroup.java
index d801589b2ab..722e460c87c 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/cview/OpenFileGroup.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/cview/OpenFileGroup.java
@@ -21,6 +21,7 @@ import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
+import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.MenuManager;
@@ -154,6 +155,12 @@ public class OpenFileGroup extends CViewActionGroup {
openFileAction.selectionChanged(selection);
openFileAction.run();
}
+ else if(element instanceof IProject){
+ try {
+ ((IProject)element).open(null);
+ } catch (CoreException e) {
+ }
+ }
}
}

Back to the top