Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2011-12-13 02:21:03 -0500
committerEike Stepper2011-12-13 02:21:03 -0500
commit4d94fc2eebcf5d0467f1b8f89e0d090d2814062b (patch)
tree3f7a460feb14b387f2d53cc64a2be1fe8298c788
parent6f49ebb43573803c8401bad7a8046c4a194f5220 (diff)
downloadcdo-4d94fc2eebcf5d0467f1b8f89e0d090d2814062b.tar.gz
cdo-4d94fc2eebcf5d0467f1b8f89e0d090d2814062b.tar.xz
cdo-4d94fc2eebcf5d0467f1b8f89e0d090d2814062b.zip
[366492] [UI] Exception in creating a folder in "CDO Sessions" view
https://bugs.eclipse.org/bugs/show_bug.cgi?id=366492
-rw-r--r--plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/CreateResourceNodeAction.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/CreateResourceNodeAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/CreateResourceNodeAction.java
index e806f47b1b..d9ad08af12 100644
--- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/CreateResourceNodeAction.java
+++ b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/CreateResourceNodeAction.java
@@ -110,7 +110,10 @@ public class CreateResourceNodeAction extends ViewAction
itemProvider.refreshViewer(true);
itemProvider.selectElement(node, true);
- String resourcePath = node.getPath();
- CDOEditorUtil.openEditor(getPage(), transaction, resourcePath);
+ if (!createFolder)
+ {
+ String resourcePath = node.getPath();
+ CDOEditorUtil.openEditor(getPage(), transaction, resourcePath);
+ }
}
}

Back to the top