diff options
Diffstat (limited to 'plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/commandHandlers/branch/ToggleFavoriteBranchContributionItem.java')
-rw-r--r-- | plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/commandHandlers/branch/ToggleFavoriteBranchContributionItem.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/commandHandlers/branch/ToggleFavoriteBranchContributionItem.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/commandHandlers/branch/ToggleFavoriteBranchContributionItem.java index f3e80c7247d..b74e53ed3ae 100644 --- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/commandHandlers/branch/ToggleFavoriteBranchContributionItem.java +++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/commandHandlers/branch/ToggleFavoriteBranchContributionItem.java @@ -38,7 +38,7 @@ public class ToggleFavoriteBranchContributionItem extends CompoundContributionPr private final ICommandService commandService; public ToggleFavoriteBranchContributionItem() { - this.commandService = (ICommandService) PlatformUI.getWorkbench().getService(ICommandService.class); + this.commandService = PlatformUI.getWorkbench().getService(ICommandService.class); } @Override @@ -76,10 +76,9 @@ public class ToggleFavoriteBranchContributionItem extends CompoundContributionPr private CommandContributionItem createCommand(String label, IOseeBranch branch, String commandId) { CommandContributionItem contributionItem; - contributionItem = - new CommandContributionItem(new CommandContributionItemParameter( - PlatformUI.getWorkbench().getActiveWorkbenchWindow(), label, commandId, Collections.EMPTY_MAP, null, null, - null, label, null, null, SWT.NONE, null, false)); + contributionItem = new CommandContributionItem( + new CommandContributionItemParameter(PlatformUI.getWorkbench().getActiveWorkbenchWindow(), label, commandId, + Collections.EMPTY_MAP, null, null, null, label, null, null, SWT.NONE, null, false)); return contributionItem; } |