Method Summary |
|
public static IJavaElement[] | codeResolve(ITextEditor editor) |
public static IJavaElement[] | codeResolve(ITextEditor editor, boolean primaryOnly) |
public static IJavaElement[] | codeResolve(IJavaElement input, ITextSelection selection) |
public static String | concatenateName(String name1, String name2) Concatenates two names. |
public static IMethod[] | findMethods(IType type, String name) |
public static IType | findType(IJavaProject jproject, String fullyQualifiedName) Finds a type by its qualified type name (dot separated). |
public static IJavaElement | getEditorInputJavaElement(IEditorPart editor, boolean primaryOnly) Returns the given editor's input as Java element. |
public static IJavaElement | getEditorInputJavaElement(IEditorInput editorInput) Returns the Java element wrapped by the given editor input. |
public static IJavaElement | getElementAtOffset(ITextEditor editor) |
public static IJavaElement | getElementAtOffset(IJavaElement input, ITextSelection selection) |
public static String | getFullyQualifiedName(IType type) Returns the fully qualified name of the given type using '.' as separators.
This is a replace for IType.getFullyQualifiedTypeName
which uses '$' as separators. |
public static IJavaElement | getInput(IEditorPart editor) |
public static ICompilationUnit | getInputAsCompilationUnit(ITextEditor editor) |
public static IPackageFragmentRoot | getPackageFragmentRoot(IJavaElement element) Returns the package fragment root of IJavaElement . |
public static String | getResolvedTypeFileName(String refTypeSig, IType declaringType) |
public static String | getResolvedTypeName(String refTypeSig, IType declaringType) Resolves a type name in the context of the declaring type.
Parameters: refTypeSig - the type name in signature notation (for example 'QVector') this can also be an array type, but dimensions will be ignored. Parameters: declaringType - the context for resolving (type where the reference was made in) returns the fully qualified type name or build-in-type name. |
public static boolean | isTypeNameUnresolved(String refTypeSig) Determine if refTypeSig is unresolved. |
public static void | reconcile(ICompilationUnit unit) Force a reconcile of a compilation unit. |
public static String | resolveTypeName(String refTypeSig, IType declaringType) Resolve refTypeSig in context of declaringType. |
public static void | resolveTypeName(String refTypeSig, IType declaringType, StringBuffer sb) Resolve refTypeSig in context of declaringType into sb. |