org.eclipse.xtext.xbase.ui.launching
Class JavaElementDelegate

java.lang.Object
  extended by 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

Constructor Summary
JavaElementDelegate()
           
 
Method Summary
protected  boolean containsElementsSearchedFor(org.eclipse.core.resources.IFile file)
           
protected  JvmIdentifiableElement findAssociatedJvmElement(org.eclipse.emf.ecore.EObject element)
           
protected  org.eclipse.emf.ecore.EObject findCommonContainer(org.eclipse.emf.ecore.EObject prevObj, org.eclipse.emf.ecore.EObject nextObj)
           
protected  org.eclipse.jdt.core.IJavaElement findJavaElement(XtextResource resource, int offset)
           
 java.lang.Object getAdapter(java.lang.Class adapter)
           
protected  org.eclipse.jdt.core.IJavaElement getJavaElementForEditor(org.eclipse.ui.IEditorPart editor)
           
protected  org.eclipse.jdt.core.IJavaElement getJavaElementForResource(org.eclipse.core.resources.IResource resource)
           
protected  org.eclipse.jdt.core.IJavaElement getJavaElementForXtextEditor(org.eclipse.ui.IEditorPart editor)
           
 void initializeWith(org.eclipse.ui.IEditorPart editorInput)
           
 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
 

Constructor Detail

JavaElementDelegate

public JavaElementDelegate()
Method Detail

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)