Package org.eclipse.core.resources

Examples of org.eclipse.core.resources.IProject.findMember()


    if(path.isAbsolute()) {
      return path;
    }
   
    IProject project = getProject(configuration);
    IPath launchResource = project.findMember(path).getLocation();
   
    GoEnvironment goEnv = GoProjectEnvironment.getGoEnvironment(project);
   
    java.nio.file.Path goPackageAbsolutePath = launchResource.toFile().toPath();
    java.nio.file.Path goPathEntry = goEnv.getGoPath().findGoPathEntryForSourcePath(goPackageAbsolutePath);
View Full Code Here


      return ""; //$NON-NLS-1$
    }
    IJavaProject javaProj = JavaCore.create(project);
    IProject projectRoot = javaProj.getProject();

    IResource classFileResource = projectRoot.findMember(".classpath"); //$NON-NLS-1$
    long stamp = classFileResource.getModificationStamp();
    if (stamp == cachedStamp)
      return cachedClassPath;
    cachedStamp = stamp;
View Full Code Here

    final IProject project = importProject("projects/smoketest/pom.xml");
    waitForJobsToComplete();
    project.build(IncrementalProjectBuilder.FULL_BUILD, monitor);
    waitForJobsToComplete();
    // make sure target/generated-resources is empty
    final IResource targetResourcesFolder = project.findMember(new Path("target").append("generated-resources"));
    if(targetResourcesFolder != null) {
      targetResourcesFolder.delete(true, new NullProgressMonitor());
    }
    // when further auto build is performed
    project.build(IncrementalProjectBuilder.AUTO_BUILD, monitor);
View Full Code Here

  protected IResource createPredefinedProjectAndGetResource(
      String projectName, String resourcePath) throws CoreException,
      IOException {
    IProject project = createPredefinedProject(projectName);
    return project.findMember(resourcePath);
  }
}
View Full Code Here

        else if (event.getSource() instanceof IProject) {
          project = (IProject) event.getSource();
        }

        if (project != null) {
          IResource file = project.findMember(getResourceFile().getFullPath());
          if (file != null) {
            Display.getDefault().asyncExec(new Runnable() {
              public void run() {
                getSite().getPage().closeEditor(AbstractConfigEditor.this, true);
              }
View Full Code Here

    BeansConfigSet configSet = new BeansConfigSet(beansProject, "test-set", IBeansConfigSet.Type.MANUAL);
    configSet.addConfig("basic-bean-config.xml");
    configSet.addConfig("/beans-config-tests-2/second-bean-config.xml");
    beansProject.addConfigSet(configSet);
   
    IFile configFile = (IFile) secondProject.findMember("second-bean-config.xml");
    beansProject.removeConfig(configFile);
   
    IBeansConfigSet set = beansProject.getConfigSet("test-set");
    Set<IBeansConfig> configs = set.getConfigs();
    assertEquals(1, configs.size());
View Full Code Here

    model.addProject(secondBeansProject);
   
    beansProject.addConfig("basic-bean-config.xml", IBeansConfig.Type.MANUAL);
    secondBeansProject.addConfig("second-bean-config.xml", IBeansConfig.Type.MANUAL);
   
    IFile xmlFile = (IFile) secondProject.findMember("second-bean-config.xml");
    Set<IBeansConfig> configs = beansProject.getConfigs(xmlFile, false);
    assertEquals(1, configs.size());
    IBeansConfig config = configs.iterator().next();
    assertEquals("second-bean-config.xml", config.getElementName());
   
View Full Code Here

  protected ISourceViewer viewer;

  protected void setUp(String javaClassName) throws Exception {
    IProject project = createPredefinedProject("Test");

    IFile xmlFile = (IFile) project.findMember("src/jdt-processor.xml");

    ((BeansModel) BeansCorePlugin.getModel()).start();

    IBeansProject springProject = BeansCorePlugin.getModel().getProject(project);
    if (springProject != null && springProject instanceof BeansProject) {
View Full Code Here

    BeansConfigSet configSet = new BeansConfigSet(beansProject, "test-set", IBeansConfigSet.Type.MANUAL);
    configSet.addConfig("basic-bean-config.xml");
    configSet.addConfig("/beans-config-tests-2/second-bean-config.xml");
    beansProject.addConfigSet(configSet);
   
    IFile configFile = (IFile) secondProject.findMember("second-bean-config.xml");
    beansProject.removeConfig(configFile);
   
    IBeansConfigSet set = beansProject.getConfigSet("test-set");
    Set<IBeansConfig> configs = set.getConfigs();
    assertEquals(1, configs.size());
View Full Code Here

    model.addProject(secondBeansProject);
   
    beansProject.addConfig("basic-bean-config.xml", IBeansConfig.Type.MANUAL);
    secondBeansProject.addConfig("second-bean-config.xml", IBeansConfig.Type.MANUAL);
   
    IFile xmlFile = (IFile) secondProject.findMember("second-bean-config.xml");
    Set<IBeansConfig> configs = beansProject.getConfigs(xmlFile, false);
    assertEquals(1, configs.size());
    IBeansConfig config = configs.iterator().next();
    assertEquals("second-bean-config.xml", config.getElementName());
   
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.