Commit 054f6a75 authored by Hernan Ponce de Leon's avatar Hernan Ponce de Leon
Browse files

[YELLOW] Added the GraphicalStructuresSimulationView

refs 3345
parent 89341215
SimulationManager.java 1baf28d38d392cce28eb5fd90c3e8aed2d3ceb10 GREEN
SimulationPerspective.java 761e1b09d3dd967a17b5e93b10a32e203bfe2901 GREEN
SimulationView.java 44835afce45c30a4c0b9ecaa1ac75673c8aa0a05 GREEN
SimulatorEasyStartMenu.java 47c872e8f725330bd0555c2c9c7a476724030b38 GREEN
SimulatorEasyStartMenu.java 73ed741f4931e1478e6f2e621fb7bf8f5a917e4c YELLOW
SimulatorExecutionTarget.java cd0bbf9be14acb8d3d20044eaa52f01f4ce9e560 GREEN
SimulatorExecutionTargetBase.java fc6e284fe88d6343d75d1cd28bf128c400fa3457 GREEN
......@@ -15,8 +15,11 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.component.ui.simulator;
import static org.conqat.ide.commons.ui.ui.WorkbenchUtils.getActiveWorkbenchPage;
import static org.fortiss.af3.component.ui.AF3ComponentUIActivator.getDefault;
import static org.fortiss.af3.component.utils.ComponentLibraryUtils.cleanTemporaryCopiedProject;
import static org.fortiss.af3.component.utils.ComponentLibraryUtils.copyComponentIntoNewProject;
import static org.fortiss.tooling.kernel.utils.LoggingUtils.error;
import java.util.ArrayList;
import java.util.Collections;
......@@ -26,8 +29,11 @@ import org.eclipse.emf.ecore.EObject;
import org.eclipse.jface.action.ActionContributionItem;
import org.eclipse.jface.action.IContributionItem;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.WorkbenchException;
import org.fortiss.af3.component.model.Component;
import org.fortiss.af3.component.model.ComponentArchitecture;
import org.fortiss.af3.component.ui.simulator.component.GraphicalStructureSimulationView;
import org.fortiss.af3.project.extension.IExecutionTarget;
import org.fortiss.af3.project.model.execution.ExecutionConfiguration;
import org.fortiss.af3.project.services.IExecutionService;
......@@ -123,6 +129,13 @@ public class SimulatorEasyStartMenu extends EasyStartMenuBase {
super.run();
try {
getActiveWorkbenchPage().showView(GraphicalStructureSimulationView.ID,
Integer.toString(target.getId()), IWorkbenchPage.VIEW_ACTIVATE);
} catch(WorkbenchException e) {
error(getDefault(), "Could not show simulation perspective!", e);
}
cleanTemporaryCopiedProject((Component)target);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment