Package org.eclipse.core.runtime

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


    if (rawLocation != null) {
      projectLocation = rawLocation.removeLastSegments(1);
    } else {
      projectLocation = project.getParent().getLocation();
    }
    return projectLocation.toOSString();
  }

  public List<String> getAllJavaPackages(IJavaProject javaProject) throws JavaModelException,
      CoreException {
    List<String> allJavaPackages = new ArrayList<String>();
View Full Code Here


        private String copyPltFile(final String pltPath,
                final String alternatePltFileDirectory) throws IOException {
            IPath path = new Path(pltPath);
            final String name = path.lastSegment();
            path = new Path(alternatePltFileDirectory).append(name);
            Files.copy(new File(pltPath), new File(path.toOSString()));
            return path.toPortableString();
        }

        private void checkPlt(final String pltPath,
                final String alternatePltFileDirectory, final IProgressMonitor monitor,
View Full Code Here

  }
 
  public IFile createFile(final IFolder folder, final String name, final String contents) throws CoreException {
    final IFile file = folder.getFile(name);
    IPath _location = file.getLocation();
    String _oSString = _location.toOSString();
    final File f = new File(_oSString);
    f.delete();
    Charset _defaultCharset = Charset.defaultCharset();
    byte[] _bytes = contents.getBytes(_defaultCharset);
    ByteArrayInputStream _byteArrayInputStream = new ByteArrayInputStream(_bytes);
View Full Code Here

    final IPath stateDir = new Path(_stateDir);
    final List<String> cacheExts = Collections.<String>unmodifiableList(CollectionLiterals.<String>newArrayList(".noparse", ".refs", ".scan"));
    for (final String ext : cacheExts) {
      {
        final IPath p = stateDir.append((scannerName + ext));
        String _oSString = p.toOSString();
        final File f = new File(_oSString);
        boolean _exists_1 = f.exists();
        if (_exists_1) {
          f.delete();
        }
View Full Code Here

    return URIUtil.toURI(_portableString);
  }
 
  public File createTmpFile(final String fileName, final String contentString) throws IOException, FileNotFoundException {
    IPath _tmpPath = this.getTmpPath(fileName);
    final String pathString = _tmpPath.toOSString();
    final File f = new File(pathString);
    boolean _exists = f.exists();
    if (_exists) {
      f.delete();
    }
View Full Code Here

        } else {
            ErlLogger.debug("Not supported OS found, no C binary is used.");
            return "";
        }

        return path.toOSString();
    }

    @Override
    protected boolean getUserInput() {
        final Shell shell = PlatformUI.getWorkbench().getDisplay().getActiveShell();
View Full Code Here

        final String sourcePath = getBinPath(callbackModule);

        final IPath destDir = getDestDir(type);
        final String destPath = getDestPath(callbackModule, destDir);
        String destDirStr = destDir.toOSString();
        destDirStr = destDirStr.substring(destDirStr.lastIndexOf(":") + 1);

        if (sourcePath == null || destPath == null
                || copy(sourcePath, destPath, destDirStr)) {
            load(callbackModule, destDirStr);
View Full Code Here

      if (!containerPath.hasTrailingSeparator()) {
        containerPath = containerPath.addTrailingSeparator();
      }
      IPath path = fileName.length() == 0 ? containerPath : containerPath
          .append(fileName);
      fileNameEditor.setText(path.toOSString());
    }
    setPageComplete(validatePage());
  }

  /**
 
View Full Code Here

      IPath location = resource.getLocation();

       if (location != null) {
        resources.add(resource);

        fileNames.add(location.toOSString());
      }
    }

    IResource[] resourcesArray = resources.toArray(new IResource[resources.size()]);
View Full Code Here

        // The server folder path
        IPath serverFolderPath = LdapServersManager.getServerFolder( server );

        // Setting the program arguments attribute
        workingCopy.setAttribute( IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS, "\"" //$NON-NLS-1$
            + serverFolderPath.toOSString() + "\"" ); //$NON-NLS-1$

        // Creating the VM arguments string
        StringBuffer vmArguments = new StringBuffer();
        vmArguments.append( "-Dlog4j.configuration=file:\"" //$NON-NLS-1$
            + serverFolderPath.append( CONF ).append( LOG4J_PROPERTIES ).toOSString() + "\"" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
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.