Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrescobar2011-01-10 22:07:32 +0000
committerRyan D. Brooks2011-01-10 22:07:32 +0000
commit665c903eaa962f59d9149469aa49b3b5622c4f98 (patch)
treebff18e2db56b85e54c3495d4a4998eca8b2ff290 /plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src
parentd0a98e59637cd674efd73a98fc01e1e285068f65 (diff)
downloadorg.eclipse.osee-665c903eaa962f59d9149469aa49b3b5622c4f98.tar.gz
org.eclipse.osee-665c903eaa962f59d9149469aa49b3b5622c4f98.tar.xz
org.eclipse.osee-665c903eaa962f59d9149469aa49b3b5622c4f98.zip
refinement: Improve open with command/handler renderer code
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src')
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeDslRenderer.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeDslRenderer.java b/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeDslRenderer.java
index 95793b4043e..0984e0b983f 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeDslRenderer.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeDslRenderer.java
@@ -36,7 +36,6 @@ import org.eclipse.osee.framework.ui.skynet.render.FileSystemRenderer;
import org.eclipse.osee.framework.ui.skynet.render.IArtifactUpdateOperationFactory;
import org.eclipse.osee.framework.ui.skynet.render.PresentationType;
import org.eclipse.osee.framework.ui.swt.Displays;
-import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.program.Program;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPage;
@@ -85,14 +84,9 @@ public final class OseeDslRenderer extends FileSystemRenderer {
}
@Override
- public Image getImage(Artifact artifact) {
- return super.getImage(artifact);
- }
-
- @Override
- public List<String> getCommandId(PresentationType presentationType) {
+ public List<String> getCommandIds(CommandGroup commandGroup) {
ArrayList<String> commandIds = new ArrayList<String>(1);
- if (presentationType == PresentationType.SPECIALIZED_EDIT) {
+ if (commandGroup.isEdit()) {
commandIds.add(COMMAND_ID);
}
return commandIds;

Back to the top