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

Examples of com.eclipsesource.jshint.ui.internal.preferences.ui.IncludesView.loadPreferences()


  public void loadPreferences() {
    IncludesView view = new IncludesView( parent, SWT.NONE, project );
    preferences.setIncludePatterns( list( "/foo/" ) );
    preferences.setExcludePatterns( list( "/bar/" ) );

    view.loadPreferences( preferences );

    SWTBotTable includeTable = findIncludeTable( view );
    SWTBotTable excludeTable = findExcludeTable( view );
    assertEquals( 1, includeTable.rowCount() );
    assertEquals( 1, excludeTable.rowCount() );
View Full Code Here


  @Test
  public void loadPreferences_changed() {
    IncludesView view = new IncludesView( parent, SWT.NONE, project );
    preferences.setIncludePatterns( list( "/foo/" ) );
    view.loadPreferences( preferences );

    preferences.setIncludePatterns( list( "/bar/" ) );
    view.loadPreferences( preferences );

    SWTBotTable table = findIncludeTable( view );
View Full Code Here

    IncludesView view = new IncludesView( parent, SWT.NONE, project );
    preferences.setIncludePatterns( list( "/foo/" ) );
    view.loadPreferences( preferences );

    preferences.setIncludePatterns( list( "/bar/" ) );
    view.loadPreferences( preferences );

    SWTBotTable table = findIncludeTable( view );
    assertEquals( 1, table.rowCount() );
    assertEquals( "/bar/", table.getTableItem( 0 ).getText() );
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.