org.eclipse.xtext.xbase.ui.launching
Class JavaElementDelegate
java.lang.Object
org.eclipse.xtext.xbase.ui.launching.JavaElementDelegate
- All Implemented Interfaces:
- org.eclipse.core.runtime.IAdaptable
- Direct Known Subclasses:
- JavaElementDelegateJunitLaunch, JavaElementDelegateMainLaunch
public class JavaElementDelegate
- extends java.lang.Object
- implements org.eclipse.core.runtime.IAdaptable
- Author:
- Sebastian Zarnekow - Initial contribution and API, Moritz Eysholdt
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.IEditorPart editorInput)
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)
- Specified by:
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
findJavaElement
protected org.eclipse.jdt.core.IJavaElement findJavaElement(XtextResource resource,
int offset)
findAssociatedJvmElement
protected JvmIdentifiableElement findAssociatedJvmElement(org.eclipse.emf.ecore.EObject element)
findCommonContainer
protected org.eclipse.emf.ecore.EObject findCommonContainer(org.eclipse.emf.ecore.EObject prevObj,
org.eclipse.emf.ecore.EObject nextObj)
getJavaElementForXtextEditor
protected org.eclipse.jdt.core.IJavaElement getJavaElementForXtextEditor(org.eclipse.ui.IEditorPart editor)
getJavaElementForEditor
protected org.eclipse.jdt.core.IJavaElement getJavaElementForEditor(org.eclipse.ui.IEditorPart editor)
getJavaElementForResource
protected org.eclipse.jdt.core.IJavaElement getJavaElementForResource(org.eclipse.core.resources.IResource resource)
containsElementsSearchedFor
protected boolean containsElementsSearchedFor(org.eclipse.core.resources.IFile file)