Package com.google.eclipse.protobuf.ui.preferences.paths

Examples of com.google.eclipse.protobuf.ui.preferences.paths.PathsPreferences$Initializer


    IProject project = uris.projectOfReferredFile(resourceUri);
    FileResolverStrategy resolver = multipleDirectories;
    if (project == null) {
      return resolver.resolveUri(importUri, resourceUri, preferencesFromAllProjects());
    }
    PathsPreferences preferences = new PathsPreferences(storeAccess, project);
    if (!preferences.areFilesInMultipleDirectories()) {
      resolver = singleDirectory;
    }
    return resolver.resolveUri(importUri, resourceUri, singletonList(preferences));
  }
View Full Code Here


    IWorkspaceRoot root = workspaceRoot();
    for (IProject project : root.getProjects()) {
      if (project.isHidden() || !project.isAccessible() || !XtextProjectHelper.hasNature(project)) {
        continue;
      }
      PathsPreferences preferences = new PathsPreferences(storeAccess, project);
      allPreferences.add(preferences);
    }
    return unmodifiableList(allPreferences);
  }
View Full Code Here

  @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

    IProject project = context.getBuiltProject();
    CompilerPreferences compilerPreferences = compilerPreferences(storeAccess, project);
    if (!compilerPreferences.shouldCompileProtoFiles()) {
      return;
    }
    PathsPreferences pathsPreferences = new PathsPreferences(storeAccess, project);
    ProtocCommandBuilder commandBuilder = new ProtocCommandBuilder(compilerPreferences, pathsPreferences);
    for (Delta delta : deltas) {
      if (subMonitor.isCanceled()) {
        throw new OperationCanceledException();
      }
View Full Code Here

TOP

Related Classes of com.google.eclipse.protobuf.ui.preferences.paths.PathsPreferences$Initializer

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.