From 647f15a0914c1adfd671aac3a1bdb29d72a8d7a0 Mon Sep 17 00:00:00 2001 From: lehtonen Date: Tue, 8 Feb 2011 15:17:09 +0000 Subject: [PATCH] * Removed use of deprecated project keys. * Removed deprecated GE query processors relying on the removed project keys. git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@19710 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../ui/handlers/SysdynExperimentActivator.java | 14 -------------- .../simantics/sysdyn/ui/project/SysdynProject.java | 1 - 2 files changed, 15 deletions(-) diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/SysdynExperimentActivator.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/SysdynExperimentActivator.java index 1eb5eb88..31591dc4 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/SysdynExperimentActivator.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/SysdynExperimentActivator.java @@ -26,7 +26,6 @@ import org.simantics.db.request.Read; import org.simantics.layer0.utils.direct.GraphUtils; import org.simantics.message.MessageService; import org.simantics.project.IProject; -import org.simantics.project.ProjectKeys; import org.simantics.simulation.experiment.IExperiment; import org.simantics.simulation.model.ExperimentLoadingFailed; import org.simantics.simulation.project.IExperimentActivationListener; @@ -108,18 +107,8 @@ public class SysdynExperimentActivator { @Override public void onExperimentActivated(final IExperiment experiment) { - MessageService.defaultLog(new org.eclipse.core.runtime.Status(IStatus.INFO, "org.simantics.simulation.ui", 0, "Activated experiment " + experiment.getIdentifier() , null)); - - activated.release(); - // Set the selected experiment into the the model descriptor. - new Thread("Set Selected Experiment") { - @Override - public void run() { - setSelectedExperiment(project, experimentResource); - } - }.start(); } @Override public void onFailure(Throwable e) { @@ -159,7 +148,4 @@ public class SysdynExperimentActivator { } } - private void setSelectedExperiment(IProject project, Resource experiment) { - project.setHint(ProjectKeys.KEY_SELECTED_UI_EXPERIMENT, experiment); - } } diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProject.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProject.java index 191d715b..5fdccb70 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProject.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProject.java @@ -166,7 +166,6 @@ public class SysdynProject extends AbstractProjectFeature { final IProject project = getProject(); final Session session = getSession(); - addToCollectionHint(ProjectKeys.OPEN_PERSPECTIVES, DEFAULT_PERSPECTIVE); getProjectElement().setHint(ProjectKeys.DEFAULT_PERSPECTIVE, DEFAULT_PERSPECTIVE); getProjectElement().setHint(IEditorNamingService.KEY_EDITOR_NAMING_SERVICE, new EditorNamingService2()); -- 2.47.1