Search in sources :

Example 1 with EclipseMarkupModelListener

use of nl.tudelft.watchdog.eclipse.logic.ui.listeners.staticanalysis.EclipseMarkupModelListener in project watchdog by TestRoots.

the class WorkbenchListener method addStaticAnalysisListeners.

private void addStaticAnalysisListeners() {
    IWorkspace workspace = ResourcesPlugin.getWorkspace();
    this.markupModelListener = new EclipseMarkupModelListener(this.trackingEventManager);
    workspace.addResourceChangeListener(this.markupModelListener, IResourceChangeEvent.POST_BUILD);
    try {
        workspace.getRoot().accept(this.markupModelListener.createVisitor(false));
    } catch (CoreException e) {
        e.printStackTrace();
    }
}
Also used : EclipseMarkupModelListener(nl.tudelft.watchdog.eclipse.logic.ui.listeners.staticanalysis.EclipseMarkupModelListener) CoreException(org.eclipse.core.runtime.CoreException) IWorkspace(org.eclipse.core.resources.IWorkspace)

Aggregations

EclipseMarkupModelListener (nl.tudelft.watchdog.eclipse.logic.ui.listeners.staticanalysis.EclipseMarkupModelListener)1 IWorkspace (org.eclipse.core.resources.IWorkspace)1 CoreException (org.eclipse.core.runtime.CoreException)1