public final class Views
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.base.Supplier<org.eclipse.ui.IViewReference> |
activeViewReferenceSupplier() |
static com.google.common.base.Supplier<org.eclipse.ui.IViewReference> |
activeViewReferenceSupplier(org.eclipse.ui.IWorkbench workbench) |
static com.google.common.base.Supplier<org.eclipse.ui.IViewReference> |
activeViewReferenceSupplier(org.eclipse.ui.IWorkbenchPage page) |
static com.google.common.base.Supplier<org.eclipse.ui.IViewReference> |
activeViewReferenceSupplier(org.eclipse.ui.IWorkbenchWindow window) |
static com.google.common.base.Supplier<org.eclipse.ui.IViewPart> |
activeViewSupplier() |
static com.google.common.base.Supplier<org.eclipse.ui.IViewPart> |
activeViewSupplier(org.eclipse.ui.IWorkbench workbench) |
static com.google.common.base.Supplier<org.eclipse.ui.IViewPart> |
activeViewSupplier(org.eclipse.ui.IWorkbenchPage page) |
static com.google.common.base.Supplier<org.eclipse.ui.IViewPart> |
activeViewSupplier(org.eclipse.ui.IWorkbenchWindow window) |
static org.eclipse.ui.IViewPart |
forDocument(org.eclipse.jface.text.IDocument document) |
static org.eclipse.ui.IViewPart |
forDocument(org.eclipse.jface.text.IDocument document,
boolean restore) |
static org.eclipse.ui.IViewPart |
forTextViewer(org.eclipse.jface.text.ITextViewer viewer) |
static org.eclipse.ui.IViewPart |
forTextViewer(org.eclipse.jface.text.ITextViewer viewer,
boolean restore) |
static org.eclipse.ui.IViewPart |
getActiveView()
Gets the active view.
|
static org.eclipse.ui.IViewPart |
getActiveView(org.eclipse.ui.IWorkbench workbench)
Gets the currently active view.
|
static org.eclipse.ui.IViewPart |
getActiveView(org.eclipse.ui.IWorkbenchPage page)
Gets the currently active view.
|
static org.eclipse.ui.IViewPart |
getActiveView(org.eclipse.ui.IWorkbenchWindow window)
Gets the currently active view.
|
static org.eclipse.ui.IViewReference |
getActiveViewReference()
Gets the active view reference.
|
static org.eclipse.ui.IViewReference |
getActiveViewReference(org.eclipse.ui.IWorkbench workbench)
Gets the currently active view reference.
|
static org.eclipse.ui.IViewReference |
getActiveViewReference(org.eclipse.ui.IWorkbenchPage page)
Gets the currently active view reference.
|
static org.eclipse.ui.IViewReference |
getActiveViewReference(org.eclipse.ui.IWorkbenchWindow window)
Gets the currently active view reference.
|
static org.eclipse.jface.text.IDocument |
getDocument(org.eclipse.ui.IViewPart view)
Gets the input document from given view.
|
static org.eclipse.jface.text.source.ISourceViewer |
getSourceViewer(org.eclipse.ui.IViewPart view)
Gets the source viewer from given view.
|
static org.eclipse.swt.custom.StyledText |
getStyledText(org.eclipse.ui.IViewPart view)
Gets the text widget from given view.
|
static org.eclipse.jface.text.ITextViewer |
getTextViewer(org.eclipse.ui.IViewPart view)
Gets the text viewer from given view.
|
static org.eclipse.ui.IViewPart |
waitForActiveView()
Waits for the currently active view.
|
static org.eclipse.ui.IViewPart |
waitForActiveView(org.eclipse.ui.IWorkbench workbench)
Waits for the currently active view.
|
static org.eclipse.ui.IViewPart |
waitForActiveView(org.eclipse.ui.IWorkbenchPage page)
Waits for the currently active view.
|
static org.eclipse.ui.IViewPart |
waitForActiveView(org.eclipse.ui.IWorkbenchWindow window)
Waits for the currently active view.
|
static org.eclipse.ui.IViewReference |
waitForActiveViewReference()
Waits for the currently active view reference.
|
static org.eclipse.ui.IViewReference |
waitForActiveViewReference(org.eclipse.ui.IWorkbench workbench)
Waits for the currently active view reference.
|
static org.eclipse.ui.IViewReference |
waitForActiveViewReference(org.eclipse.ui.IWorkbenchPage page)
Waits for the currently active view reference.
|
static org.eclipse.ui.IViewReference |
waitForActiveViewReference(org.eclipse.ui.IWorkbenchWindow window)
Waits for the currently active view reference.
|
public static org.eclipse.ui.IViewPart forTextViewer(org.eclipse.jface.text.ITextViewer viewer)
public static org.eclipse.ui.IViewPart forTextViewer(org.eclipse.jface.text.ITextViewer viewer,
boolean restore)
public static org.eclipse.ui.IViewPart forDocument(org.eclipse.jface.text.IDocument document)
public static org.eclipse.ui.IViewPart forDocument(org.eclipse.jface.text.IDocument document,
boolean restore)
public static com.google.common.base.Supplier<org.eclipse.ui.IViewPart> activeViewSupplier()
public static com.google.common.base.Supplier<org.eclipse.ui.IViewPart> activeViewSupplier(@Nullable
org.eclipse.ui.IWorkbenchPage page)
public static com.google.common.base.Supplier<org.eclipse.ui.IViewPart> activeViewSupplier(@Nullable
org.eclipse.ui.IWorkbenchWindow window)
public static com.google.common.base.Supplier<org.eclipse.ui.IViewPart> activeViewSupplier(@Nullable
org.eclipse.ui.IWorkbench workbench)
public static com.google.common.base.Supplier<org.eclipse.ui.IViewReference> activeViewReferenceSupplier()
public static com.google.common.base.Supplier<org.eclipse.ui.IViewReference> activeViewReferenceSupplier(@Nullable
org.eclipse.ui.IWorkbenchPage page)
public static com.google.common.base.Supplier<org.eclipse.ui.IViewReference> activeViewReferenceSupplier(@Nullable
org.eclipse.ui.IWorkbenchWindow window)
public static com.google.common.base.Supplier<org.eclipse.ui.IViewReference> activeViewReferenceSupplier(@Nullable
org.eclipse.ui.IWorkbench workbench)
public static org.eclipse.ui.IViewPart getActiveView()
null if there is no active viewpublic static org.eclipse.ui.IViewPart getActiveView(@Nullable
org.eclipse.ui.IWorkbenchPage page)
page - the page, may be nullnull if the page
is null or there is no active viewpublic static org.eclipse.ui.IViewPart getActiveView(@Nullable
org.eclipse.ui.IWorkbenchWindow window)
window - the window, may be nullnull if the window
is null or there is no active viewpublic static org.eclipse.ui.IViewPart getActiveView(@Nullable
org.eclipse.ui.IWorkbench workbench)
workbench - the workbench, may be nullnull if the workbench
is null or there is no active viewpublic static org.eclipse.ui.IViewReference getActiveViewReference()
null if there is no active view referencepublic static org.eclipse.ui.IViewReference getActiveViewReference(@Nullable
org.eclipse.ui.IWorkbenchPage page)
page - the page, may be nullnull if the page
is null or there is no active view referencepublic static org.eclipse.ui.IViewReference getActiveViewReference(@Nullable
org.eclipse.ui.IWorkbenchWindow window)
window - the window, may be nullnull if the window
is null or there is no active view referencepublic static org.eclipse.ui.IViewReference getActiveViewReference(@Nullable
org.eclipse.ui.IWorkbench workbench)
workbench - the workbench, may be nullnull if the workbench
is null or there is no active view referencepublic static org.eclipse.jface.text.ITextViewer getTextViewer(@Nullable
org.eclipse.ui.IViewPart view)
view - the view, may be nullnull if the view
is null or there is no text viewerpublic static org.eclipse.jface.text.source.ISourceViewer getSourceViewer(@Nullable
org.eclipse.ui.IViewPart view)
view - the view, may be nullnull if the view
is null or there is no source viewerpublic static org.eclipse.swt.custom.StyledText getStyledText(@Nullable
org.eclipse.ui.IViewPart view)
view - the view, may be nullnull if the view
is null or there is no text widgetpublic static org.eclipse.jface.text.IDocument getDocument(@Nullable
org.eclipse.ui.IViewPart view)
view - the view, may be nullnull if the view
is null or there is no documentpublic static org.eclipse.ui.IViewPart waitForActiveView()
getActiveView()public static org.eclipse.ui.IViewPart waitForActiveView(org.eclipse.ui.IWorkbenchPage page)
page - the page, can not be nullgetActiveView(IWorkbenchPage)public static org.eclipse.ui.IViewPart waitForActiveView(org.eclipse.ui.IWorkbenchWindow window)
window - the window, can not be nullgetActiveView(IWorkbenchWindow)public static org.eclipse.ui.IViewPart waitForActiveView(org.eclipse.ui.IWorkbench workbench)
workbench - the workbench, can not be nullgetActiveView(IWorkbench)public static org.eclipse.ui.IViewReference waitForActiveViewReference()
getActiveView()public static org.eclipse.ui.IViewReference waitForActiveViewReference(org.eclipse.ui.IWorkbenchPage page)
page - the page, can not be nullgetActiveView(IWorkbenchPage)public static org.eclipse.ui.IViewReference waitForActiveViewReference(org.eclipse.ui.IWorkbenchWindow window)
window - the window, can not be nullgetActiveView(IWorkbenchWindow)public static org.eclipse.ui.IViewReference waitForActiveViewReference(org.eclipse.ui.IWorkbench workbench)
workbench - the workbench, can not be nullgetActiveView(IWorkbench)