Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrbrooks2010-08-13 14:02:53 -0400
committerrbrooks2010-08-13 14:02:53 -0400
commit8ca659d73017501e1203634a6d461863a411579b (patch)
tree4543f940fd82391ed2b3f6136d49c2fc2b3d7bdd /plugins/org.eclipse.osee.framework.core.dsl.ui.integration
parentf365d0c3ed542bd1f515cf047f06fe61d66379ee (diff)
downloadorg.eclipse.osee-8ca659d73017501e1203634a6d461863a411579b.tar.gz
org.eclipse.osee-8ca659d73017501e1203634a6d461863a411579b.tar.xz
org.eclipse.osee-8ca659d73017501e1203634a6d461863a411579b.zip
updated OseeDslRenderer to handle the presentation type DEFAULT_OPEN
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.dsl.ui.integration')
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/internal/OseeDslRenderer.java9
1 files changed, 7 insertions, 2 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 c63cb31649d..81925a688c7 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
@@ -10,7 +10,9 @@
*******************************************************************************/
package org.eclipse.osee.framework.core.dsl.ui.integration.internal;
+import static org.eclipse.osee.framework.ui.skynet.render.PresentationType.DEFAULT_OPEN;
import static org.eclipse.osee.framework.ui.skynet.render.PresentationType.GENERALIZED_EDIT;
+import static org.eclipse.osee.framework.ui.skynet.render.PresentationType.SPECIALIZED_EDIT;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.InputStream;
@@ -102,13 +104,16 @@ public final class OseeDslRenderer extends FileSystemRenderer {
@SuppressWarnings("unused")
@Override
- public void open(final List<Artifact> artifacts, final PresentationType presentationType) throws OseeCoreException {
+ public void open(final List<Artifact> artifacts, PresentationType presentationType) throws OseeCoreException {
+ final PresentationType resultantpresentationType =
+ presentationType == DEFAULT_OPEN ? SPECIALIZED_EDIT : presentationType;
+
Displays.ensureInDisplayThread(new Runnable() {
@Override
public void run() {
if (!artifacts.isEmpty()) {
try {
- IFile file = getRenderedFile(artifacts, presentationType);
+ IFile file = getRenderedFile(artifacts, resultantpresentationType);
if (file != null) {
IWorkbench workbench = PlatformUI.getWorkbench();
IWorkbenchPage page = workbench.getActiveWorkbenchWindow().getActivePage();

Back to the top