Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2011-12-13 07:17:56 +0000
committerEike Stepper2011-12-13 07:17:56 +0000
commit8fef192b83281e2aeb96f3d8347080dfa77b8518 (patch)
treed132b2de247b69134f54fca40f9f6f290311b6fa /plugins/org.eclipse.emf.cdo.ui/src
parentfc3061682e48a09da0f619d493265966eaecff82 (diff)
downloadcdo-8fef192b83281e2aeb96f3d8347080dfa77b8518.tar.gz
cdo-8fef192b83281e2aeb96f3d8347080dfa77b8518.tar.xz
cdo-8fef192b83281e2aeb96f3d8347080dfa77b8518.zip
[366491] [UI] Exception in creating a folder in "CDO Sessions" view
https://bugs.eclipse.org/bugs/show_bug.cgi?id=366491
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.ui/src')
-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 751c4f0742..423e0c25ed 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