org.eclipse.xtext.ui.editor
Class GlobalURIEditorOpener

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.GlobalURIEditorOpener
All Implemented Interfaces:
IURIEditorOpener

public class GlobalURIEditorOpener
extends java.lang.Object
implements IURIEditorOpener

Author:
Jan Koehnlein - Initial contribution and API

Constructor Summary
GlobalURIEditorOpener()
           
 
Method Summary
protected  org.eclipse.ui.IWorkbench getWorkbench()
           
 org.eclipse.ui.IEditorPart open(org.eclipse.emf.common.util.URI uri, boolean select)
           
 org.eclipse.ui.IEditorPart open(org.eclipse.emf.common.util.URI referenceOwnerURI, org.eclipse.emf.ecore.EReference reference, int indexInList, boolean select)
           
protected  org.eclipse.ui.IEditorPart openDefaultEditor(org.eclipse.core.resources.IFile file)
           
protected  org.eclipse.ui.IEditorPart openDefaultEditor(org.eclipse.core.resources.IStorage storage, org.eclipse.emf.common.util.URI uri)
           
protected  org.eclipse.ui.IEditorPart openDefaultEditor(org.eclipse.emf.common.util.URI uri, org.eclipse.emf.ecore.EReference crossReference, int indexInList, boolean select)
           
protected  void selectAndReveal(org.eclipse.ui.IEditorPart openEditor, org.eclipse.emf.common.util.URI uri, org.eclipse.emf.ecore.EReference crossReference, int indexInList, boolean select)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalURIEditorOpener

public GlobalURIEditorOpener()
Method Detail

open

public org.eclipse.ui.IEditorPart open(org.eclipse.emf.common.util.URI uri,
                                       boolean select)
Specified by:
open in interface IURIEditorOpener

open

public org.eclipse.ui.IEditorPart open(org.eclipse.emf.common.util.URI referenceOwnerURI,
                                       org.eclipse.emf.ecore.EReference reference,
                                       int indexInList,
                                       boolean select)
Specified by:
open in interface IURIEditorOpener

openDefaultEditor

protected org.eclipse.ui.IEditorPart openDefaultEditor(org.eclipse.emf.common.util.URI uri,
                                                       org.eclipse.emf.ecore.EReference crossReference,
                                                       int indexInList,
                                                       boolean select)

selectAndReveal

protected void selectAndReveal(org.eclipse.ui.IEditorPart openEditor,
                               org.eclipse.emf.common.util.URI uri,
                               org.eclipse.emf.ecore.EReference crossReference,
                               int indexInList,
                               boolean select)

openDefaultEditor

protected org.eclipse.ui.IEditorPart openDefaultEditor(org.eclipse.core.resources.IFile file)
                                                throws org.eclipse.ui.PartInitException
Throws:
org.eclipse.ui.PartInitException

openDefaultEditor

protected org.eclipse.ui.IEditorPart openDefaultEditor(org.eclipse.core.resources.IStorage storage,
                                                       org.eclipse.emf.common.util.URI uri)
                                                throws org.eclipse.ui.PartInitException
Throws:
org.eclipse.ui.PartInitException

getWorkbench

protected org.eclipse.ui.IWorkbench getWorkbench()