use of org.eclipse.vorto.perspective.listener.RemoveImportListener in project vorto by eclipse.
the class AbstractProjectSelectionViewPart method addWorkspaceChangeEventListenr.
protected void addWorkspaceChangeEventListenr() {
IWorkspace workspace = ResourcesPlugin.getWorkspace();
removeProjectListener = new RemoveModelProjectListener(this);
errorDiagnosticsListener = new ErrorDiagnosticListener(newRefreshCurrentProjectRunnable());
removeModelListener = new RemoveModelListener(newRefreshCurrentProjectRunnable());
removeImportListener = new RemoveImportListener(newRefreshCurrentProjectRunnable());
workspace.addResourceChangeListener(removeImportListener, IResourceChangeEvent.POST_CHANGE);
workspace.addResourceChangeListener(removeProjectListener, IResourceChangeEvent.PRE_DELETE);
workspace.addResourceChangeListener(errorDiagnosticsListener, IResourceChangeEvent.POST_CHANGE);
workspace.addResourceChangeListener(removeModelListener, IResourceChangeEvent.POST_CHANGE);
}
Aggregations