Skip to content

Commit

Permalink
Fix simulation images in product
Browse files Browse the repository at this point in the history
  • Loading branch information
mbats committed Jun 23, 2015
1 parent 1ad818e commit b26798b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public String getSimulatingImage(Module module) {
String imageName = getImageLevel(module, level);
Bundle bundle = org.eclipse.core.runtime.Platform
.getBundle("fr.obeo.dsl.arduino.simulator.design");
URL fileURL = bundle.getEntry("images/" + imageName);
URL fileURL = bundle.getEntry("/images/" + imageName);
File file;
try {
file = new File(FileLocator.resolve(fileURL).toURI());
Expand All @@ -151,7 +151,6 @@ public String getSimulatingImage(Module module) {
// TODO Auto-generated catch block
e.printStackTrace();
}

return "fr.obeo.dsl.arduino.simulator.design/images/" + imageName;
}

Expand Down

0 comments on commit b26798b

Please sign in to comment.