Commit 8c91931b authored by Johannes Roith's avatar Johannes Roith

Very basic status support in CupConflictGraphView.

parent 49fb1311
......@@ -119,6 +119,9 @@ public class CupConflictGraphView extends FailableView
CupTextEditor editor) {
super(realParent);
showErrorNoParseTables();
Composite parent = getMain();
this.editor = editor;
Controller.getInstance(editor).registerObserver(this);
......@@ -319,6 +322,10 @@ public class CupConflictGraphView extends FailableView
return getGraphViewer();
}
private void showErrorNoParseTables() {
showError("Parse tables currently not available");
}
@Override
public void modelChanged(Model model) {
if (!isVisible) {
......@@ -329,8 +336,13 @@ public class CupConflictGraphView extends FailableView
if (lalrContext == null) {
System.err.println("CupConflictGraphView: lalrResult was null.");
showErrorNoParseTables();
return;
}
// TODO?!
showMain();
lalr_state.lalr_state_shared sharedState = lalr_state
.getShared(lalrContext);
......
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