public final class Editors
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.base.Supplier<org.eclipse.ui.IEditorReference> |
activeEditorReferenceSupplier() |
static com.google.common.base.Supplier<org.eclipse.ui.IEditorReference> |
activeEditorReferenceSupplier(org.eclipse.ui.IWorkbench workbench) |
static com.google.common.base.Supplier<org.eclipse.ui.IEditorReference> |
activeEditorReferenceSupplier(org.eclipse.ui.IWorkbenchPage page) |
static com.google.common.base.Supplier<org.eclipse.ui.IEditorReference> |
activeEditorReferenceSupplier(org.eclipse.ui.IWorkbenchWindow window) |
static com.google.common.base.Supplier<org.eclipse.ui.IEditorPart> |
activeEditorSupplier() |
static com.google.common.base.Supplier<org.eclipse.ui.IEditorPart> |
activeEditorSupplier(org.eclipse.ui.IWorkbench workbench) |
static com.google.common.base.Supplier<org.eclipse.ui.IEditorPart> |
activeEditorSupplier(org.eclipse.ui.IWorkbenchPage page) |
static com.google.common.base.Supplier<org.eclipse.ui.IEditorPart> |
activeEditorSupplier(org.eclipse.ui.IWorkbenchWindow window) |
static org.eclipse.ui.IEditorPart |
forDocument(org.eclipse.jface.text.IDocument document) |
static org.eclipse.ui.IEditorPart |
forDocument(org.eclipse.jface.text.IDocument document,
boolean restore) |
static org.eclipse.ui.IEditorPart |
forTextViewer(org.eclipse.jface.text.ITextViewer viewer) |
static org.eclipse.ui.IEditorPart |
forTextViewer(org.eclipse.jface.text.ITextViewer viewer,
boolean restore) |
static org.eclipse.ui.IEditorPart |
getActiveEditor()
Gets the active editor.
|
static org.eclipse.ui.IEditorPart |
getActiveEditor(org.eclipse.ui.IWorkbench workbench)
Gets the currently active editor.
|
static org.eclipse.ui.IEditorPart |
getActiveEditor(org.eclipse.ui.IWorkbenchPage page)
Gets the currently active editor.
|
static org.eclipse.ui.IEditorPart |
getActiveEditor(org.eclipse.ui.IWorkbenchWindow window)
Gets the currently active editor.
|
static org.eclipse.ui.IEditorReference |
getActiveEditorReference()
Gets the active editor reference.
|
static org.eclipse.ui.IEditorReference |
getActiveEditorReference(org.eclipse.ui.IWorkbench workbench)
Gets the currently active editor reference.
|
static org.eclipse.ui.IEditorReference |
getActiveEditorReference(org.eclipse.ui.IWorkbenchPage page)
Gets the currently active editor reference.
|
static org.eclipse.ui.IEditorReference |
getActiveEditorReference(org.eclipse.ui.IWorkbenchWindow window)
Gets the currently active editor reference.
|
static org.eclipse.jface.text.IDocument |
getDocument(org.eclipse.ui.IEditorPart editor)
Gets the input document from given editor.
|
static org.eclipse.core.resources.IFile |
getFile(org.eclipse.ui.IEditorPart editor) |
static org.eclipse.core.resources.IResource |
getResource(org.eclipse.ui.IEditorPart editor) |
static org.eclipse.jface.text.source.ISourceViewer |
getSourceViewer(org.eclipse.ui.IEditorPart editor)
Gets the source viewer from given editor.
|
static org.eclipse.swt.custom.StyledText |
getStyledText(org.eclipse.ui.IEditorPart editor)
Gets the text widget from given editor.
|
static org.eclipse.jface.text.ITextViewer |
getTextViewer(org.eclipse.ui.IEditorPart editor)
Gets the text viewer from given editor.
|
static org.eclipse.ui.IEditorPart |
waitForActiveEditor()
Waits for the currently active editor.
|
static org.eclipse.ui.IEditorPart |
waitForActiveEditor(org.eclipse.ui.IWorkbench workbench)
Waits for the currently active editor.
|
static org.eclipse.ui.IEditorPart |
waitForActiveEditor(org.eclipse.ui.IWorkbenchPage page)
Waits for the currently active editor.
|
static org.eclipse.ui.IEditorPart |
waitForActiveEditor(org.eclipse.ui.IWorkbenchWindow window)
Waits for the currently active editor.
|
static org.eclipse.ui.IEditorReference |
waitForActiveEditorReference()
Waits for the currently active editor reference.
|
static org.eclipse.ui.IEditorReference |
waitForActiveEditorReference(org.eclipse.ui.IWorkbench workbench)
Waits for the currently active editor reference.
|
static org.eclipse.ui.IEditorReference |
waitForActiveEditorReference(org.eclipse.ui.IWorkbenchPage page)
Waits for the currently active editor reference.
|
static org.eclipse.ui.IEditorReference |
waitForActiveEditorReference(org.eclipse.ui.IWorkbenchWindow window)
Waits for the currently active editor reference.
|
public static org.eclipse.ui.IEditorPart forTextViewer(org.eclipse.jface.text.ITextViewer viewer)
public static org.eclipse.ui.IEditorPart forTextViewer(org.eclipse.jface.text.ITextViewer viewer,
boolean restore)
public static org.eclipse.ui.IEditorPart forDocument(org.eclipse.jface.text.IDocument document)
public static org.eclipse.ui.IEditorPart forDocument(org.eclipse.jface.text.IDocument document,
boolean restore)
public static com.google.common.base.Supplier<org.eclipse.ui.IEditorPart> activeEditorSupplier()
public static com.google.common.base.Supplier<org.eclipse.ui.IEditorPart> activeEditorSupplier(@Nullable
org.eclipse.ui.IWorkbenchPage page)
public static com.google.common.base.Supplier<org.eclipse.ui.IEditorPart> activeEditorSupplier(@Nullable
org.eclipse.ui.IWorkbenchWindow window)
public static com.google.common.base.Supplier<org.eclipse.ui.IEditorPart> activeEditorSupplier(@Nullable
org.eclipse.ui.IWorkbench workbench)
public static com.google.common.base.Supplier<org.eclipse.ui.IEditorReference> activeEditorReferenceSupplier()
public static com.google.common.base.Supplier<org.eclipse.ui.IEditorReference> activeEditorReferenceSupplier(@Nullable
org.eclipse.ui.IWorkbenchPage page)
public static com.google.common.base.Supplier<org.eclipse.ui.IEditorReference> activeEditorReferenceSupplier(@Nullable
org.eclipse.ui.IWorkbenchWindow window)
public static com.google.common.base.Supplier<org.eclipse.ui.IEditorReference> activeEditorReferenceSupplier(@Nullable
org.eclipse.ui.IWorkbench workbench)
public static org.eclipse.ui.IEditorPart getActiveEditor()
null if there is no active editorpublic static org.eclipse.ui.IEditorPart getActiveEditor(@Nullable
org.eclipse.ui.IWorkbenchPage page)
page - the page, may be nullnull if the page
is null or there is no active editorpublic static org.eclipse.ui.IEditorPart getActiveEditor(@Nullable
org.eclipse.ui.IWorkbenchWindow window)
window - the window, may be nullnull if the window
is null or there is no active editorpublic static org.eclipse.ui.IEditorPart getActiveEditor(@Nullable
org.eclipse.ui.IWorkbench workbench)
workbench - the workbench, may be nullnull if the workbench
is null or there is no active editorpublic static org.eclipse.ui.IEditorReference getActiveEditorReference()
null if there is no active editor referencepublic static org.eclipse.ui.IEditorReference getActiveEditorReference(@Nullable
org.eclipse.ui.IWorkbenchPage page)
page - the page, may be nullnull if the page
is null or there is no active editor referencepublic static org.eclipse.ui.IEditorReference getActiveEditorReference(@Nullable
org.eclipse.ui.IWorkbenchWindow window)
window - the window, may be nullnull if the window
is null or there is no active editor referencepublic static org.eclipse.ui.IEditorReference getActiveEditorReference(@Nullable
org.eclipse.ui.IWorkbench workbench)
workbench - the workbench, may be nullnull if the workbench
is null or there is no active editor referencepublic static org.eclipse.core.resources.IResource getResource(@Nullable
org.eclipse.ui.IEditorPart editor)
public static org.eclipse.core.resources.IFile getFile(@Nullable
org.eclipse.ui.IEditorPart editor)
public static org.eclipse.jface.text.ITextViewer getTextViewer(@Nullable
org.eclipse.ui.IEditorPart editor)
editor - the editor, may be nullnull if the editor
is null or there is no text viewerpublic static org.eclipse.jface.text.source.ISourceViewer getSourceViewer(@Nullable
org.eclipse.ui.IEditorPart editor)
editor - the editor, may be nullnull if the editor
is null or there is no source viewerpublic static org.eclipse.swt.custom.StyledText getStyledText(@Nullable
org.eclipse.ui.IEditorPart editor)
editor - the editor, may be nullnull if the editor
is null or there is no text widgetpublic static org.eclipse.jface.text.IDocument getDocument(@Nullable
org.eclipse.ui.IEditorPart editor)
editor - the editor, may be nullnull if the editor
is null or there is no documentpublic static org.eclipse.ui.IEditorPart waitForActiveEditor()
getActiveEditor()public static org.eclipse.ui.IEditorPart waitForActiveEditor(org.eclipse.ui.IWorkbenchPage page)
page - the page, can not be nullgetActiveEditor(IWorkbenchPage)public static org.eclipse.ui.IEditorPart waitForActiveEditor(org.eclipse.ui.IWorkbenchWindow window)
window - the window, can not be nullgetActiveEditor(IWorkbenchWindow)public static org.eclipse.ui.IEditorPart waitForActiveEditor(org.eclipse.ui.IWorkbench workbench)
workbench - the workbench, can not be nullgetActiveEditor(IWorkbench)public static org.eclipse.ui.IEditorReference waitForActiveEditorReference()
getActiveEditor()public static org.eclipse.ui.IEditorReference waitForActiveEditorReference(org.eclipse.ui.IWorkbenchPage page)
page - the page, can not be nullgetActiveEditor(IWorkbenchPage)public static org.eclipse.ui.IEditorReference waitForActiveEditorReference(org.eclipse.ui.IWorkbenchWindow window)
window - the window, can not be nullgetActiveEditor(IWorkbenchWindow)public static org.eclipse.ui.IEditorReference waitForActiveEditorReference(org.eclipse.ui.IWorkbench workbench)
workbench - the workbench, can not be nullgetActiveEditor(IWorkbench)