Codota Logo
IPath.makeAbsolute
Code IndexAdd Codota to your IDE (free)

How to use
makeAbsolute
method
in
org.eclipse.core.runtime.IPath

Best Java code snippets using org.eclipse.core.runtime.IPath.makeAbsolute (Showing top 20 results out of 495)

  • Common ways to obtain IPath
private void myMethod () {
IPath i =
  • Codota IconString fullPath;new Path(fullPath)
  • Codota IconIResource resource;resource.getLocation()
  • Codota IconIResource resource;resource.getFullPath()
  • Smart code suggestions by Codota
}
origin: org.eclipse/org.eclipse.emf.importer

/**
 * Sets the path of the genmodel that will be used when this wizard
 * is presented to the user.  This method has to be invoke before the wizard
 * pages are added.
 * @param path The <b>absolute</b> path of the genmodel.
 */
public void setDefaultPath(IPath path)
{
 defaultPath = path.makeAbsolute();
}

origin: org.eclipse/org.eclipse.jst.jsp.core

void deploymentDescriptorChanged(final IPath fullPath) {
  if (fDeploymentDescriptors.containsKey(fullPath.makeAbsolute())) {
    updateCacheEntry(fullPath);
  }
}
origin: org.eclipse/org.eclipse.ajdt.ui

private IPath getRelativePath(IProject project, String outJar) {
  StringBuffer sb = new StringBuffer(outJar);
  int index = sb.lastIndexOf(project.getName());
  IPath path;
  if (index > 0) {
    path = new Path(sb.substring(sb.lastIndexOf(project.getName())));
  } else {
    path = new Path(outJar);
  }
  return path.makeAbsolute();
}
origin: org.eclipse.platform/org.eclipse.core.resources

@Deprecated
@Override
public IFile[] findFilesForLocation(IPath location) {
  return findFilesForLocationURI(URIUtil.toURI(location.makeAbsolute()));
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.core.resources

@Deprecated
@Override
public IFile[] findFilesForLocation(IPath location) {
  return findFilesForLocationURI(URIUtil.toURI(location.makeAbsolute()));
}
origin: org.eclipse/org.eclipse.jst.jsp.core

  /**
   * get the contents of a file as a String
   * 
   * @param filePath - the path to the file
   * @return the contents, null if the file could not be found
   */
  protected String getContents(String filePath) {
    IPath path = new Path(filePath);
    return FileContentCache.getInstance().getContents(path.makeAbsolute());
  }
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.core.resources

@Deprecated
@Override
public IFile[] findFilesForLocation(IPath location) {
  return findFilesForLocationURI(URIUtil.toURI(location.makeAbsolute()));
}
origin: org.eclipse.platform/org.eclipse.core.resources

@Deprecated
@Override
public IContainer[] findContainersForLocation(IPath location) {
  return findContainersForLocationURI(URIUtil.toURI(location.makeAbsolute()));
}
origin: org.eclipse/org.eclipse.jem.util

protected static IPath createPath(IProject p, String defaultSourceName) {
  IPath path = new Path(p.getName());
  path = path.append(defaultSourceName);
  path = path.makeAbsolute();
  return path;
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.core.resources

@Deprecated
@Override
public IContainer[] findContainersForLocation(IPath location) {
  return findContainersForLocationURI(URIUtil.toURI(location.makeAbsolute()));
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.core.resources

@Deprecated
@Override
public IContainer[] findContainersForLocation(IPath location) {
  return findContainersForLocationURI(URIUtil.toURI(location.makeAbsolute()));
}
origin: org.eclipse.platform/org.eclipse.ltk.core.refactoring

public static IPath handleToResourcePath(final String project, final String handle) {
  final IPath path= Path.fromPortableString(handle);
  if (project != null && project.length() > 0 && !path.isAbsolute())
    return new Path(project).append(path).makeAbsolute();
  return path;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ltk.core.refactoring

public static IPath handleToResourcePath(final String project, final String handle) {
  final IPath path= Path.fromPortableString(handle);
  if (project != null && project.length() > 0 && !path.isAbsolute())
    return new Path(project).append(path).makeAbsolute();
  return path;
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

  @Override
  public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
    try {
      List<IJavaElement> result= addToClasspath(getSelectedElements(), project, newDefaultOutputLocation.makeAbsolute(), removeProjectFromClasspath, removeOldClassFiles, monitor);
      selectAndReveal(new StructuredSelection(result));
    } catch (CoreException e) {
      throw new InvocationTargetException(e);
    }
  }
};
origin: org.eclipse/org.eclipse.jdt.ui

  public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
    try {
      List result= addToClasspath(getSelectedElements(), project, newDefaultOutputLocation.makeAbsolute(), removeProjectFromClasspath, removeOldClassFiles, monitor);
      selectAndReveal(new StructuredSelection(result));
    } catch (CoreException e) {
      throw new InvocationTargetException(e);
    }
  }
};
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

  @Override
  public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
    try {
      List<IJavaElement> result= addToClasspath(getSelectedElements(), project, newDefaultOutputLocation.makeAbsolute(), removeProjectFromClasspath, removeOldClassFiles, monitor);
      selectAndReveal(new StructuredSelection(result));
    } catch (CoreException e) {
      throw new InvocationTargetException(e);
    }
  }
};
origin: FeatureIDE/FeatureIDE

