private final ResourceSelector selector;
private final IProgressMonitor monitor;
public JSHintBuilderVisitor( IProject project, IProgressMonitor monitor ) throws CoreException {
Preferences node = PreferencesFactory.getProjectPreferences( project );
new EnablementPreferences( node );
selector = new ResourceSelector( project );
checker = selector.allowVisitProject() ? createJSHint( project ) : null;
this.monitor = monitor;
}