Tabnine Logo
IPath.makeAbsolute
Code IndexAdd Tabnine 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)

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

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • getExternalFilesDir (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • JLabel (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now