Package org.eclipse.core.resources

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


      doImports(proj, imports[i], new SubProgressMonitor(monitor, 1));
    }

    String open = desc.getAttribute("open"); //$NON-NLS-1$
    if ((open != null) && (open.length() > 0)) {
      IResource fileToOpen = proj.findMember(new Path(open));
      if (fileToOpen != null) {
        elementToOpen = fileToOpen;
      }
    }
View Full Code Here


        setErrorMessage("Type errors in Model");
        return false;
      }
    }

    if (project.findMember(new Path(ctPath.getText())) == null)
    {
      setErrorMessage("CT model path not valid");
    }
    if (project.findMember(new Path(dePath.getText())) == null)
    {
View Full Code Here

    if (project.findMember(new Path(ctPath.getText())) == null)
    {
      setErrorMessage("CT model path not valid");
    }
    if (project.findMember(new Path(dePath.getText())) == null)
    {
      setErrorMessage("DE model path not valid");
    }
    if (fScenarioText.getText().length() > 0
        && project.findMember(new Path(fScenarioText.getText())) == null)
View Full Code Here

    if (project.findMember(new Path(dePath.getText())) == null)
    {
      setErrorMessage("DE model path not valid");
    }
    if (fScenarioText.getText().length() > 0
        && project.findMember(new Path(fScenarioText.getText())) == null)
    {
      setErrorMessage("Scenario path not valid");
    }

    try
View Full Code Here

      logTreeViewer.setInput(model);
      //logTreeViewer.expandAll();
      //logTreeViewer.collapseAll();
    }
   
    IResource architecturesDirectory = project.findMember("model_de/architectures");
    if(architecturesDirectory == null)
    {
      warningLabel.setText("Folder not found");
      createFolderButton.setEnabled(true);
    }
View Full Code Here

    {
      architecturesTable.removeAll();
     
      //setErrorMessage(null);
      System.out.println("[Architectures] Base config is selected");
      IResource architecturesDirectory = project.findMember("model_de/architectures");
      if(architecturesDirectory == null)
      {
        warningLabel.setText("Folder not found");
        createFolderButton.setEnabled(true);
      }
View Full Code Here

    {
      scenariosTable.removeAll();
     
      //setErrorMessage(null);
      System.out.println("[Scenarios] Base config is selected");
      IResource scenariosResource = project.findMember("scenarios");
      if(scenariosResource == null)
      {
        warningLabel.setText("Folder not found");
        createFolderButton.setEnabled(true);
      }
View Full Code Here

        MessageDialog.openInformation(window.getShell(),"Tapesty 5 tips","Only Tapestry 5 page class or .tml page file can use this function!");
        return ;
      }
      if(aimFileName.indexOf("/") > -1)
        aimNameShort = aimFileName.substring(aimFileName.lastIndexOf("/") + 1);
      final IResource res = activeProject.findMember(aimFileName.substring(("/" + activeProject.getName()).length()));
      if(res != null && res.getType() == IResource.FILE){
        window.getShell().getDisplay().asyncExec(new Runnable() {
          public void run() {
            IWorkbenchPage page = PlatformUI.getWorkbench()
                .getActiveWorkbenchWindow().getActivePage();
View Full Code Here

          }
        });
      }else{
        searchPartenerFile(activeProject, aimNameShort, root);
        if(this.partenerFile != null){
          final IResource res2 = activeProject.findMember(partenerFile.substring(("/" + activeProject.getName()).length()));
          if(res2 != null && res2.getType() == IResource.FILE){
            window.getShell().getDisplay().asyncExec(new Runnable() {
              public void run() {
                IWorkbenchPage page = PlatformUI.getWorkbench()
                    .getActiveWorkbenchWindow().getActivePage();
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 && filterCoreResources// only filtered is cached
      return cachedClassPath;

    StringBuffer result = new StringBuffer(1000);
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.