public final class Parts
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.base.Supplier<org.eclipse.ui.IWorkbenchPartReference> |
activePartReferenceSupplier() |
static com.google.common.base.Supplier<org.eclipse.ui.IWorkbenchPartReference> |
activePartReferenceSupplier(org.eclipse.ui.IWorkbench workbench) |
static com.google.common.base.Supplier<org.eclipse.ui.IWorkbenchPartReference> |
activePartReferenceSupplier(org.eclipse.ui.IWorkbenchPage page) |
static com.google.common.base.Supplier<org.eclipse.ui.IWorkbenchPartReference> |
activePartReferenceSupplier(org.eclipse.ui.IWorkbenchWindow window) |
static com.google.common.base.Supplier<org.eclipse.ui.IWorkbenchPart> |
activePartSupplier() |
static com.google.common.base.Supplier<org.eclipse.ui.IWorkbenchPart> |
activePartSupplier(org.eclipse.ui.IWorkbench workbench) |
static com.google.common.base.Supplier<org.eclipse.ui.IWorkbenchPart> |
activePartSupplier(org.eclipse.ui.IWorkbenchPage page) |
static com.google.common.base.Supplier<org.eclipse.ui.IWorkbenchPart> |
activePartSupplier(org.eclipse.ui.IWorkbenchWindow window) |
static org.eclipse.ui.IWorkbenchPart |
forDocument(org.eclipse.jface.text.IDocument document) |
static org.eclipse.ui.IWorkbenchPart |
forDocument(org.eclipse.jface.text.IDocument document,
boolean restore) |
static org.eclipse.ui.IWorkbenchPart |
forTextViewer(org.eclipse.jface.text.ITextViewer viewer) |
static org.eclipse.ui.IWorkbenchPart |
forTextViewer(org.eclipse.jface.text.ITextViewer viewer,
boolean restore) |
static org.eclipse.ui.IWorkbenchPart |
getActivePart()
Gets the currently active part.
|
static org.eclipse.ui.IWorkbenchPart |
getActivePart(org.eclipse.ui.IWorkbench workbench)
Gets the currently active part.
|
static org.eclipse.ui.IWorkbenchPart |
getActivePart(org.eclipse.ui.IWorkbenchPage page)
Gets the currently active part.
|
static org.eclipse.ui.IWorkbenchPart |
getActivePart(org.eclipse.ui.IWorkbenchWindow window)
Gets the currently active part.
|
static org.eclipse.ui.IWorkbenchPartReference |
getActivePartReference()
Gets the currently active part reference.
|
static org.eclipse.ui.IWorkbenchPartReference |
getActivePartReference(org.eclipse.ui.IWorkbench workbench)
Gets the currently active part reference.
|
static org.eclipse.ui.IWorkbenchPartReference |
getActivePartReference(org.eclipse.ui.IWorkbenchPage page)
Gets the currently active part reference.
|
static org.eclipse.ui.IWorkbenchPartReference |
getActivePartReference(org.eclipse.ui.IWorkbenchWindow window)
Gets the currently active part reference.
|
static org.eclipse.jface.text.IDocument |
getDocument(org.eclipse.jface.text.ITextViewer viewer) |
static org.eclipse.jface.text.IDocument |
getDocument(org.eclipse.ui.IWorkbenchPart part)
Gets the input document from given part.
|
static org.eclipse.jface.text.source.ISourceViewer |
getSourceViewer(org.eclipse.ui.IWorkbenchPart part)
Gets the source viewer from given part.
|
static org.eclipse.swt.custom.StyledText |
getStyledText(org.eclipse.jface.text.ITextViewer viewer) |
static org.eclipse.swt.custom.StyledText |
getStyledText(org.eclipse.ui.IWorkbenchPart part)
Gets the text widget from given part.
|
static org.eclipse.jface.text.ITextViewer |
getTextViewer(org.eclipse.ui.IWorkbenchPart part)
Gets the text viewer from given part.
|
static org.eclipse.ui.IWorkbenchPart |
waitForActivePart()
Waits for the currently active part.
|
static org.eclipse.ui.IWorkbenchPart |
waitForActivePart(org.eclipse.ui.IWorkbench workbench)
Waits for the currently active part.
|
static org.eclipse.ui.IWorkbenchPart |
waitForActivePart(org.eclipse.ui.IWorkbenchPage page)
Waits for the currently active part.
|
static org.eclipse.ui.IWorkbenchPart |
waitForActivePart(org.eclipse.ui.IWorkbenchWindow window)
Waits for the currently active part.
|
static org.eclipse.ui.IWorkbenchPartReference |
waitForActivePartReference()
Waits for the currently active part reference.
|
static org.eclipse.ui.IWorkbenchPartReference |
waitForActivePartReference(org.eclipse.ui.IWorkbench workbench)
Waits for the currently active part reference.
|
static org.eclipse.ui.IWorkbenchPartReference |
waitForActivePartReference(org.eclipse.ui.IWorkbenchPage page)
Waits for the currently active part reference.
|
static org.eclipse.ui.IWorkbenchPartReference |
waitForActivePartReference(org.eclipse.ui.IWorkbenchWindow window)
Waits for the currently active part reference.
|
public static org.eclipse.ui.IWorkbenchPart forTextViewer(org.eclipse.jface.text.ITextViewer viewer)
public static org.eclipse.ui.IWorkbenchPart forTextViewer(org.eclipse.jface.text.ITextViewer viewer,
boolean restore)
public static org.eclipse.ui.IWorkbenchPart forDocument(org.eclipse.jface.text.IDocument document)
public static org.eclipse.ui.IWorkbenchPart forDocument(org.eclipse.jface.text.IDocument document,
boolean restore)
public static com.google.common.base.Supplier<org.eclipse.ui.IWorkbenchPart> activePartSupplier()
public static com.google.common.base.Supplier<org.eclipse.ui.IWorkbenchPart> activePartSupplier(@Nullable
org.eclipse.ui.IWorkbenchPage page)
public static com.google.common.base.Supplier<org.eclipse.ui.IWorkbenchPart> activePartSupplier(@Nullable
org.eclipse.ui.IWorkbenchWindow window)
public static com.google.common.base.Supplier<org.eclipse.ui.IWorkbenchPart> activePartSupplier(@Nullable
org.eclipse.ui.IWorkbench workbench)
public static com.google.common.base.Supplier<org.eclipse.ui.IWorkbenchPartReference> activePartReferenceSupplier()
public static com.google.common.base.Supplier<org.eclipse.ui.IWorkbenchPartReference> activePartReferenceSupplier(@Nullable
org.eclipse.ui.IWorkbenchPage page)
public static com.google.common.base.Supplier<org.eclipse.ui.IWorkbenchPartReference> activePartReferenceSupplier(@Nullable
org.eclipse.ui.IWorkbenchWindow window)
public static com.google.common.base.Supplier<org.eclipse.ui.IWorkbenchPartReference> activePartReferenceSupplier(@Nullable
org.eclipse.ui.IWorkbench workbench)
public static org.eclipse.jface.text.ITextViewer getTextViewer(@Nullable
org.eclipse.ui.IWorkbenchPart part)
part - the part, may be nullnull if the part
is null or there is no text viewerpublic static org.eclipse.jface.text.source.ISourceViewer getSourceViewer(@Nullable
org.eclipse.ui.IWorkbenchPart part)
part - the part, may be nullnull if the part
is null or there is no source viewerpublic static org.eclipse.swt.custom.StyledText getStyledText(@Nullable
org.eclipse.ui.IWorkbenchPart part)
part - the part, may be nullnull if the part
is null or there is no text widgetpublic static org.eclipse.swt.custom.StyledText getStyledText(@Nullable
org.eclipse.jface.text.ITextViewer viewer)
public static org.eclipse.jface.text.IDocument getDocument(@Nullable
org.eclipse.ui.IWorkbenchPart part)
part - the part, may be nullnull if the part
is null or there is no documentpublic static org.eclipse.jface.text.IDocument getDocument(@Nullable
org.eclipse.jface.text.ITextViewer viewer)
public static org.eclipse.ui.IWorkbenchPart getActivePart()
null if there is no active pagepublic static org.eclipse.ui.IWorkbenchPart getActivePart(@Nullable
org.eclipse.ui.IWorkbenchPage page)
page - the page, may be nullnull if the page
is null or there is no active partpublic static org.eclipse.ui.IWorkbenchPart getActivePart(@Nullable
org.eclipse.ui.IWorkbenchWindow window)
window - the window, may be nullnull if the window
is null or there is no active partpublic static org.eclipse.ui.IWorkbenchPart getActivePart(@Nullable
org.eclipse.ui.IWorkbench workbench)
workbench - the workbench, may be nullnull if the workbench
is null or there is no active partpublic static org.eclipse.ui.IWorkbenchPartReference getActivePartReference()
null if there is no active pagepublic static org.eclipse.ui.IWorkbenchPartReference getActivePartReference(@Nullable
org.eclipse.ui.IWorkbenchPage page)
page - the page, may be nullnull if the page
is null or there is no active part referencepublic static org.eclipse.ui.IWorkbenchPartReference getActivePartReference(@Nullable
org.eclipse.ui.IWorkbenchWindow window)
window - the window, may be nullnull if the window
is null or there is no active part referencepublic static org.eclipse.ui.IWorkbenchPartReference getActivePartReference(@Nullable
org.eclipse.ui.IWorkbench workbench)
workbench - the workbench, may be nullnull if the workbench
is null or there is no active part referencepublic static org.eclipse.ui.IWorkbenchPart waitForActivePart()
getActivePart()public static org.eclipse.ui.IWorkbenchPart waitForActivePart(org.eclipse.ui.IWorkbenchPage page)
page - the page, can not be nullgetActivePart(IWorkbenchPage)public static org.eclipse.ui.IWorkbenchPart waitForActivePart(org.eclipse.ui.IWorkbenchWindow window)
window - the window, can not be nullgetActivePart(IWorkbenchWindow)public static org.eclipse.ui.IWorkbenchPart waitForActivePart(org.eclipse.ui.IWorkbench workbench)
workbench - the workbench, can not be nullgetActivePart(IWorkbench)public static org.eclipse.ui.IWorkbenchPartReference waitForActivePartReference()
getActivePart()public static org.eclipse.ui.IWorkbenchPartReference waitForActivePartReference(org.eclipse.ui.IWorkbenchPage page)
page - the page, can not be nullgetActivePartReference(IWorkbenchPage)public static org.eclipse.ui.IWorkbenchPartReference waitForActivePartReference(org.eclipse.ui.IWorkbenchWindow window)
window - the window, can not be nullgetActivePartReference(IWorkbenchWindow)public static org.eclipse.ui.IWorkbenchPartReference waitForActivePartReference(org.eclipse.ui.IWorkbench workbench)
workbench - the workbench, can not be nullgetActivePartReference(IWorkbench)