summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkwilk2011-05-12 12:02:12 (EDT)
committer Ryan D. Brooks2011-05-12 12:02:12 (EDT)
commitc51daa72d0c3da3af8015b6b3e0fe8fbede19ac5 (patch)
treed4667461655096903b2af8334721b316558581f9
parent9f1cfdb6a8bc361ebd6f6ce48dd50daea1fb473c (diff)
downloadorg.eclipse.osee-c51daa72d0c3da3af8015b6b3e0fe8fbede19ac5.zip
org.eclipse.osee-c51daa72d0c3da3af8015b6b3e0fe8fbede19ac5.tar.gz
org.eclipse.osee-c51daa72d0c3da3af8015b6b3e0fe8fbede19ac5.tar.bz2
refinement: Minor quality improvement
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/DeletePurgeAtsArtifactsAction.java11
1 files changed, 2 insertions, 9 deletions
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/DeletePurgeAtsArtifactsAction.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/DeletePurgeAtsArtifactsAction.java
index 9b3b9b8..216f637 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/DeletePurgeAtsArtifactsAction.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/DeletePurgeAtsArtifactsAction.java
@@ -11,7 +11,6 @@
package org.eclipse.osee.ats.actions;
import org.eclipse.jface.action.Action;
-import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.osee.ats.internal.AtsPlugin;
import org.eclipse.osee.ats.util.AtsDeleteManager;
import org.eclipse.osee.ats.util.AtsDeleteManager.DeleteOption;
@@ -29,9 +28,8 @@ public class DeletePurgeAtsArtifactsAction extends Action {
private final ISelectedAtsArtifacts selectedAtsArtifacts;
public DeletePurgeAtsArtifactsAction(ISelectedAtsArtifacts selectedAtsArtifacts) {
- super();
+ super("Delete/Purge Ats Artifact(s)", ImageManager.getImageDescriptor(FrameworkImage.ARTIFACT_EDITOR));
this.selectedAtsArtifacts = selectedAtsArtifacts;
- setText("Delete/Purge Ats Artifact(s)");
setToolTipText(getText());
}
@@ -45,14 +43,9 @@ public class DeletePurgeAtsArtifactsAction extends Action {
}
}
- @Override
- public ImageDescriptor getImageDescriptor() {
- return ImageManager.getImageDescriptor(FrameworkImage.ARTIFACT_EDITOR);
- }
-
public void updateEnablement() {
try {
- setEnabled(selectedAtsArtifacts.getSelectedSMAArtifacts().size() > 0);
+ setEnabled(!selectedAtsArtifacts.getSelectedSMAArtifacts().isEmpty());
} catch (OseeCoreException ex) {
OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
setEnabled(false);