Examples of toOSString()


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

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

        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

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

  }
 
  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

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

    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

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

  }

  private static File getImageFile(long id) {
    IPath path = new Path(Activator.getDefault().getStateLocation().toOSString());
    path = path.append(ICONS_FOLDER);
    File root = new File(path.toOSString());
    if (!root.exists())
      root.mkdir();

    path = path.append(id + ".ico");
View Full Code Here

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

    if (!root.exists())
      root.mkdir();

    path = path.append(id + ".ico");

    return new File(path.toOSString());
  }

  /**
   * Attempts to find the primary <code>IWorkbenchWindow</code> from the
   * PlatformUI facade. Otherwise, returns <code>NULL</code> if none.
View Full Code Here

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

    if (activator == null)
      return null;

    IPath path = new Path(activator.getStateLocation().toOSString());
    path = path.append(ICONS_FOLDER);
    File root = new File(path.toOSString());
    if (!root.exists())
      res = root.mkdir();
    else
      res = true;
View Full Code Here

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

    path = path.append(fileName);

    if (!res)
      return null;

    return new File(path.toOSString());
  }

  private static File getImageFile(long id) {
    return getImageFile(id + ".ico"); //$NON-NLS-1$
  }
View Full Code Here

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

  }

  private static File getImageFile(long id) {
    IPath path = new Path(Activator.getDefault().getStateLocation().toOSString());
    path = path.append(ICONS_FOLDER);
    File root = new File(path.toOSString());
    if (!root.exists())
      root.mkdir();

    path = path.append(id + ".ico");
View Full Code Here

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

    if (!root.exists())
      root.mkdir();

    path = path.append(id + ".ico");

    return new File(path.toOSString());
  }

  /**
   * Attempts to find the primary <code>IWorkbenchWindow</code> from the
   * PlatformUI facade. Otherwise, returns <code>NULL</code> if none.
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.