Examples of toPortableString()


Examples of org.eclipse.core.runtime.IPath.toPortableString()

            if (location == null) {
                ErlLogger.warn("can't locate " + resource);
                return;
            }
            final BufferedReader reader = new BufferedReader(new FileReader(
                    location.toPortableString()));
            try {
                String line = reader.readLine();
                final List<Pair<String, Integer>> cl = new ArrayList<Pair<String, Integer>>();
                int numline = 0;
                while (line != null) {
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toPortableString()

        foundFile = findCachedFile(searchFilename);
        if (foundFile == null) {

            try {
                IPath projectPath = project.getCorrespondingResource().getLocation();
                File searchFolder = new File(projectPath.toPortableString());
                String pathURL = findFile(searchFilename, searchFolder, project);
                Path path = new Path(pathURL);
                foundFile = ResourcesPlugin.getWorkspace().getRoot().findFilesForLocation(path)[0];
            }
            catch (JavaModelException e) {
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toPortableString()

    @Test
    public void testGetTemplateFilePath() {
        Preferences.setJavaPackageFragmentRoot("src/main/javaxx");
        Assert.assertEquals("src/main/javaxx/org/loom/Wizard.java", javaFile.getProjectRelativePath().toPortableString());
        IPath path = EditorFileOpener.getInstance().getTemplateFilePath(javaFile);
        Assert.assertEquals("src/main/webapp/org/loom", path.toPortableString());
    }
   
    /**
     *
     */
 
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toPortableString()

            {
              // remove first segment (project)
              location = location.removeFirstSegments(1);
              // prepare absolute location
              IPath absoluteLocation = project.getLocation().append(location);
              binaryLocations.add(absoluteLocation.toPortableString());
            }
          }
        }
      }
      //
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toPortableString()

  public Object execute(ExecutionEvent event) throws ExecutionException {
    TestPageBookView debugView = (TestPageBookView) HandlerUtil.getActivePart(event);
    TestViewPage activePage = (TestViewPage) debugView.getCurrentPage();
    IResource resource = activePage.getResource();
    IPath location = resource.getLocation();
    String preFilePath = location.toPortableString();
    File preFile = new File(preFilePath);
    if (preFile.exists() == false || StringUtils.isEmpty(preFilePath)) {
      printErrorDialog("The preprocessing file was not found!");
      return null;
    }
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toPortableString()

  public Object execute(ExecutionEvent event) throws ExecutionException {
    TestPageBookView debugView = (TestPageBookView) HandlerUtil.getActivePart(event);
    TestViewPage activePage = (TestViewPage) debugView.getCurrentPage();
    IResource resource = activePage.getResource();
    IPath location = resource.getLocation();
    String preFilePath = location.toPortableString();
    File preFile = new File(preFilePath);
    if (preFile.exists() == false || StringUtils.isEmpty(preFilePath)) {
      printErrorDialog("The preprocessing file was not found!");
      return null;
    }
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toPortableString()

          // init etc
          runCas.reset();
          goldCas.reset();
          // deserialize CASes
          IPath path2RunFile = runTestPath.append(td.getPath().toFile().getName());
          String runFilePath = path2RunFile.toPortableString();
          File runFile = new File(runFilePath);
          deserializeCASs(goldCas, td, runCas, runFile);
          runCas = runCas.getView(viewCasName);
          goldCas = goldCas.getView(viewCasName);
          // ** create TP, FP, FN annotations
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toPortableString()

          }
          cleanCas = cleanCas.getView(viewCasName);
          prepareCas(cleanCas);
          // store clean CAS
          IPath path2CleanFile = computeCleanPath(cleanInputPath, td);
          String fPath = path2CleanFile.toPortableString();
          File cleanFile = new File(fPath);
          writeXmi(cleanCas, cleanFile);

          td.setResultPath(path2CleanFile);
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toPortableString()

                .append(RutaProjectUtils.getDefaultTempTestLocation());
        path2ResultFile = path2Result.append(td.getPath().removeFileExtension().lastSegment()
                + ".result.xmi");
      }

      File resultFile = new File(path2ResultFile.toPortableString());
      writeXmi(resultCas, resultFile);

      td.setResultPath(path2ResultFile);

      // finally, calculate eval data and show it in the GUI
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toPortableString()

                                    return false;

                                IResource resource = delta.getResource();
                                if (resource.getType() == IResource.FILE) {
                                    IPath location = resource.getLocation();
                                    boolean isRunBundle = location != null ? runBundleSet.contains(location.toPortableString()) : false;
                                    update.compareAndSet(false, isRunBundle);
                                    return false;
                                }

                                // Recurse into containers
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.