summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkwilk2011-04-18 17:22:25 (EDT)
committerRyan D. Brooks2011-04-18 17:22:25 (EDT)
commitee8cc6fe11b451b56cf4ac181ddc2418be38db8d (patch)
treebcc43de12db9fed3977ad382168293e9f663e33d
parentf64075fab6a3ce69694ab2664712106c6ac7caa5 (diff)
downloadorg.eclipse.osee-ee8cc6fe11b451b56cf4ac181ddc2418be38db8d.zip
org.eclipse.osee-ee8cc6fe11b451b56cf4ac181ddc2418be38db8d.tar.gz
org.eclipse.osee-ee8cc6fe11b451b56cf4ac181ddc2418be38db8d.tar.bz2
refinement: Frivolous code removal
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenVersionArtifactAction.java21
1 files changed, 5 insertions, 16 deletions
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenVersionArtifactAction.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenVersionArtifactAction.java
index 3e904e3..c815c4d 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenVersionArtifactAction.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenVersionArtifactAction.java
@@ -12,7 +12,6 @@ package org.eclipse.osee.ats.actions;
import java.util.logging.Level;
import org.eclipse.jface.action.Action;
-import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.osee.ats.artifact.AbstractWorkflowArtifact;
import org.eclipse.osee.ats.internal.AtsPlugin;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
@@ -27,16 +26,17 @@ import org.eclipse.osee.framework.ui.swt.ImageManager;
*/
public class OpenVersionArtifactAction extends Action {
+ private static final String ACTION_TEXT = "Open Targeted for Version";
private final AbstractWorkflowArtifact sma;
public OpenVersionArtifactAction(AbstractWorkflowArtifact sma) {
- super();
+ super(ACTION_TEXT, ImageManager.getImageDescriptor(FrameworkImage.VERSION));
+ setToolTipText(ACTION_TEXT);
this.sma = sma;
- setText("Open Targeted for Version");
- setToolTipText(getText());
}
- private void performOpen() {
+ @Override
+ public void run() {
try {
if (sma.getTargetedVersion() != null) {
RendererManager.open(sma.getTargetedVersion(), PresentationType.DEFAULT_OPEN);
@@ -45,15 +45,4 @@ public class OpenVersionArtifactAction extends Action {
OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
}
}
-
- @Override
- public void run() {
- performOpen();
- }
-
- @Override
- public ImageDescriptor getImageDescriptor() {
- return ImageManager.getImageDescriptor(FrameworkImage.VERSION);
- }
-
}