Examples of modifyRule()


Examples of org.eclipse.core.resources.IResourceRuleFactory.modifyRule()

  protected ISchedulingRule getSchedulingRule() {
    if (this.canChangeResources) {
      IResourceRuleFactory ruleFactory = ResourcesPlugin.getWorkspace().getRuleFactory();
      return new MultiRule(new ISchedulingRule[] {
        // use project modification rule as this is needed to create the .classpath file if it doesn't exist yet, or to update project references
        ruleFactory.modifyRule(this.project.getProject()),
       
        // and external project modification rule in case the external folders are modified
        ruleFactory.modifyRule(JavaModelManager.getExternalManager().getExternalFoldersProject())
      });
    }
View Full Code Here

Examples of org.eclipse.core.resources.IResourceRuleFactory.modifyRule()

      return new MultiRule(new ISchedulingRule[] {
        // use project modification rule as this is needed to create the .classpath file if it doesn't exist yet, or to update project references
        ruleFactory.modifyRule(this.project.getProject()),
       
        // and external project modification rule in case the external folders are modified
        ruleFactory.modifyRule(JavaModelManager.getExternalManager().getExternalFoldersProject())
      });
    }
    return super.getSchedulingRule();
  }
View Full Code Here

Examples of org.eclipse.core.resources.IResourceRuleFactory.modifyRule()

        // to perform fresh resolve

        // Let's try to be nice and use the workspace method to schedule resolves in
        // dependent projects after the close operation has finished.
        IResourceRuleFactory ruleFactory = ResourcesPlugin.getWorkspace().getRuleFactory();
        ISchedulingRule modifyRule = ruleFactory.modifyRule(javaProject.getCorrespondingResource());
        List affectedContainers = getAffectedContainers(javaProject.getPath());
        IvyMultiResolveJob multiResolveJob = new IvyMultiResolveJob(affectedContainers);
        multiResolveJob.setRule(modifyRule);
        multiResolveJob.schedule();
View Full Code Here

Examples of org.eclipse.core.resources.IResourceRuleFactory.modifyRule()

        }

        // Let's try to be nice and use the workspace method to schedule resolves in
        // dependent projects after the open operation has finished.
        IResourceRuleFactory ruleFactory = ResourcesPlugin.getWorkspace().getRuleFactory();
        ISchedulingRule modifyRule = ruleFactory.modifyRule(ResourcesPlugin.getWorkspace()
                .getRoot());
        List allContainers = getAllContainersExcludingProjects(projects);
        IvyMultiResolveJob multiResolveJob = new IvyMultiResolveJob(allContainers);
        multiResolveJob.setRule(modifyRule);
        multiResolveJob.schedule();
View Full Code Here

Examples of org.eclipse.core.resources.IResourceRuleFactory.modifyRule()

        // to perform fresh resolve

        // Let's try to be nice and use the workspace method to schedule resolves in
        // dependent projects after the close operation has finished.
        IResourceRuleFactory ruleFactory = ResourcesPlugin.getWorkspace().getRuleFactory();
        ISchedulingRule modifyRule = ruleFactory.modifyRule(javaProject.getCorrespondingResource());
        class IvyClosedProjectJob extends WorkspaceJob {

            public IvyClosedProjectJob() {
                super("IvyClosedProjectJob");
            }
View Full Code Here

Examples of org.eclipse.core.resources.IResourceRuleFactory.modifyRule()

        }

        // Let's try to be nice and use the workspace method to schedule resolves in
        // dependent projects after the open operation has finished.
        IResourceRuleFactory ruleFactory = ResourcesPlugin.getWorkspace().getRuleFactory();
        ISchedulingRule modifyRule = ruleFactory.modifyRule(ResourcesPlugin.getWorkspace()
                .getRoot());
        class IvyOpenProjectJob extends WorkspaceJob {

            public IvyOpenProjectJob() {
                super("IvyOpenProjectJob");
View Full Code Here

Examples of org.eclipse.core.resources.IResourceRuleFactory.modifyRule()

    }

    private void run(ReplaceOperation operation, IResource resource) throws InvocationTargetException,
            InterruptedException {
        IResourceRuleFactory ruleFactory = ResourcesPlugin.getWorkspace().getRuleFactory();
        ISchedulingRule rule = ruleFactory.modifyRule(resource);

        PlatformUI.getWorkbench().getProgressService().runInUI(this, operation, rule);
    }

    private Match getCurrentMarker() {
View Full Code Here

Examples of org.eclipse.core.resources.IResourceRuleFactory.modifyRule()

        .getRuleFactory();
    for (IPath path : paths) {
      IResource resource = ResourceUtil.getResourceForLocation(path);
      if (resource != null) {
        IContainer container = resource.getParent();
        ISchedulingRule rule = ruleFactory.modifyRule(container);
        if (rule != null)
          rules.add(rule);
      }
    }
    if (rules.size() == 0)
View Full Code Here

Examples of org.eclipse.core.resources.IResourceRuleFactory.modifyRule()

  protected ISchedulingRule getSchedulingRule() {
    if (this.canChangeResources) {
      IResourceRuleFactory ruleFactory = ResourcesPlugin.getWorkspace().getRuleFactory();
      return new MultiRule(new ISchedulingRule[] {
        // use project modification rule as this is needed to create the .classpath file if it doesn't exist yet, or to update project references
        ruleFactory.modifyRule(this.project.getProject()),
       
        // and external project modification rule in case the external folders are modified
        ruleFactory.modifyRule(JavaModelManager.getExternalManager().getExternalFoldersProject())
      });
    }
View Full Code Here

Examples of org.eclipse.core.resources.IResourceRuleFactory.modifyRule()

      return new MultiRule(new ISchedulingRule[] {
        // use project modification rule as this is needed to create the .classpath file if it doesn't exist yet, or to update project references
        ruleFactory.modifyRule(this.project.getProject()),
       
        // and external project modification rule in case the external folders are modified
        ruleFactory.modifyRule(JavaModelManager.getExternalManager().getExternalFoldersProject())
      });
    }
    return super.getSchedulingRule();
  }
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.