RSE
Release 1.0

org.eclipse.rse.ui.dialogs
Class SystemWorkWithHistoryDialog

java.lang.Object
  extended byorg.eclipse.jface.window.Window
      extended byorg.eclipse.jface.dialogs.Dialog
          extended byorg.eclipse.rse.ui.dialogs.SystemPromptDialog
              extended byorg.eclipse.rse.ui.dialogs.SystemWorkWithHistoryDialog
All Implemented Interfaces:
ArmListener, EventListener, IDialogConstants, IDialogPage, IRunnableContext, IShellProvider, ISystemIconConstants, ISystemMessageLine, ISystemPromptDialog, Listener, Runnable, SWTEventListener

public class SystemWorkWithHistoryDialog
extends SystemPromptDialog
implements ISystemIconConstants, Listener, ArmListener

A dialog that allows the user to manipulate the history associated with a widget.

The history strings are shown in a simple list, and the user can delete items from the list or re-order items in the list.


Nested Class Summary
 
Nested classes inherited from class org.eclipse.jface.window.Window
Window.IExceptionHandler
 
Field Summary
protected  MenuItem clearMI
           
protected  MenuItem mdnMI
           
protected  MenuItem mupMI
           
protected  Menu popupMenu
           
protected  MenuItem rmvMI
           
 
Fields inherited from class org.eclipse.rse.ui.dialogs.SystemPromptDialog
activeRunningOperations, ADD_BUTTON_NO, ADD_BUTTON_YES, ADD_ID, addButton, arrowCursor, BROWSE_BUTTON_NO, BROWSE_BUTTON_YES, BROWSE_ID, browseButton, buttonsComposite, CANCEL_ALL_ID, cancelAllButton, cancelAllPressed, cancelButton, cancelListener, DETAILS_BUTTON_NO, DETAILS_BUTTON_YES, DETAILS_ID, detailsButton, detailsButtonHideMode, detailsHideLabel, detailsShowLabel, dialogAreaComposite, dialogMnemonics, fMessageLine, helpId, horizontalSpacing, initialAddButtonEnabledState, initialDetailsButtonEnabledState, initialOKButtonEnabledState, inputObject, labelAdd, labelBrowse, labelCancel, labelCancelAll, labelDetailsHide, labelDetailsShow, labelOk, labelTest, marginHeight, marginWidth, minHeight, minWidth, needsProgressMonitor, noShowAgainButton, noShowAgainOption, okButton, okPressed, operationCancelableState, outputObject, outputObjectValidator, overallShell, pack, parentComposite, pendingErrorMessage, pendingMessage, prefId, prefStore, prefValAsSelected, progressMonitorPart, showAddButton, showBrowseButton, showCancelAllButton, showDetailsButton, showOkButton, showTestButton, TEST_BUTTON_NO, TEST_BUTTON_YES, TEST_ID, testButton, tipAdd, tipBrowse, tipCancel, tipCancelAll, tipDetailsHide, tipDetailsShow, tipOk, tipTest, title, titleImage, verticalSpacing, waitCursor, windowClosingDialog
 
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
 
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK
 
