Package org.eclipse.core.resources

Examples of org.eclipse.core.resources.ISynchronizer


    if (!System.getProperty("os.name").startsWith("Windows")){
      //ToolBuilderActivator.log(IStatus.WARNING, "The repository interface can only run on Windows using a valid Forte/UDS installation");
      return Status.CANCEL_STATUS;
    }
    IProject[] projects = this.workspace.getRoot().getProjects();
    ISynchronizer syncronizer = this.workspace.getSynchronizer();
    IStatus status = Status.OK_STATUS;
    monitor.beginTask("Synchronize repository state", projects.length);
    String projectName = "";
    try {
      for (IProject project : projects){
        projectName = project.getName();
        monitor.subTask("Checking " + projectName);
        if (project.hasNature(ToolNature.NATURE_ID)){
//          setRule(FScript.getFScript(project).getRule());
          final Map<String, RepositoryComponent> list = FScript.getFScript(project).ListWorkspaceChanges();
          QualifiedName partner = RepositoryPropertiesManager.getSyncQualifiedName(project);
          syncronizer.add(partner);
          syncronizer.flushSyncInfo(partner, project, IResource.DEPTH_INFINITE);
          final List<IFile> components = new ArrayList<IFile>();
          project.accept(new IResourceProxyVisitor() {
            public boolean visit(IResourceProxy proxy) throws CoreException {
              if (proxy.getType() == IResource.FILE) {
                IFile file = (IFile) proxy.requestResource();
View Full Code Here

TOP

Related Classes of org.eclipse.core.resources.ISynchronizer

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.