Package com.eclipsesource.jshint.ui.internal.preferences

Examples of com.eclipsesource.jshint.ui.internal.preferences.EnablementPreferences


    return composite;
  }

  private void loadPreferences() {
    Preferences node = getPreferences();
    EnablementPreferences enablePreferences = new EnablementPreferences( node );
    includesView.loadPreferences( enablePreferences );
  }
View Full Code Here


    includesView.loadPreferences( enablePreferences );
  }

  private boolean storePreferences() throws CoreException {
    Preferences node = getPreferences();
    EnablementPreferences enablePreferences = new EnablementPreferences( node );
    includesView.storePreferences( enablePreferences );
    if( enablePreferences.hasChanged() ) {
      savePreferences();
      return true;
    }
    return false;
  }
View Full Code Here

  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;
  }
View Full Code Here

    assertFalse( visitor.visit( file ) );
  }

  private void addIncludePattern( IProject project, String... pattern ) {
    Preferences projectPrefsNode = PreferencesFactory.getProjectPreferences( project );
    new EnablementPreferences( projectPrefsNode ).setIncludePatterns( list( pattern ) );
  }
View Full Code Here

TOP

Related Classes of com.eclipsesource.jshint.ui.internal.preferences.EnablementPreferences

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.