org.eclipse.xtext.xtend2.ui.launching
Class JavaElementDelegate
java.lang.Object
org.eclipse.xtext.xtend2.ui.launching.JavaElementDelegate
- All Implemented Interfaces:
- org.eclipse.core.runtime.IAdaptable
public class JavaElementDelegate
- extends java.lang.Object
- implements org.eclipse.core.runtime.IAdaptable
- Author:
- Sebastian Zarnekow - Initial contribution and API
Method Summary |
java.lang.Object |
getAdapter(java.lang.Class adapter)
Returns an object which is an instance of the given class
associated with this object. |
protected org.eclipse.jdt.core.IJavaElement |
getJavaElementForResource(org.eclipse.core.resources.IResource resource)
|
void |
initializeWith(org.eclipse.ui.IFileEditorInput editorInput)
|
void |
initializeWith(org.eclipse.core.resources.IResource resource)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaElementDelegate
public JavaElementDelegate()
initializeWith
public void initializeWith(org.eclipse.ui.IFileEditorInput editorInput)
initializeWith
public void initializeWith(org.eclipse.core.resources.IResource resource)
getAdapter
public java.lang.Object getAdapter(java.lang.Class adapter)
- Description copied from interface:
org.eclipse.core.runtime.IAdaptable
- Returns an object which is an instance of the given class
associated with this object. Returns
null
if
no such object can be found.
- Specified by:
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
- Parameters:
adapter
- the adapter class to look up
- Returns:
- a object castable to the given class,
or
null
if this object does not
have an adapter for the given class
getJavaElementForResource
protected org.eclipse.jdt.core.IJavaElement getJavaElementForResource(org.eclipse.core.resources.IResource resource)