org.eclipse.xtext.ui.refactoring.impl
Class ProjectUtil

java.lang.Object
  extended by org.eclipse.xtext.ui.refactoring.impl.ProjectUtil

public class ProjectUtil
extends java.lang.Object

Converts URIs to IFiles and IProjects.

Author:
Jan Koehnlein - Initial contribution and API

Constructor Summary
ProjectUtil()
           
 
Method Summary
 org.eclipse.core.resources.IFile findFileStorage(org.eclipse.emf.common.util.URI uri, boolean validateEdit)
           
 org.eclipse.core.resources.IProject getProject(org.eclipse.emf.common.util.URI uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectUtil

public ProjectUtil()
Method Detail

getProject

public org.eclipse.core.resources.IProject getProject(org.eclipse.emf.common.util.URI uri)
Returns:
null if there is no such project or the file is not accessible

findFileStorage

public org.eclipse.core.resources.IFile findFileStorage(org.eclipse.emf.common.util.URI uri,
                                                        boolean validateEdit)
Returns:
null if there is no such file or the file is not editable