public class InspectPopupDialog extends DebugPopup
DebugPopup
that can be used to inspect an
IExpression
object.Window.IExceptionHandler
HOVER_SHELLSTYLE, INFOPOPUP_SHELLSTYLE, INFOPOPUPRESIZE_SHELLSTYLE, POPUP_HORIZONTALSPACING, POPUP_IMG_MENU, POPUP_IMG_MENU_DISABLED, POPUP_MARGINHEIGHT, POPUP_MARGINWIDTH, POPUP_VERTICALSPACING
CANCEL, OK, resizeHasOccurred
Constructor and Description |
---|
InspectPopupDialog(Shell shell,
Point anchor,
String commandId,
IExpression expression)
Creates a new inspect popup.
|
Modifier and Type | Method and Description |
---|---|
boolean |
close()
Closes this window, disposes its shell, and removes this window from its
window manager (if it has one).
|
protected Control |
createDialogArea(Composite parent)
Creates and returns the contents of the dialog (the area below the title
area and above the info text area.
|
protected String |
getActionText()
Returns the text to be shown as the action performed when this dialog's
persist command is invoked, or
null . |
protected List<Control> |
getBackgroundColorExclusions()
Return a list of controls which should never have their background color
reset.
|
protected Point |
getInitialSize()
Returns the initial size to use for the shell.
|
protected void |
initSashWeights()
Initializes the sash form weights from the preference store (using default values if
no sash weights were stored previously).
|
protected void |
persist()
Persists the contents of the dialog.
|
protected void |
saveDialogBounds(Shell shell)
Saves the bounds of the shell in the appropriate dialog settings.
|
getCommandId, getDialogSettings, getInfoText, getInitialLocation, open, wasPersisted
adjustBounds, applyBackgroundColor, applyForegroundColor, configureShell, createContents, createInfoTextArea, createTitleControl, createTitleMenuArea, fillDialogMenu, getBackground, getDefaultLocation, getDefaultSize, getFocusControl, getForeground, getForegroundColorExclusions, getPersistBounds, getPersistLocation, getPersistSize, hasInfoArea, hasTitleArea, setInfoText, setTabOrder, setTitleText, showDialogMenu
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
public InspectPopupDialog(Shell shell, Point anchor, String commandId, IExpression expression)
shell
- The parent shellanchor
- point at which to anchor the popup in Display coordinates. Since
3.3 null
indicates a default location should be used.commandId
- The command id to be used for persistence of
the dialog (possibly null
)expression
- The expression being inspectedprotected Control createDialogArea(Composite parent)
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 DebugPopup
parent
- the parent composite to contain the dialog areaprotected void initSashWeights()
protected void saveDialogBounds(Shell shell)
PopupDialog
super.saveDialogBounds
if additional bounds information
should be stored. Clients may also call this method to persist the bounds
at times other than closing the dialog.saveDialogBounds
in class PopupDialog
shell
- The shell whose bounds are to be storedpublic boolean close()
PopupDialog
This method is extended to save the dialog bounds and initialize widget
state so that the widgets can be recreated if the dialog is reopened.
This method may be extended (super.close
must be called).
close
in class DebugPopup
true
if the window is (or was already) closed, and
false
if it is still openprotected String getActionText()
DebugPopup
null
.
Subclasses should override as necessary.
getActionText
in class DebugPopup
protected void persist()
DebugPopup
persist
in class DebugPopup
protected Point getInitialSize()
Window
Shell.computeSize(SWT.DEFAULT, SWT.DEFAULT, true)
.getInitialSize
in class PopupDialog
protected List<Control> getBackgroundColorExclusions()
PopupDialog
super.getBackgroundColorExclusions
to aggregate the list.getBackgroundColorExclusions
in class PopupDialog
Copyright (c) 2000, 2017 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.