org.eclipse.xtend.shared.ui.core.internal
Class JDTUtil

java.lang.Object
  extended by org.eclipse.xtend.shared.ui.core.internal.JDTUtil

public class JDTUtil
extends java.lang.Object


Constructor Summary
JDTUtil()
           
 
Method Summary
static org.eclipse.core.resources.IStorage findStorage(org.eclipse.jdt.core.IJavaProject project, ResourceID id, boolean searchJars)
          find the path for the oaw name space and extension
static ResourceID findXtendXpandResourceID(org.eclipse.jdt.core.IJavaProject project, org.eclipse.core.resources.IStorage file)
           
static org.eclipse.jdt.core.IJavaProject getJProject(org.eclipse.core.resources.IStorage s)
           
static java.lang.String getQualifiedName(org.eclipse.core.resources.IStorage source)
           
static org.eclipse.core.resources.IStorage loadFromJar(ResourceID id, org.eclipse.jdt.core.IPackageFragmentRoot root)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDTUtil

public JDTUtil()
Method Detail

findStorage

public static org.eclipse.core.resources.IStorage findStorage(org.eclipse.jdt.core.IJavaProject project,
                                                              ResourceID id,
                                                              boolean searchJars)
find the path for the oaw name space and extension

Parameters:
project - - the javaproject
oawns - - oaw name space (i.e. 'my::xtend::File')
ext - - file extension (i.e. 'ext')
Returns:

loadFromJar

public static org.eclipse.core.resources.IStorage loadFromJar(ResourceID id,
                                                              org.eclipse.jdt.core.IPackageFragmentRoot root)
                                                       throws org.eclipse.jdt.core.JavaModelException
Throws:
org.eclipse.jdt.core.JavaModelException

findXtendXpandResourceID

public static ResourceID findXtendXpandResourceID(org.eclipse.jdt.core.IJavaProject project,
                                                  org.eclipse.core.resources.IStorage file)

getJProject

public static org.eclipse.jdt.core.IJavaProject getJProject(org.eclipse.core.resources.IStorage s)

getQualifiedName

public static java.lang.String getQualifiedName(org.eclipse.core.resources.IStorage source)