Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.ui.ide')
-rw-r--r--plugins/org.eclipse.emf.cdo.ui.ide/src/org/eclipse/emf/cdo/ui/internal/ide/actions/CreateBranchActionDelegate.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.ui.ide/src/org/eclipse/emf/cdo/ui/internal/ide/actions/CreateBranchActionDelegate.java b/plugins/org.eclipse.emf.cdo.ui.ide/src/org/eclipse/emf/cdo/ui/internal/ide/actions/CreateBranchActionDelegate.java
index e1861f053a..f2c2a608f2 100644
--- a/plugins/org.eclipse.emf.cdo.ui.ide/src/org/eclipse/emf/cdo/ui/internal/ide/actions/CreateBranchActionDelegate.java
+++ b/plugins/org.eclipse.emf.cdo.ui.ide/src/org/eclipse/emf/cdo/ui/internal/ide/actions/CreateBranchActionDelegate.java
@@ -70,6 +70,11 @@ public class CreateBranchActionDelegate extends LongRunningActionDelegate
return "Branch name cannot be empty";
}
+ if (newText.contains(CDOBranch.PATH_SEPARATOR))
+ {
+ return "Branch name cannot contain path separators";
+ }
+
BranchNode branchNode = UIUtil.getElement(getSelection(), BranchNode.class);
CDOBranch branch = branchNode.getBranch();
if (branch.getBranch(newText) != null)

Back to the top