Commit 15038b8b authored by Sebastian Pretscher's avatar Sebastian Pretscher

Added progressMonitor

parent 6d1d1301
......@@ -43,6 +43,8 @@ import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.progress.IProgressService;
import org.eclipse.ui.progress.UIJob;
import org.eclipse.zest.core.viewers.AbstractZoomableViewer;
import org.eclipse.zest.core.viewers.EntityConnectionData;
......@@ -391,8 +393,11 @@ public class CupReduceGraphView implements ICupParserLaLrChangeObserver,
}
rebuildJob = new ModelRebuildJob(model, lalrResult,
lalrContext, connections, nodes, nodeMap, reduceGraphView);
rebuildJob.setSystem(true);
rebuildJob.setSystem(false);
IProgressService progressService = PlatformUI.getWorkbench().getProgressService();
progressService.showInDialog(Display.getCurrent().getActiveShell(), rebuildJob);
rebuildJob.schedule();
}
/*
......
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