Examples of PathsPreferences


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

    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

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

    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

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

  @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

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

    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
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.