Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Roldan Betancort2010-03-15 21:54:48 +0000
committerVictor Roldan Betancort2010-03-15 21:54:48 +0000
commit03ee307637e7f299bef992f7b329c353fdb9dccf (patch)
treec0590cc3b0e86a64da6ebd7b948eee0ea1bb6224 /plugins/org.eclipse.emf.cdo.ui.ide
parenta8db8cdf518fa4c7225e5735f7b45f5da3d7b222 (diff)
downloadcdo-03ee307637e7f299bef992f7b329c353fdb9dccf.tar.gz
cdo-03ee307637e7f299bef992f7b329c353fdb9dccf.tar.xz
cdo-03ee307637e7f299bef992f7b329c353fdb9dccf.zip
304226: [UI] Include support for branching in CDOSessionView
https://bugs.eclipse.org/bugs/show_bug.cgi?id=304226
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