Source:
<code>protected void initButton(final Button button) { button.setToolTipText("Create Working Branch"); button.setImage(ImageManager.getImage(FrameworkImage.BRANCH)); button.addListener(SWT.Selection, new Listener() { @Override public void handleEvent(Event e) { disableAll = true; refreshEnablement(button); Result result = AtsBranchUtil.createWorkingBranch_Validate(getTeamArt()); boolean appropriate = selectTargetedVersionIfAppropriate(result, button); if (appropriate) { return; } if (result.isFalse()) { AWorkbench.popup(result); disableAll = false; refreshEnablement(button); return; } try { <START> String workingBranchName = AtsClientService.get().getBranchService().getBranchName(getTeamArt()); <END> String baselineBranchName = getTeamArt().getParentTeamWorkflow().getBranch().toString(); if (!MessageDialog.openConfirm(Displays.getActiveShell(), "Create Working Branch", "Creating working branch,\n\n\"" + workingBranchName + "\"\n\nfrom parent branch, \n\n\"" + baselineBranchName + "\"\n\nIs that correct?\n\n" + "---\nNOTE: Working branches are necessary when OSEE Artifact changes " + "are made during implementation.")) { disableAll = false; refreshEnablement(button); return; } button.setText("Creating Branch..."); button.redraw(); button.getParent().layout(); AtsBranchUtil.createWorkingBranch_Create(getTeamArt(), false); } catch (Exception ex) { OseeLog.log(Activator.class, OseeLevel.SEVERE_POPUP, ex); disableAll = false; refreshEnablement(button); } } }); }</code><technical_language>this commit baseline branch, this is branch team workflow lives on, is common branch</technical_language>

Target:
protected void initButton(final Button button) { button.setToolTipText("Create Working Branch"); button.setImage(ImageManager.getImage(FrameworkImage.BRANCH)); button.addListener(SWT.Selection, new Listener() { @Override public void handleEvent(Event e) { disableAll = true; refreshEnablement(button); Result result = AtsBranchUtil.createWorkingBranch_Validate(getTeamArt()); boolean appropriate = selectTargetedVersionIfAppropriate(result, button); if (appropriate) { return; } if (result.isFalse()) { AWorkbench.popup(result); disableAll = false; refreshEnablement(button); return; } try { String workingBranchName = AtsClientService.get().getBranchService().getBranchName(getTeamArt()); final BranchId parentBranch = AtsClientService.get().getBranchService().getConfiguredBranchForWorkflow(getTeamArt()); if (parentBranch.isValid()) { String pBranchName = AtsClientService.get().getBranchService().getBranchName(parentBranch); if (!MessageDialog.openConfirm(Displays.getActiveShell(), "Create Working Branch", "Creating working branch:\n\n\"" + workingBranchName + "\"\n\nfrom parent branch: \n\n\"" + pBranchName + "\"\n\nIs that correct?\n\n" + "---\nNOTE: Working branches are necessary when OSEE Artifact changes " + "are made during implementation.")) { disableAll = false; refreshEnablement(button); return; } button.setText("Creating Branch..."); button.redraw(); button.getParent().layout(); AtsBranchUtil.createWorkingBranch_Create(getTeamArt(), false); } } catch (Exception ex) { OseeLog.log(Activator.class, OseeLevel.SEVERE_POPUP, ex); disableAll = false; refreshEnablement(button); } } }); }