Fields inherited from interface org.eclipse.rse.ui.ISystemIconConstants
ICON_ACTIONS_DIR, ICON_BANNER_SUFFIX, ICON_EXT, ICON_IDE_COLLAPSEALL_ID, ICON_IDE_FILTER_ID, ICON_IDE_LINKTOEDITOR_ID, ICON_IDE_REFRESH_ID, ICON_MODEL_DIR, ICON_NEWACTIONS_DIR, ICON_OBJS_DIR, ICON_SEARCH_CLEAR_HISTORY, ICON_SEARCH_CLEAR_HISTORY_ID, ICON_SEARCH_CLEAR_HISTORY_ROOT, ICON_SEARCH_REMOVE_ALL_MATCHES, ICON_SEARCH_REMOVE_ALL_MATCHES_ID, ICON_SEARCH_REMOVE_ALL_MATCHES_ROOT, ICON_SEARCH_REMOVE_SELECTED_MATCHES, ICON_SEARCH_REMOVE_SELECTED_MATCHES_ID, ICON_SEARCH_REMOVE_SELECTED_MATCHES_ROOT, ICON_SUFFIX, ICON_SYSTEM_ARROW_DOWN, ICON_SYSTEM_ARROW_DOWN_ID, ICON_SYSTEM_ARROW_DOWN_ROOT, ICON_SYSTEM_ARROW_UP, ICON_SYSTEM_ARROW_UP_ID, ICON_SYSTEM_ARROW_UP_ROOT, ICON_SYSTEM_BLANK, ICON_SYSTEM_BLANK_ID, ICON_SYSTEM_BLANK_ROOT, ICON_SYSTEM_CANCEL, ICON_SYSTEM_CANCEL_ID, ICON_SYSTEM_CANCEL_ROOT, ICON_SYSTEM_CANCEL_SHELL, ICON_SYSTEM_CANCEL_SHELL_ID, ICON_SYSTEM_CANCEL_SHELL_ROOT, ICON_SYSTEM_CHANGEFILTER, ICON_SYSTEM_CHANGEFILTER_ID, ICON_SYSTEM_CHANGEFILTER_ROOT, ICON_SYSTEM_CLEAR, ICON_SYSTEM_CLEAR_ALL, ICON_SYSTEM_CLEAR_ALL_ID, ICON_SYSTEM_CLEAR_ALL_ROOT, ICON_SYSTEM_CLEAR_ID, ICON_SYSTEM_CLEAR_ROOT, ICON_SYSTEM_CLEAR_SELECTED, ICON_SYSTEM_CLEAR_SELECTED_ID, ICON_SYSTEM_CLEAR_SELECTED_ROOT, ICON_SYSTEM_COMBINE, ICON_SYSTEM_COMBINE_ID, ICON_SYSTEM_COMBINE_ROOT, ICON_SYSTEM_COMPILE, ICON_SYSTEM_COMPILE_ID, ICON_SYSTEM_COMPILE_ROOT, ICON_SYSTEM_CONNECTION, ICON_SYSTEM_CONNECTION_ID, ICON_SYSTEM_CONNECTION_ROOT, ICON_SYSTEM_CONNECTIONLIVE, ICON_SYSTEM_CONNECTIONLIVE_ID, ICON_SYSTEM_CONNECTIONLIVE_ROOT, ICON_SYSTEM_CONNECTOR_SERVICE, ICON_SYSTEM_CONNECTOR_SERVICE_ID, ICON_SYSTEM_CONNECTOR_SERVICE_ROOT, ICON_SYSTEM_CONVERT, ICON_SYSTEM_CONVERT_ID, ICON_SYSTEM_CONVERT_ROOT, ICON_SYSTEM_DELETEREF, ICON_SYSTEM_DELETEREF_ID, ICON_SYSTEM_DELETEREF_ROOT, ICON_SYSTEM_EMPTY, ICON_SYSTEM_EMPTY_ID, ICON_SYSTEM_EMPTY_ROOT, ICON_SYSTEM_ENVVAR, ICON_SYSTEM_ENVVAR_ID, ICON_SYSTEM_ENVVAR_LIBPATH, ICON_SYSTEM_ENVVAR_LIBPATH_ID, ICON_SYSTEM_ENVVAR_LIBPATH_ROOT, ICON_SYSTEM_ENVVAR_PATH, ICON_SYSTEM_ENVVAR_PATH_ID, ICON_SYSTEM_ENVVAR_PATH_ROOT, ICON_SYSTEM_ENVVAR_ROOT, ICON_SYSTEM_ERROR, ICON_SYSTEM_ERROR_ID, ICON_SYSTEM_ERROR_ROOT, ICON_SYSTEM_EXPORT_SHELL_HISTORY, ICON_SYSTEM_EXPORT_SHELL_HISTORY_ID, ICON_SYSTEM_EXPORT_SHELL_HISTORY_ROOT, ICON_SYSTEM_EXPORT_SHELL_OUTPUT, ICON_SYSTEM_EXPORT_SHELL_OUTPUT_ID, ICON_SYSTEM_EXPORT_SHELL_OUTPUT_ROOT, ICON_SYSTEM_EXTRACT, ICON_SYSTEM_EXTRACT_ID, ICON_SYSTEM_EXTRACT_ROOT, ICON_SYSTEM_EXTRACTTO, ICON_SYSTEM_EXTRACTTO_ID, ICON_SYSTEM_EXTRACTTO_ROOT, ICON_SYSTEM_FAILED, ICON_SYSTEM_FAILED_ID, ICON_SYSTEM_FAILED_ROOT, ICON_SYSTEM_FILTER, ICON_SYSTEM_FILTER_ID, ICON_SYSTEM_FILTER_ROOT, ICON_SYSTEM_FILTERPOOL, ICON_SYSTEM_FILTERPOOL_ID, ICON_SYSTEM_FILTERPOOL_ROOT, ICON_SYSTEM_FILTERSTRING, ICON_SYSTEM_FILTERSTRING_ID, ICON_SYSTEM_FILTERSTRING_ROOT, ICON_SYSTEM_FOLDER, ICON_SYSTEM_FOLDER_ID, ICON_SYSTEM_FOLDER_ROOT, ICON_SYSTEM_HELP, ICON_SYSTEM_HELP_ID, ICON_SYSTEM_HELP_ROOT, ICON_SYSTEM_INFO, ICON_SYSTEM_INFO_ID, ICON_SYSTEM_INFO_ROOT, ICON_SYSTEM_INFO_TREE, ICON_SYSTEM_INFO_TREE_ID, ICON_SYSTEM_INFO_TREE_ROOT, ICON_SYSTEM_LAUNCHER_CONFIGURATION, ICON_SYSTEM_LAUNCHER_CONFIGURATION_ID, ICON_SYSTEM_LAUNCHER_CONFIGURATION_ROOT, ICON_SYSTEM_LOCK, ICON_SYSTEM_LOCK_ID, ICON_SYSTEM_LOCK_ROOT, ICON_SYSTEM_MAKEPROFILEACTIVE, ICON_SYSTEM_MAKEPROFILEACTIVE_ID, ICON_SYSTEM_MAKEPROFILEACTIVE_ROOT, ICON_SYSTEM_MAKEPROFILEINACTIVE, ICON_SYSTEM_MAKEPROFILEINACTIVE_ID, ICON_SYSTEM_MAKEPROFILEINACTIVE_ROOT, ICON_SYSTEM_MOVE, ICON_SYSTEM_MOVE_ID, ICON_SYSTEM_MOVE_ROOT, ICON_SYSTEM_MOVEDOWN, ICON_SYSTEM_MOVEDOWN_ID, ICON_SYSTEM_MOVEDOWN_ROOT, ICON_SYSTEM_MOVEUP, ICON_SYSTEM_MOVEUP_ID, ICON_SYSTEM_MOVEUP_ROOT, ICON_SYSTEM_NEW, ICON_SYSTEM_NEW_ID, ICON_SYSTEM_NEW_ROOT, ICON_SYSTEM_NEWCONNECTION, ICON_SYSTEM_NEWCONNECTION_ID, ICON_SYSTEM_NEWCONNECTION_ROOT, ICON_SYSTEM_NEWCONNECTIONWIZARD, ICON_SYSTEM_NEWCONNECTIONWIZARD_ID, ICON_SYSTEM_NEWCONNECTIONWIZARD_ROOT, ICON_SYSTEM_NEWFILE, ICON_SYSTEM_NEWFILE_ID, ICON_SYSTEM_NEWFILE_ROOT, ICON_SYSTEM_NEWFILEWIZARD, ICON_SYSTEM_NEWFILEWIZARD_ID, ICON_SYSTEM_NEWFILEWIZARD_ROOT, ICON_SYSTEM_NEWFILTER, ICON_SYSTEM_NEWFILTER_ID, ICON_SYSTEM_NEWFILTER_ROOT, ICON_SYSTEM_NEWFILTERPOOL, ICON_SYSTEM_NEWFILTERPOOL_ID, ICON_SYSTEM_NEWFILTERPOOL_ROOT, ICON_SYSTEM_NEWFILTERPOOLREF, ICON_SYSTEM_NEWFILTERPOOLREF_ID, ICON_SYSTEM_NEWFILTERPOOLREF_ROOT, ICON_SYSTEM_NEWFILTERPOOLWIZARD, ICON_SYSTEM_NEWFILTERPOOLWIZARD_ID, ICON_SYSTEM_NEWFILTERPOOLWIZARD_ROOT, ICON_SYSTEM_NEWFILTERWIZARD, ICON_SYSTEM_NEWFILTERWIZARD_ID, ICON_SYSTEM_NEWFILTERWIZARD_ROOT, ICON_SYSTEM_NEWFOLDER, ICON_SYSTEM_NEWFOLDER_ID, ICON_SYSTEM_NEWFOLDER_ROOT, ICON_SYSTEM_NEWFOLDERWIZARD, ICON_SYSTEM_NEWFOLDERWIZARD_ID, ICON_SYSTEM_NEWFOLDERWIZARD_ROOT, ICON_SYSTEM_NEWPROFILE, ICON_SYSTEM_NEWPROFILE_ID, ICON_SYSTEM_NEWPROFILE_ROOT, ICON_SYSTEM_NEWPROFILEWIZARD, ICON_SYSTEM_NEWPROFILEWIZARD_ID, ICON_SYSTEM_NEWPROFILEWIZARD_ROOT, ICON_SYSTEM_OK, ICON_SYSTEM_OK_ID, ICON_SYSTEM_OK_ROOT, ICON_SYSTEM_PERSPECTIVE, ICON_SYSTEM_PERSPECTIVE_ID, ICON_SYSTEM_PERSPECTIVE_ROOT, ICON_SYSTEM_PROCESS, ICON_SYSTEM_PROCESS_ID, ICON_SYSTEM_PROCESS_ROOT, ICON_SYSTEM_PROFILE, ICON_SYSTEM_PROFILE_ACTIVE, ICON_SYSTEM_PROFILE_ACTIVE_ID, ICON_SYSTEM_PROFILE_ACTIVE_ROOT, ICON_SYSTEM_PROFILE_ID, ICON_SYSTEM_PROFILE_ROOT, ICON_SYSTEM_PROPERTIES, ICON_SYSTEM_PROPERTIES_ID, ICON_SYSTEM_PROPERTIES_ROOT, ICON_SYSTEM_REFRESH, ICON_SYSTEM_REFRESH_ID, ICON_SYSTEM_REFRESH_ROOT, ICON_SYSTEM_REMOVE_SHELL, ICON_SYSTEM_REMOVE_SHELL_ID, ICON_SYSTEM_REMOVE_SHELL_ROOT, ICON_SYSTEM_RENAME, ICON_SYSTEM_RENAME_ID, ICON_SYSTEM_RENAME_ROOT, ICON_SYSTEM_ROOTDRIVE, ICON_SYSTEM_ROOTDRIVE_ID, ICON_SYSTEM_ROOTDRIVE_ROOT, ICON_SYSTEM_ROOTDRIVEOPEN, ICON_SYSTEM_ROOTDRIVEOPEN_ID, ICON_SYSTEM_ROOTDRIVEOPEN_ROOT, ICON_SYSTEM_RUN, ICON_SYSTEM_RUN_ID, ICON_SYSTEM_RUN_ROOT, ICON_SYSTEM_SEARCH, ICON_SYSTEM_SEARCH_ID, ICON_SYSTEM_SEARCH_RESULT, ICON_SYSTEM_SEARCH_RESULT_ID, ICON_SYSTEM_SEARCH_RESULT_ROOT, ICON_SYSTEM_SEARCH_ROOT, ICON_SYSTEM_SELECTFILTERPOOLS, ICON_SYSTEM_SELECTFILTERPOOLS_ID, ICON_SYSTEM_SELECTFILTERPOOLS_ROOT, ICON_SYSTEM_SELECTPROFILE, ICON_SYSTEM_SELECTPROFILE_ID, ICON_SYSTEM_SELECTPROFILE_ROOT, ICON_SYSTEM_SERVICE, ICON_SYSTEM_SERVICE_ID, ICON_SYSTEM_SERVICE_ROOT, ICON_SYSTEM_SHELL, ICON_SYSTEM_SHELL_ID, ICON_SYSTEM_SHELL_ROOT, ICON_SYSTEM_SHELLLIVE, ICON_SYSTEM_SHELLLIVE_ID, ICON_SYSTEM_SHELLLIVE_ROOT, ICON_SYSTEM_SHOW_MONITOR, ICON_SYSTEM_SHOW_MONITOR_ID, ICON_SYSTEM_SHOW_MONITOR_ROOT, ICON_SYSTEM_SHOW_SHELL, ICON_SYSTEM_SHOW_SHELL_ID, ICON_SYSTEM_SHOW_SHELL_ROOT, ICON_SYSTEM_SHOW_TABLE, ICON_SYSTEM_SHOW_TABLE_ID, ICON_SYSTEM_SHOW_TABLE_ROOT, ICON_SYSTEM_STOP, ICON_SYSTEM_STOP_ID, ICON_SYSTEM_STOP_ROOT, ICON_SYSTEM_TARGET, ICON_SYSTEM_TARGET_ID, ICON_SYSTEM_TARGET_ROOT, ICON_SYSTEM_WARNING, ICON_SYSTEM_WARNING_ID, ICON_SYSTEM_WARNING_ROOT, ICON_SYSTEM_WORKWITHCOMPILECMDS, ICON_SYSTEM_WORKWITHCOMPILECMDS_ID, ICON_SYSTEM_WORKWITHCOMPILECMDS_ROOT, ICON_SYSTEM_WORKWITHFILTERPOOLS, ICON_SYSTEM_WORKWITHFILTERPOOLS_ID, ICON_SYSTEM_WORKWITHFILTERPOOLS_ROOT, ICON_SYSTEM_WORKWITHNAMEDTYPES, ICON_SYSTEM_WORKWITHNAMEDTYPES_ID, ICON_SYSTEM_WORKWITHNAMEDTYPES_ROOT, ICON_SYSTEM_WORKWITHUSERACTIONS, ICON_SYSTEM_WORKWITHUSERACTIONS_ID, ICON_SYSTEM_WORKWITHUSERACTIONS_ROOT, ICON_WIZARD_DIR, PLUGIN_ID, PREFIX
 
