|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jface.window.Window org.eclipse.jface.dialogs.PopupDialog org.eclipse.xtext.ui.editor.outline.quickoutline.QuickOutlinePopup
public class QuickOutlinePopup
Nested Class Summary | |
---|---|
protected class |
QuickOutlinePopup.NamePatternFilter
|
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window |
---|
org.eclipse.jface.window.Window.IExceptionHandler |
Field Summary |
---|
Fields inherited from class org.eclipse.jface.dialogs.PopupDialog |
---|
HOVER_SHELLSTYLE, INFOPOPUP_SHELLSTYLE, INFOPOPUPRESIZE_SHELLSTYLE, POPUP_HORIZONTALSPACING, POPUP_IMG_MENU, POPUP_IMG_MENU_DISABLED, POPUP_MARGINHEIGHT, POPUP_MARGINWIDTH, POPUP_VERTICALSPACING |
Fields inherited from class org.eclipse.jface.window.Window |
---|
CANCEL, OK |
Constructor Summary | |
---|---|
QuickOutlinePopup()
|
|
QuickOutlinePopup(org.eclipse.swt.widgets.Shell parent)
|
Method Summary | |
---|---|
void |
addDisposeListener(org.eclipse.swt.events.DisposeListener listener)
|
protected org.eclipse.swt.widgets.Control |
createDialogArea(org.eclipse.swt.widgets.Composite parent)
Creates and returns the contents of the dialog (the area below the title area and above the info text area. |
protected org.eclipse.swt.widgets.Text |
createFilterText(org.eclipse.swt.widgets.Composite parent)
|
protected org.eclipse.swt.widgets.Control |
createTitleControl(org.eclipse.swt.widgets.Composite parent)
Creates the control to be used to represent the dialog's title text. |
protected org.eclipse.jface.viewers.TreeViewer |
createTreeViewer(org.eclipse.swt.widgets.Composite parent,
int style)
|
void |
dispose()
|
protected java.lang.Object |
findMatchingElement(java.lang.Object[] elements)
|
protected org.eclipse.swt.graphics.Point |
getDefaultLocation(org.eclipse.swt.graphics.Point initialSize)
Returns the default location to use for the shell. |
protected org.eclipse.jface.dialogs.IDialogSettings |
getDialogSettings()
Gets the dialog settings that should be used for remembering the bounds of the dialog. |
protected org.eclipse.swt.widgets.Control |
getFocusControl()
Returns the control that should get initial focus. |
protected StringMatcher |
getMatcher()
|
protected java.lang.Object |
getSelectedElement()
|
protected boolean |
hasMatcher()
|
void |
removeDisposeListener(org.eclipse.swt.events.DisposeListener listener)
|
protected void |
selectFirstMatch()
|
void |
setEditor(XtextEditor xtextEditor)
|
void |
setInput(IXtextDocument document)
|
protected void |
setMatcherString(java.lang.String pattern,
boolean update)
|
protected void |
stringMatcherUpdated()
|
void |
widgetDisposed(org.eclipse.swt.events.DisposeEvent event)
Sent when the widget is disposed. |
Methods inherited from class org.eclipse.jface.dialogs.PopupDialog |
---|
adjustBounds, applyBackgroundColor, applyForegroundColor, close, configureShell, createContents, createInfoTextArea, createTitleMenuArea, fillDialogMenu, getBackground, getBackgroundColorExclusions, getDefaultSize, getForeground, getForegroundColorExclusions, getInitialLocation, getInitialSize, getPersistBounds, getPersistLocation, getPersistSize, hasInfoArea, hasTitleArea, open, saveDialogBounds, setInfoText, setTabOrder, setTitleText, showDialogMenu |
Methods inherited from class org.eclipse.jface.window.Window |
---|
canHandleShellCloseEvent, constrainShellSize, create, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, initializeBounds, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuickOutlinePopup()
public QuickOutlinePopup(org.eclipse.swt.widgets.Shell parent)
Method Detail |
---|
protected org.eclipse.swt.widgets.Control createTitleControl(org.eclipse.swt.widgets.Composite parent)
org.eclipse.jface.dialogs.PopupDialog
If this method is overridden, the returned control's layout data must be
an instance of GridData
. This method must not modify the
parent's layout.
createTitleControl
in class org.eclipse.jface.dialogs.PopupDialog
parent
- The parent composite.
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
org.eclipse.jface.dialogs.PopupDialog
The PopupDialog
implementation of this framework method
creates and returns a new Composite
with standard margins
and spacing.
The returned control's layout data must be an instance of
GridData
. This method must not modify the parent's
layout.
Subclasses must override this method but may call super
as
in the following example:
Composite composite = (Composite) super.createDialogArea(parent); //add controls to composite as necessary return composite;
createDialogArea
in class org.eclipse.jface.dialogs.PopupDialog
parent
- the parent composite to contain the dialog area
protected org.eclipse.jface.viewers.TreeViewer createTreeViewer(org.eclipse.swt.widgets.Composite parent, int style)
protected org.eclipse.swt.widgets.Text createFilterText(org.eclipse.swt.widgets.Composite parent)
protected org.eclipse.swt.widgets.Control getFocusControl()
org.eclipse.jface.dialogs.PopupDialog
getFocusControl
in class org.eclipse.jface.dialogs.PopupDialog
protected StringMatcher getMatcher()
protected boolean hasMatcher()
protected void setMatcherString(java.lang.String pattern, boolean update)
protected void stringMatcherUpdated()
protected void selectFirstMatch()
protected java.lang.Object findMatchingElement(java.lang.Object[] elements)
protected java.lang.Object getSelectedElement()
public final void dispose()
public void addDisposeListener(org.eclipse.swt.events.DisposeListener listener)
public void removeDisposeListener(org.eclipse.swt.events.DisposeListener listener)
public void widgetDisposed(org.eclipse.swt.events.DisposeEvent event)
org.eclipse.swt.events.DisposeListener
widgetDisposed
in interface org.eclipse.swt.events.DisposeListener
event
- an event containing information about the disposepublic void setInput(IXtextDocument document)
protected org.eclipse.swt.graphics.Point getDefaultLocation(org.eclipse.swt.graphics.Point initialSize)
org.eclipse.jface.dialogs.PopupDialog
Window.getInitialLocation(Point)
.
Subclasses should override this method when an alternate default location
is desired, rather than overriding PopupDialog.getInitialLocation(Point)
.
getDefaultLocation
in class org.eclipse.jface.dialogs.PopupDialog
initialSize
- the initial size of the shell, as returned by
getInitialSize
.
PopupDialog.getPersistLocation()
protected org.eclipse.jface.dialogs.IDialogSettings getDialogSettings()
org.eclipse.jface.dialogs.PopupDialog
getDialogSettings
in class org.eclipse.jface.dialogs.PopupDialog
null
if the dialog's bounds should
never be stored.public void setEditor(XtextEditor xtextEditor)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |