Package org.eclipse.xtext.ui.editor.preferences

Examples of org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreAccess


    Editors editors = ProtobufEditorPlugIn.getInstanceOf(Editors.class);
    return editors.projectOwningFileDisplayedIn(editor);
  }

  private boolean shouldValidateEditor(IProject project) {
    IPreferenceStoreAccess storeAccess = ProtobufEditorPlugIn.getInstanceOf(IPreferenceStoreAccess.class);
    GeneralPreferences preferences = generalPreferences(storeAccess, project);
    return preferences.shouldValidateFilesOnActivation();
  }
View Full Code Here


  private IPreferenceStore store;
  private PathsPreferences preferences;
  private Iterable<PathsPreferences> allPreferences;

  @Before public void setUp() {
    IPreferenceStoreAccess storeAccess = mock(IPreferenceStoreAccess.class);
    store = mock(IPreferenceStore.class);
    when(storeAccess.getWritablePreferenceStore(null)).thenReturn(store);
    preferences = new PathsPreferences(storeAccess , null);
    allPreferences = singletonList(preferences);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreAccess

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.