Example usage for Java org.eclipse.jdt.core IJavaModel fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | exists() Returns whether this Java element exists in the model. |
IJavaProject | getJavaProject(String name) Returns the Java project with the given name. |
IJavaProject[] | getJavaProjects() Returns the Java projects in this Java model, or an empty array if there are none. |
Object[] | getNonJavaResources() Returns an array of non-Java resources (that is, non-Java projects) in the workspace. |
IResource | getResource() Returns the innermost resource enclosing this element. |
IWorkspace | getWorkspace() Returns the workspace associated with this Java model. |
void | refreshExternalArchives(IJavaElement[] elementsScope, IProgressMonitor monitor) Triggers an update of the JavaModel with respect to the referenced external archives. |
void | rename(IJavaElement[] elements, IJavaElement[] destinations, String[] names, boolean replace, IProgressMonitor monitor) Renames the given elements as specified. |