Package org.eclipse.debug.ui
Class InspectPopupDialog
java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.PopupDialog
org.eclipse.debug.ui.DebugPopup
org.eclipse.debug.ui.InspectPopupDialog
- All Implemented Interfaces:
- IShellProvider
A 
DebugPopup that can be used to inspect an
 IExpression object.- Since:
- 3.2
- Restriction:
- This class is not intended to be subclassed by clients.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.eclipse.jface.window.WindowWindow.IExceptionHandler
- 
Field SummaryFields inherited from class org.eclipse.jface.dialogs.PopupDialogHOVER_SHELLSTYLE, INFOPOPUP_SHELLSTYLE, INFOPOPUPRESIZE_SHELLSTYLE, POPUP_HORIZONTALSPACING, POPUP_IMG_MENU, POPUP_IMG_MENU_DISABLED, POPUP_MARGINHEIGHT, POPUP_MARGINWIDTH, POPUP_VERTICALSPACINGFields inherited from class org.eclipse.jface.window.WindowCANCEL, OK, resizeHasOccurred
- 
Constructor SummaryConstructorsConstructorDescriptionInspectPopupDialog(Shell shell, Point anchor, String commandId, IExpression expression) Creates a new inspect popup.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanclose()Closes this window, disposes its shell, and removes this window from its window manager (if it has one).protected ControlcreateDialogArea(Composite parent) Creates and returns the contents of the dialog (the area below the title area and above the info text area.protected StringReturns the text to be shown as the action performed when this dialog's persist command is invoked, ornull.Return a list of controls which should never have their background color reset.protected PointReturns the initial size to use for the shell.The viewer is initialized after the dialog is constructed, so only after open is called.protected voidInitializes the sash form weights from the preference store (using default values if no sash weights were stored previously).protected voidpersist()Persists the contents of the dialog.protected voidsaveDialogBounds(Shell shell) Saves the bounds of the shell in the appropriate dialog settings.Methods inherited from class org.eclipse.debug.ui.DebugPopupgetCommandId, getDialogSettings, getInfoText, getInitialLocation, open, wasPersistedMethods inherited from class org.eclipse.jface.dialogs.PopupDialogadjustBounds, applyBackgroundColor, applyForegroundColor, configureShell, createContents, createInfoTextArea, createTitleControl, createTitleMenuArea, fillDialogMenu, getBackground, getDefaultLocation, getDefaultSize, getFocusControl, getForeground, getForegroundColorExclusions, getPersistLocation, getPersistSize, hasInfoArea, hasTitleArea, setInfoText, setTabOrder, setTitleText, showDialogMenuMethods inherited from class org.eclipse.jface.window.WindowcanHandleShellCloseEvent, 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
- 
Constructor Details- 
InspectPopupDialogCreates a new inspect popup.- Parameters:
- shell- The parent shell
- anchor- point at which to anchor the popup in Display coordinates. Since 3.3- nullindicates a default location should be used.
- commandId- The command id to be used for persistence of the dialog (possibly- null)
- expression- The expression being inspected
 
 
- 
- 
Method Details- 
createDialogAreaDescription copied from class:PopupDialogCreates and returns the contents of the dialog (the area below the title area and above the info text area.The PopupDialogimplementation of this framework method creates and returns a newCompositewith 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 superas in the following example:Composite composite = (Composite) super.createDialogArea(parent); //add controls to composite as necessary return composite; - Specified by:
- createDialogAreain class- DebugPopup
- Parameters:
- parent- the parent composite to contain the dialog area
- Returns:
- the dialog area control
 
- 
getTreeViewerThe viewer is initialized after the dialog is constructed, so only after open is called.- Returns:
- the tree viewer used by the dialog.
- Since:
- 3.17
 
- 
initSashWeightsprotected void initSashWeights()Initializes the sash form weights from the preference store (using default values if no sash weights were stored previously).
- 
saveDialogBoundsDescription copied from class:PopupDialogSaves the bounds of the shell in the appropriate dialog settings. The bounds are recorded relative to the parent shell, if there is one, or display coordinates if there is no parent shell. Subclasses typically need not override this method, but may extend it (callingsuper.saveDialogBoundsif additional bounds information should be stored. Clients may also call this method to persist the bounds at times other than closing the dialog.- Overrides:
- saveDialogBoundsin class- PopupDialog
- Parameters:
- shell- The shell whose bounds are to be stored
 
- 
closepublic boolean close()Description copied from class:PopupDialogCloses this window, disposes its shell, and removes this window from its window manager (if it has one).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.closemust be called).- Overrides:
- closein class- DebugPopup
- Returns:
- trueif the window is (or was already) closed, and- falseif it is still open
 
- 
getActionTextDescription copied from class:DebugPopupReturns the text to be shown as the action performed when this dialog's persist command is invoked, ornull.Subclasses should override as necessary. - Overrides:
- getActionTextin class- DebugPopup
- Returns:
- the text to be shown as the action performed when this dialog's persist command is invoked
 
- 
persistprotected void persist()Description copied from class:DebugPopupPersists the contents of the dialog. Subclasses should override as required, but also call super.persist().- Overrides:
- persistin class- DebugPopup
 
- 
getInitialSizeDescription copied from class:WindowReturns the initial size to use for the shell. The default implementation returns the preferred size of the shell, usingShell.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).- Overrides:
- getInitialSizein class- PopupDialog
- Returns:
- the initial size of the shell
 
- 
getBackgroundColorExclusionsDescription copied from class:PopupDialogReturn a list of controls which should never have their background color reset. Subclasses may extend this method, but should always callsuper.getBackgroundColorExclusionsto aggregate the list.- Overrides:
- getBackgroundColorExclusionsin class- PopupDialog
- Returns:
- the List of controls
 
 
-