Fields inherited from interface org.eclipse.jface.dialogs.IDialogConstants
ABORT_ID, ABORT_LABEL, BACK_ID, BACK_LABEL, BUTTON_BAR_HEIGHT, BUTTON_HEIGHT, BUTTON_MARGIN, BUTTON_WIDTH, CANCEL_ID, CANCEL_LABEL, CLIENT_ID, CLOSE_ID, CLOSE_LABEL, DESELECT_ALL_ID, ENTRY_FIELD_WIDTH, FINISH_ID, FINISH_LABEL, HELP_ID, HELP_LABEL, HIDE_DETAILS_LABEL, HORIZONTAL_MARGIN, HORIZONTAL_SPACING, IGNORE_ID, IGNORE_LABEL, INDENT, INTERNAL_ID, LEFT_MARGIN, MINIMUM_MESSAGE_AREA_WIDTH, NEXT_ID, NEXT_LABEL, NO_ID, NO_LABEL, NO_TO_ALL_ID, NO_TO_ALL_LABEL, OK_ID, OK_LABEL, OPEN_ID, OPEN_LABEL, PROCEED_ID, PROCEED_LABEL, RETRY_ID, RETRY_LABEL, SELECT_ALL_ID, SELECT_TYPES_ID, SHOW_DETAILS_LABEL, SKIP_ID, SKIP_LABEL, SMALL_INDENT, STOP_ID, STOP_LABEL, VERTICAL_MARGIN, VERTICAL_SPACING, YES_ID, YES_LABEL, YES_TO_ALL_ID, YES_TO_ALL_LABEL
 