public void readFromFile(IFile ifile) throws UnsupportedModelException, FileNotFoundException {
  ////
  FMComposerManager.getFMComposerExtension(ifile.getProject());
  /////
  final File file = ifile.getRawLocation().makeAbsolute().toFile();
  reader.readFromFile(file);
}
origin: biz.aQute/bnd

public void initialize(IJavaProject project,
    IClasspathEntry[] currentEntries) {
  javaProject = project;
  model = Activator.getDefault().getCentral().getModel(project);
  basedir = project.getProject().getLocation().makeAbsolute().toFile();
}
origin: biz.aQute/aQute.bnd

public void initialize(IJavaProject project,
    IClasspathEntry[] currentEntries) {
  javaProject = project;
  model = Activator.getDefault().getCentral().getModel(project);
  basedir = project.getProject().getLocation().makeAbsolute().toFile();
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

private IPath getFilePath() {
  String filePath= isVariableEntry() ? fVariableFileNameField.getText() : (fWorkspaceRadio.isSelected() ? fWorkspaceFileNameField.getText() : fExternalFileNameField.getText());
  return Path.fromOSString(filePath).makeAbsolute();
}
org.eclipse.core.runtimeIPathmakeAbsolute

Javadoc

Returns an absolute path with the segments and device id of this path. Absolute paths start with a path separator. If this path is absolute, it is simply returned.

Popular methods of IPath

  • toString
    Returns a string representation of this path, including its device id. The same separator, "/", is u
  • toFile
    Returns a java.io.File corresponding to this path.
  • toOSString
    Returns a string representation of this path which uses the platform-dependent path separator define
  • append
    Returns the canonicalized path obtained from the concatenation of the given path's segments to the e
  • segmentCount
    Returns the number of segments in this path. Note that both root and empty paths have 0 segments.
  • removeLastSegments
    Returns a copy of this path with the given number of segments removed from the end. The device id is
  • lastSegment
    Returns the last segment of this path, ornull if it does not have any segments.
  • removeFirstSegments
    Returns a copy of this path with the given number of segments removed from the beginning. The device
  • segment
    Returns the specified segment of this path, ornull if the path does not have such a segment.
  • equals
    Returns whether this path equals the given object. Equality for paths is defined to be: same sequenc
  • isAbsolute
    Returns whether this path is an absolute path (ignoring any device id). Absolute paths start with a
  • isPrefixOf
    Returns whether this path is a prefix of the given path. To be a prefix, this path's segments must a
  • isAbsolute,
  • isPrefixOf,
  • toPortableString,
  • makeRelative,
  • getDevice,
  • isEmpty,
  • addTrailingSeparator,
  • getFileExtension,
  • setDevice

Popular in Java

  • Parsing JSON documents to java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • getApplicationContext (Context)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now