Skip to content

Commit

Permalink
Update scenario designer images and fix missing configuration type in…
Browse files Browse the repository at this point in the history
… plugin.xml
  • Loading branch information
objectiser committed Aug 9, 2012
1 parent 5c432b9 commit 600ec97
Show file tree
Hide file tree
Showing 30 changed files with 24 additions and 15 deletions.
11 changes: 11 additions & 0 deletions plugins/org.savara.tools.scenario/plugin.xml
Expand Up @@ -28,6 +28,17 @@
</contentTypeBinding>
</editor>
</extension>

<extension point="org.eclipse.debug.core.launchConfigurationTypes">
<launchConfigurationType
id="org.savara.tools.scenario.designer.simulate.ScenarioSimulationLauncher"
delegate="org.savara.tools.scenario.designer.simulate.ScenarioSimulationLauncher"
modes="run"
name="Scenario Simulation">
<fileExtension extension="scn" default="true"/>
<fileExtension extension="scenario" default="true"/>
</launchConfigurationType>
</extension>

<extension point="org.eclipse.core.contenttype.contentTypes">
<content-type
Expand Down
Expand Up @@ -59,17 +59,17 @@ protected void buildActions() {
org.eclipse.ui.actions.RetargetAction act=
new org.eclipse.ui.actions.RetargetAction(
SimulateScenarioAction.ID, "Simulate Scenario");
act.setImageDescriptor(org.savara.tools.scenario.designer.DesignerImages.getImageDescriptor("Simulate.png"));
act.setImageDescriptor(org.savara.tools.scenario.designer.DesignerImages.getImageDescriptor("simulate.png"));
addRetargetAction(act);

act = new org.eclipse.ui.actions.RetargetAction(
ResetSimulationAction.ID, "Reset Simulation");
act.setImageDescriptor(org.savara.tools.scenario.designer.DesignerImages.getImageDescriptor("ResetSimulation.png"));
act.setImageDescriptor(org.savara.tools.scenario.designer.DesignerImages.getImageDescriptor("reset-simulation.png"));
addRetargetAction(act);

act = new org.eclipse.ui.actions.RetargetAction(
GenerateImageAction.ID, "Generate Image");
act.setImageDescriptor(org.savara.tools.scenario.designer.DesignerImages.getImageDescriptor("GenerateImage.gif"));
act.setImageDescriptor(org.savara.tools.scenario.designer.DesignerImages.getImageDescriptor("generate-image.png"));
addRetargetAction(act);
}

Expand Down
Expand Up @@ -63,7 +63,7 @@ protected void init() {
setId(ID);
setText("Generate Image...");

setImageDescriptor(org.savara.tools.scenario.designer.DesignerImages.getImageDescriptor("GenerateImage.gif"));
setImageDescriptor(org.savara.tools.scenario.designer.DesignerImages.getImageDescriptor("generate-image.png"));
}

/**
Expand Down
Expand Up @@ -71,7 +71,7 @@ public ScenarioPaletteRoot() {
"Creates a role",
new Role(),
new ModelCreationFactory(Role.class),
DesignerImages.getImageDescriptor("Role.gif"),
DesignerImages.getImageDescriptor("Role.png"),
null);
drawer.add(entry);

Expand All @@ -80,7 +80,7 @@ public ScenarioPaletteRoot() {
"Creates an event group",
new Group(),
new ModelCreationFactory(Group.class),
DesignerImages.getImageDescriptor("Group.gif"),
DesignerImages.getImageDescriptor("Group.png"),
null);
drawer.add(entry);

Expand All @@ -92,7 +92,7 @@ public ScenarioPaletteRoot() {
"Message Link",
"Creates a link between two message events",
new ModelCreationFactory(Link.class),
DesignerImages.getImageDescriptor("Link.gif"),
DesignerImages.getImageDescriptor("Link.png"),
null));

drawer.add(new PaletteSeparator());
Expand All @@ -102,7 +102,7 @@ public ScenarioPaletteRoot() {
"Creates a send",
new SendEvent(),
new ModelCreationFactory(SendEvent.class),
DesignerImages.getImageDescriptor("Send.gif"),
DesignerImages.getImageDescriptor("Send.png"),
null);
drawer.add(entry);

Expand All @@ -115,7 +115,7 @@ public ScenarioPaletteRoot() {
"Creates a receive",
new ReceiveEvent(),
new ModelCreationFactory(ReceiveEvent.class),
DesignerImages.getImageDescriptor("Receive.gif"),
DesignerImages.getImageDescriptor("Receive.png"),
null);
drawer.add(entry);

Expand All @@ -124,7 +124,7 @@ public ScenarioPaletteRoot() {
"Creates an elapsed time event",
new TimeElapsedEvent(),
new ModelCreationFactory(TimeElapsedEvent.class),
DesignerImages.getImageDescriptor("TimeElapsed.gif"),
DesignerImages.getImageDescriptor("TimeElapsed.png"),
null);
drawer.add(entry);

Expand All @@ -135,7 +135,7 @@ public ScenarioPaletteRoot() {
"Import another scenario",
new Import(),
new ModelCreationFactory(Import.class),
DesignerImages.getImageDescriptor("Import.gif"),
DesignerImages.getImageDescriptor("Import.png"),
null);
drawer.add(entry);
}
Expand Down
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Expand Up @@ -59,10 +59,8 @@
import org.savara.common.resources.ResourceLocator;
import org.savara.scenario.model.Role;
import org.savara.scenario.model.Scenario;
import org.savara.scenario.simulation.DefaultSimulationContext;
import org.savara.scenario.simulation.RoleSimulator;
import org.savara.scenario.simulation.RoleSimulatorFactory;
import org.savara.scenario.simulation.SimulationContext;
import org.savara.scenario.simulation.SimulationModel;
import org.savara.scenario.simulation.model.RoleDetails;
import org.savara.scenario.simulation.model.Simulation;
Expand Down
Expand Up @@ -32,5 +32,5 @@ public interface ScenarioSimulationLaunchConfigurationConstants {
public static final String ATTR_SIMULATION_FILE="execute_services";

public static final String LAUNCH_CONFIG_TYPE=
"org.pi4soa.scenario.eclipse.ScenarioTestLauncher";
"org.savara.tools.scenario.designer.simulate.ScenarioSimulationLauncher";
}
Expand Up @@ -84,7 +84,7 @@ public static Image getImage(Object component, ScenarioDiagram diagram) {

if (imageName != null) {
try {
ret = DesignerImages.getImage(imageName+".gif");
ret = DesignerImages.getImage(imageName+".png");

} catch(Exception e) {
logger.severe("Image for '"+imageName+
Expand Down

0 comments on commit 600ec97

Please sign in to comment.