net.officefloor.eclipse.util
Class JavaUtil

java.lang.Object
  extended by net.officefloor.eclipse.util.JavaUtil

public class JavaUtil
extends Object

Utility methods for working with Java.

Author:
Daniel Sagenschneider

Method Summary
static org.eclipse.jdt.core.IType[] getSubTypes(AbstractOfficeFloorEditPart<?,?,?> editPart, String typeName)
          Convenience method.
static org.eclipse.jdt.core.IType[] getSubTypes(org.eclipse.core.resources.IProject project, String typeName)
          Obtains the listing of IType that represent the classes of the input type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSubTypes

public static org.eclipse.jdt.core.IType[] getSubTypes(AbstractOfficeFloorEditPart<?,?,?> editPart,
                                                       String typeName)
                                                throws org.eclipse.jdt.core.JavaModelException
Convenience method.

Parameters:
editPart - AbstractOfficeFloorEditPart.
typeName - Type.
Returns:
Listing of IType that represent the classes of the input type.
Throws:
org.eclipse.jdt.core.JavaModelException - If fails to obtain sub types.

getSubTypes

public static org.eclipse.jdt.core.IType[] getSubTypes(org.eclipse.core.resources.IProject project,
                                                       String typeName)
                                                throws org.eclipse.jdt.core.JavaModelException
Obtains the listing of IType that represent the classes of the input type.

Parameters:
project - IProject.
type - Type.
Returns:
Listing of IType that represent the classes of the input type.
Throws:
org.eclipse.jdt.core.JavaModelException - If fails to obtain sub types.


Copyright © 2005-2013. All Rights Reserved.