Constructor Summary
SystemWorkWithHistoryDialog(Shell shell, String[] history)
          Constructor for SystemWorkWithHistoryDialog
 
Method Summary
protected  MenuItem addSeparator(Menu parent)
          Helper method for a separator menu item
protected  Control createInner(Composite parent)
          Called by createContents method.
protected  MenuItem createMenuItem(String label, String description)
          Helper method for creating cascading menu item
protected  Button createPushButton(Composite c, String label, String tooltip)
          Helper method for creating a pushbutton with tooltip text.
 String[] getHistory()
          Return the updated history
protected  Control getInitialFocusControl()
          Return the Control to be given initial focus.
 void handleEvent(Event e)
          Handles events generated by controls on this page.
protected  Group init(Composite parent, int nbrColumns)
          Create and initialize labeled group
protected  boolean processOK()
          To be overridden by children.
 void setDefaultHistory(String[] items)
          Set the items to default the history to.
 void widgetArmed(ArmEvent e)
          Called by system when menu item is "armed" or in select state.
 
Methods inherited from class org.eclipse.rse.ui.dialogs.SystemPromptDialog
aboutToStart, addFillerLine, addGrowableFillerLine, addSeparatorLine, adjustButtonWidth, applyMnemonics, buttonPressed, clearErrorMessage, clearMessage, close, configureShell, createButtonBar, createButtonsForButtonBar, createContents, createControl, createDialogArea, createMessageLine, createNoShowAgainButton, createWizardClosingDialog, dispose, enableAddButton, enableBrowseButton, enableCancelAllButton, enableCancelButton, enableDetailsButton, enableOkButton, enableTestButton, getAddButton, getBrowseButton, getCancelAllButton, getCancelOrCloseButton, getControl, getDescription, getDetailsButton, getDialogMnemonics, getErrorMessage, getHelpContextId, getImage, getInputObject, getMessage, getMessageLine, getOkButton, getOutputObject, getOutputObjectValidator, getProgressMonitor, getSystemErrorMessage, getTestButton, getTitle, hardClose, okToClose, pack, performHelp, processAdd, processBrowse, processCancel, processCancelAll, processDetails, processTest, publicConvertHeightInCharsToPixels, publicConvertWidthInCharsToPixels, restoreEnableState, restoreUIState, run, run, saveEnableStateAndSet, saveUIState, setAddButtonLabel, setAddButtonToolTipText, setBrowseButtonLabel, setBrowseButtonToolTipText, setBusyCursor, setCancelAllButtonLabel, setCancelAllButtonToolTipText, setCancelButtonLabel, setCancelButtonToolTipText, setControl, setDescription, setDetailsButtonLabel, setDetailsButtonToolTipText, setDisplayCursor, setDisplayCursor, setErrorMessage, setErrorMessage, setErrorMessage, setHelp, setHelp, setImageDescriptor, setInitialOKButtonEnabledState, setInputObject, setMessage, setMessage, setMinimumSize, setNeedsProgressMonitor, setNoShowAgainOption, setOkButtonLabel, setOkButtonToolTipText, setOutputObject, setOutputObjectValidator, setPageComplete, setShowAddButton, setShowBrowseButton, setShowCancelAllButton, setShowDetailsButton, setShowOkButton, setShowTestButton, setTestButtonLabel, setTestButtonToolTipText, setTitle, setVisible, wasCancelled, wasCancelledAll
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, cancelPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
 
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, 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
 

