Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2015-02-21 15:18:04 +0000
committerEike Stepper2015-02-21 16:49:58 +0000
commita0c08ad3bd3a26ebfd86682465fb8759046a6ca6 (patch)
treea9b562cfd22c7e5ee0bbc0308de11492eee2ec9e /plugins/org.eclipse.emf.cdo.ui
parent39354c367bba7df8b5c993b2462e495c4def1e28 (diff)
downloadcdo-a0c08ad3bd3a26ebfd86682465fb8759046a6ca6.tar.gz
cdo-a0c08ad3bd3a26ebfd86682465fb8759046a6ca6.tar.xz
cdo-a0c08ad3bd3a26ebfd86682465fb8759046a6ca6.zip
[458349] Consolidate UI
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=458349
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.ui')
-rw-r--r--plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/CreateBranchAction.java22
1 files changed, 12 insertions, 10 deletions
diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/CreateBranchAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/CreateBranchAction.java
index 51f7d88302..2abc5894f4 100644
--- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/CreateBranchAction.java
+++ b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/CreateBranchAction.java
@@ -44,6 +44,16 @@ public class CreateBranchAction extends LongRunningAction
setId(ID);
}
+ public final CDOBranchPoint getBase()
+ {
+ return base;
+ }
+
+ public final String getName()
+ {
+ return name;
+ }
+
@Override
protected void preRun() throws Exception
{
@@ -65,15 +75,7 @@ public class CreateBranchAction extends LongRunningAction
@Override
protected void doRun(IProgressMonitor progressMonitor) throws Exception
{
- try
- {
- CDOBranch branch = base.getBranch();
- branch.createBranch(name, base.getTimeStamp());
- }
- finally
- {
- base = null;
- name = null;
- }
+ CDOBranch branch = base.getBranch();
+ branch.createBranch(name, base.getTimeStamp());
}
}

Back to the top