Skip to content

Commit f84b00e

Browse files
committed
Merge branch 'master' of github-as-ebousse:gemoc/modelanimation
2 parents 7f21742 + 860c10d commit f84b00e

File tree

3 files changed

+12
-4
lines changed
  • framework/execution_framework/plugins/org.gemoc.executionframework.engine.ui/src/org/gemoc/executionframework/engine/ui/debug
  • java_execution/java_engine/plugins/org.gemoc.execution.sequential.javaengine/src/org/gemoc/execution/sequential/javaengine
  • trace/manager/plugins/org.gemoc.sequential_addons.multidimensional.timeline/src/org/gemoc/sequential_addons/multidimensional/timeline

3 files changed

+12
-4
lines changed

framework/execution_framework/plugins/org.gemoc.executionframework.engine.ui/src/org/gemoc/executionframework/engine/ui/debug/AbstractGemocDebugger.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ private void selectLastStackframe() {
428428
if (s.getName().startsWith("Global context :")) {
429429
tree.showItem(item);
430430
tree.select(item);
431-
TreeSelection selection = (TreeSelection)viewer.getSelection();
431+
final TreeSelection selection = (TreeSelection)viewer.getSelection();
432432
final TreePath[] paths = selection.getPathsFor(stackFrameAdapter);
433433
selectionProvider.setSelection(new TreeSelection(paths));
434434
break;

java_execution/java_engine/plugins/org.gemoc.execution.sequential.javaengine/src/org/gemoc/execution/sequential/javaengine/PlainK3ExecutionEngine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ public void acceptSearchMatch(SearchMatch match) throws CoreException {
357357
// return new Status(IStatus.ERROR, Activator.PLUGIN_ID, );
358358
}
359359

360-
return binaryType.get(0);
360+
return binaryType.isEmpty() ? null : binaryType.get(0);
361361
}
362362

363363
private static TransactionalEditingDomain getEditingDomain(EObject o) {

trace/manager/plugins/org.gemoc.sequential_addons.multidimensional.timeline/src/org/gemoc/sequential_addons/multidimensional/timeline/Activator.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212

1313
import java.util.function.Supplier;
1414

15+
import org.eclipse.core.runtime.IStatus;
1516
import org.eclipse.core.runtime.Status;
17+
import org.eclipse.jface.dialogs.ErrorDialog;
1618
import org.eclipse.ui.plugin.AbstractUIPlugin;
1719
import org.gemoc.sequential_addons.multidimensional.timeline.views.timeline.MultidimensionalTimeLineView;
1820
import org.osgi.framework.BundleContext;
@@ -45,8 +47,14 @@ public Activator() {
4547
* )
4648
*/
4749
public void start(BundleContext context) throws Exception {
48-
super.start(context);
49-
plugin = this;
50+
try {
51+
Class.forName("javafx.embed.swt.FXCanvas");
52+
super.start(context);
53+
plugin = this;
54+
} catch (ClassNotFoundException e) {
55+
ErrorDialog.openError(null,"Multidimensional Timeline Unavailable", "Please install JavaFX or use the Oracle JRE",
56+
new Status(IStatus.ERROR,PLUGIN_ID,"JavaFX is needed for the timeline to work"));
57+
}
5058
}
5159

5260
/*

0 commit comments

Comments
 (0)