Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan D. Brooks2015-09-03 23:24:08 +0000
committerAngel Avila2015-09-12 01:05:47 +0000
commit122653949d5d8dc687ff8dfe4b52e832cec22ffc (patch)
tree2c5562f212a19395906ce322f255615859ccc66a
parent043912ee474681153a687595533dc8a3b703b255 (diff)
downloadorg.eclipse.osee-122653949d5d8dc687ff8dfe4b52e832cec22ffc.tar.gz
org.eclipse.osee-122653949d5d8dc687ff8dfe4b52e832cec22ffc.tar.xz
org.eclipse.osee-122653949d5d8dc687ff8dfe4b52e832cec22ffc.zip
refactor: Remove unnecessary cast
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/OpenContributionItem.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/OpenContributionItem.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/OpenContributionItem.java
index 052f1001037..989e0706143 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/OpenContributionItem.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/OpenContributionItem.java
@@ -65,7 +65,7 @@ import org.eclipse.ui.menus.CommandContributionItemParameter;
/**
* Dynamically provides the open/open with CommandContributionItem for menu items based off of calling applicable
* {@link IRenderer#getCommandIds(CommandGroup)}
- *
+ *
* @author Jeff C. Phillips
*/
public class OpenContributionItem extends ContributionItem {
@@ -213,7 +213,7 @@ public class OpenContributionItem extends ContributionItem {
}
private Collection<IContributionItem> getCommonContributionItems(CommandGroup commandGroup, Artifact testArtifact, Collection<IRenderer> commonRenders) throws OseeCoreException {
- ICommandService commandService = (ICommandService) PlatformUI.getWorkbench().getService(ICommandService.class);
+ ICommandService commandService = PlatformUI.getWorkbench().getService(ICommandService.class);
Map<String, IContributionItem> contributedItems = new LinkedHashMap<String, IContributionItem>(25);
for (IRenderer renderer : commonRenders) {
for (String commandId : renderer.getCommandIds(commandGroup)) {
@@ -325,11 +325,9 @@ public class OpenContributionItem extends ContributionItem {
if (event.detail == 0) {
try {
- IHandlerService handlerService =
- (IHandlerService) PlatformUI.getWorkbench().getService(IHandlerService.class);
+ IHandlerService handlerService = PlatformUI.getWorkbench().getService(IHandlerService.class);
- ICommandService commandService =
- (ICommandService) PlatformUI.getWorkbench().getService(ICommandService.class);
+ ICommandService commandService = PlatformUI.getWorkbench().getService(ICommandService.class);
Command command = commandService.getCommand(DEFAULT_OPEN_CMD_ID);
if (command.isEnabled()) {

Back to the top