Field Detail

popupMenu

protected Menu popupMenu

clearMI

protected MenuItem clearMI

rmvMI

protected MenuItem rmvMI

mupMI

protected MenuItem mupMI

mdnMI

protected MenuItem mdnMI
Constructor Detail

SystemWorkWithHistoryDialog

public SystemWorkWithHistoryDialog(Shell shell,
                                   String[] history)
Constructor for SystemWorkWithHistoryDialog

Method Detail

setDefaultHistory

public void setDefaultHistory(String[] items)
Set the items to default the history to. These are sacred and can't be deleted in this dialog.


getInitialFocusControl

protected Control getInitialFocusControl()
Description copied from class: SystemPromptDialog
Return the Control to be given initial focus. Child classes must override this, but can return null.

Specified by:
getInitialFocusControl in class SystemPromptDialog
See Also:
SystemPromptDialog.getInitialFocusControl()

createInner

protected Control createInner(Composite parent)
Description copied from class: SystemPromptDialog
Called by createContents method. Create this dialog's widgets inside a composite. Child classes must override this.

Specified by:
createInner in class SystemPromptDialog
See Also:
SystemPromptDialog.createInner(Composite)

init

protected Group init(Composite parent,
                     int nbrColumns)
Create and initialize labeled group


addSeparator

protected MenuItem addSeparator(Menu parent)
Helper method for a separator menu item


createMenuItem

protected MenuItem createMenuItem(String label,
                                  String description)
Helper method for creating cascading menu item


createPushButton

protected Button createPushButton(Composite c,
                                  String label,
                                  String tooltip)
Helper method for creating a pushbutton with tooltip text. This method takes resolved label and tooltip values


processOK

protected boolean processOK()
Description copied from class: SystemPromptDialog
To be overridden by children. Called when user presses OK button. Child dialog class should set output object. Return true to close dialog. Return false to not close dialog.

Overrides:
processOK in class SystemPromptDialog

handleEvent

public void handleEvent(Event e)
Handles events generated by controls on this page.

Specified by:
handleEvent in interface Listener
Overrides:
handleEvent in class SystemPromptDialog

widgetArmed

public void widgetArmed(ArmEvent e)
Called by system when menu item is "armed" or in select state. We use this to show the menu item description.

Specified by:
widgetArmed in interface ArmListener

getHistory

public String[] getHistory()
Return the updated history


RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.