Remote Systems
v6.4.1

com.ibm.etools.systems.core.ui.compile
Class SystemWorkWithCompileCommandsDialog

java.lang.Object
  extended byorg.eclipse.jface.dialogs.Dialog
      extended bycom.ibm.etools.systems.core.ui.dialogs.SystemPromptDialog
          extended bycom.ibm.etools.systems.core.ui.compile.SystemWorkWithCompileCommandsDialog
All Implemented Interfaces:
ISystemCompileCommandEditPaneHoster, ISystemCompileCommandEditPaneListener, ISystemMessageLine, ISystemMessages, ISystemPromptDialog, Runnable

public class SystemWorkWithCompileCommandsDialog
extends SystemPromptDialog
implements ISystemMessages, ISystemCompileCommandEditPaneListener, Runnable, ISystemCompileCommandEditPaneHoster

A dialog that allows the user to work with the compile commands for the compile actions in this subsystem.

See Also:
Serialized Form

Field Summary
protected  Button applyButton
           
protected  boolean caseSensitive
           
protected  Label ccLabel
           
protected  SystemCompileManager compileManager
           
protected  String[] compileTypeNames
           
protected  SystemCompileProfile[] compProfiles
           
static String copyright
           
protected  SystemCompileProfile currentCompProfile
           
protected  SystemCompileType currentCompType
           
protected  SystemCompileCommandEditPane editpane
           
protected  boolean giveEditorFocus
           
protected  boolean ignoreEvents
           
protected  List listView
           
protected  Button newSrcTypeButton
           
protected  int prevListSelection
           
protected  int prevProfileComboSelection
           
protected  int prevSrcTypeComboSelection
           
protected  Combo profileCombo
           
protected  ResourceBundle rb
           
protected  boolean resetting
           
protected  boolean restoreProfileComboSelection
           
protected  Button revertButton
           
protected  Button rmvSrcTypeButton
           
protected  boolean showProfileCombo
           
protected  SystemEditPaneStateMachine sm
           
protected  Combo srcTypeCombo
           
protected  ResourceBundle srcTypeMRIrb
           
protected  boolean supportsAddSrcTypeButton
           
 
Fields inherited from class com.ibm.etools.systems.core.ui.dialogs.SystemPromptDialog
activeRunningOperations, ADD_BUTTON_NO, ADD_BUTTON_YES, ADD_ID, addButton, arrowCursor, BROWSE_BUTTON_NO, BROWSE_BUTTON_YES, BROWSE_ID, browseButton, buttonsComposite, 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, labelDetailsHide, labelDetailsShow, labelOk, labelTest, marginHeight, marginWidth, minHeight, minWidth, needsProgressMonitor, okButton, okPressed, operationCancelableState, outputObject, outputObjectValidator, overallShell, pack, parentComposite, pendingErrorMessage, pendingMessage, progressMonitorPart, showAddButton, showBrowseButton, showDetailsButton, showOkButton, showTestButton, TEST_BUTTON_NO, TEST_BUTTON_YES, TEST_ID, testButton, tipAdd, tipBrowse, tipCancel, tipDetailsHide, tipDetailsShow, tipOk, tipTest, title, titleImage, verticalSpacing, waitCursor, windowClosingDialog
 
Fields inherited from interface com.ibm.etools.systems.core.ISystemMessages
FILEMSG_ARCHIVE_CORRUPTED, FILEMSG_COPY_FILE_FAILED, FILEMSG_COPY_ROOT, FILEMSG_CREATE_FILE_FAILED, FILEMSG_CREATE_FILE_FAILED_EXIST, FILEMSG_CREATE_FOLDER_FAILED, FILEMSG_CREATE_FOLDER_FAILED_EXIST, FILEMSG_CREATE_RESOURCE_NOTVISIBLE, FILEMSG_DELETE_FILE_FAILED, FILEMSG_DELETING, FILEMSG_DESTINATION_CONFLICTING, FILEMSG_DESTINATION_EMPTY, FILEMSG_ERROR_NOFILETYPES, FILEMSG_EXPORT_ERROR, FILEMSG_EXPORT_FAILED, FILEMSG_EXPORT_NONE_SELECTED, FILEMSG_EXPORT_PROBLEMS, FILEMSG_FILE_NOTFOUND, FILEMSG_FOLDER_IS_FILE, FILEMSG_FOLDER_NOTEMPTY, FILEMSG_FOLDER_NOTFOUND, FILEMSG_FOLDER_NOTFOUND_WANTTOCREATE, FILEMSG_IMPORT_ERROR, FILEMSG_IMPORT_FAILED, FILEMSG_IMPORT_FILTERING, FILEMSG_IMPORT_NONE_SELECTED, FILEMSG_IMPORT_PROBLEMS, FILEMSG_IMPORT_SELF, FILEMSG_IO_ERROR, FILEMSG_MOVE_FILE_FAILED, FILEMSG_MOVE_TARGET_DESCENDS_FROM_SOUCE, FILEMSG_MOVE_TARGET_EQUALS_SOURCE, FILEMSG_NOT_WRITABLE, FILEMSG_RENAME_FILE_FAILED, FILEMSG_RENAME_RESOURCE_NOTVISIBLE, FILEMSG_SECURITY_ERROR, FILEMSG_SOURCE_EMPTY, FILEMSG_SOURCE_IS_FILE, FILEMSG_TARGET_EXISTS, FILEMSG_VALIDATE_FILEFILTERSTRING_EMPTY, FILEMSG_VALIDATE_FILEFILTERSTRING_NOINCLUDES, FILEMSG_VALIDATE_FILEFILTERSTRING_NOTUNIQUE, FILEMSG_VALIDATE_FILEFILTERSTRING_NOTVALID, MSG_ADDTO_VIRTUAL_DEST, MSG_CACHE_UNABLE_TO_SYNCH, MSG_CACHE_UPLOAD_BEFORE_DELETE, MSG_COMBINETO_VIRTUAL_DEST, MSG_COMM_AUTH_FAILED, MSG_COMM_CLIENT_OLDER_WARNING, MSG_COMM_CONNECT_FAILED, MSG_COMM_DAEMON_NOTSTARTED, MSG_COMM_ENVVAR_DUPLICATE, MSG_COMM_ENVVAR_INVALIDCHAR, MSG_COMM_ENVVAR_NONAME, MSG_COMM_INCOMPATIBLE_PROTOCOL, MSG_COMM_INCOMPATIBLE_UPDATE, MSG_COMM_INVALID_LOGIN, MSG_COMM_PORT_WARNING, MSG_COMM_PWD_BLANKFIELD, MSG_COMM_PWD_EXISTS, MSG_COMM_PWD_INVALID, MSG_COMM_PWD_MISMATCH, MSG_COMM_REXEC_NOTSTARTED, MSG_COMM_SERVER_NOTSTARTED, MSG_COMM_SERVER_OLDER_WARNING, MSG_CONFIRM_CHANGES, MSG_CONFIRM_CHANGES_CANCELABLE, MSG_CONFIRM_DELETE, MSG_CONFIRM_DELETE_USERACTION, MSG_CONFIRM_DELETE_USERTYPE, MSG_CONFIRM_DELETEPROFILE, MSG_CONFIRM_DELETEREMOTE, MSG_CONFIRM_ENABLE_CLASSIC_HELP, MSG_CONFIRM_RELOADRSE, MSG_CONNECT_CANCELLED, MSG_CONNECT_DAEMON_FAILED, MSG_CONNECT_DAEMON_FAILED_EXCEPTION, MSG_CONNECT_FAILED, MSG_CONNECT_PROGRESS, MSG_CONNECT_SSL_EXCEPTION, MSG_CONNECT_UNKNOWNHOST, MSG_CONNECTING_TO_SERVER, MSG_CONNECTION_DELETED, MSG_CONNECTWITHPORT_PROGRESS, MSG_CONVERTTO_VIRTUAL_DEST, MSG_COPY_PROGRESS, MSG_COPYCONNECTION_PROGRESS, MSG_COPYCONNECTIONS_PROGRESS, MSG_COPYFILTER_PROGRESS, MSG_COPYFILTERPOOL_COMPLETE, MSG_COPYFILTERPOOL_PROGRESS, MSG_COPYFILTERPOOLS_PROGRESS, MSG_COPYFILTERS_PROGRESS, MSG_COPYFILTERSTRING_PROGRESS, MSG_COPYFILTERSTRINGS_PROGRESS, MSG_COPYGENERIC_PROGRESS, MSG_COPYSUBSYSTEMS_PROGRESS, MSG_COPYTHINGGENERIC_PROGRESS, MSG_DEST_NOT_IN_SOURCE, MSG_DEST_TARGET_READONLY, MSG_DISCONNECT_CANCELLED, MSG_DISCONNECT_FAILED, MSG_DISCONNECT_PROGRESS, MSG_DISCONNECTWITHPORT_PROGRESS, MSG_DOWNLOAD_ALREADY_OPEN_IN_EDITOR, MSG_DOWNLOAD_NO_WRITE, MSG_DOWNLOAD_PROGRESS, MSG_DOWNLOADING_PROGRESS, MSG_ERROR_CONNECTION_NOTFOUND, MSG_ERROR_ENABLE_CLASSIC_HELP, MSG_ERROR_EXTENSION_EMPTY, MSG_ERROR_FILE_NOTFOUND, MSG_ERROR_FILENAME_INVALID, MSG_ERROR_FOLDER_NOTFOUND, MSG_ERROR_FOLDERORFILE_NOTFOUND, MSG_ERROR_GENERAL, MSG_ERROR_LIST_TITLE, MSG_ERROR_PROFILE_NOTFOUND, MSG_ERROR_UNEXPECTED, MSG_EXCEPTION_DELETING, MSG_EXCEPTION_MOVING, MSG_EXCEPTION_OCCURRED, MSG_EXCEPTION_RENAMING, MSG_EXPAND_CANCELLED, MSG_EXPAND_CONNECTIONCREATED, MSG_EXPAND_EMPTY, MSG_EXPAND_FAILED, MSG_EXPAND_FILTERCREATED, MSG_EXPAND_PREFIX, MSG_EXTRACT_PROGRESS, MSG_FILE_INUSE, MSG_FILTERPOOL_CREATED, MSG_FOLDER_INUSE, MSG_GENERIC_E, MSG_GENERIC_E_HELP, MSG_GENERIC_E_TWOPARMS_HELP, MSG_GENERIC_I, MSG_GENERIC_I_HELP, MSG_GENERIC_I_TWOPARMS_HELP, MSG_GENERIC_Q, MSG_GENERIC_Q_HELP, MSG_GENERIC_Q_TWOPARMS_HELP, MSG_GENERIC_U, MSG_GENERIC_U_HELP, MSG_GENERIC_U_TWOPARMS_HELP, MSG_GENERIC_W, MSG_GENERIC_W_HELP, MSG_GENERIC_W_TWOPARMS_HELP, MSG_HOSTNAME_NOTFOUND, MSG_HOSTNAME_VERIFYING, MSG_IMPORT_EXPORT_UNABLE_TO_USE_CONNECTION, MSG_IMPORT_EXPORT_UNEXPECTED_EXCEPTION, MSG_INITIALIZING_SERVER, MSG_LIST_CANCELLED, MSG_LIST_PREFIX, MSG_LOADING_PROFILE_SHOULDBE_ACTIVATED, MSG_LOADING_PROFILE_SHOULDNOTBE_DEACTIVATED, MSG_MOVE_PROGRESS, MSG_MOVECONNECTION_PROGRESS, MSG_MOVECONNECTIONS_PROGRESS, MSG_MOVEFILTER_PROGRESS, MSG_MOVEFILTERPOOL_COMPLETE, MSG_MOVEFILTERPOOL_PROGRESS, MSG_MOVEFILTERPOOLS_PROGRESS, MSG_MOVEFILTERS_PROGRESS, MSG_MOVEFILTERSTRING_PROGRESS, MSG_MOVEFILTERSTRINGS_PROGRESS, MSG_MOVEGENERIC_PROGRESS, MSG_MOVETHINGGENERIC_PROGRESS, MSG_OFFLINE_CANT_CONNECT, MSG_OPERATION_CANCELLED, MSG_OPERATION_DISCONNECTED, MSG_OPERATION_FAILED, MSG_OPERATION_FINISHED, MSG_OPERATION_RUNNING, MSG_OPERTION_STOPPED, MSG_PERCENT_DONE, MSG_PREFIX, MSG_QUERY_PROGRESS, MSG_QUERY_PROPERTIES_PROGRESS, MSG_REMOTE_JAR_EXPORT_OVERWRITE_FILE, MSG_REMOTE_SEARCH_INVALID_REGEX, MSG_RENAMEFILTER_FAILED, MSG_RESOLVE_PROGRESS, MSG_RESTORE_FAILED, MSG_RUN_PROGRESS, MSG_SAVE_CHANGES_PENDING, MSG_SAVE_FAILED, MSG_SAVING_PROGRESS, MSG_SET_PROGRESS, MSG_SET_PROPERTIES_PROGRESS, MSG_STARTING_SERVER_VIA_DAEMON, MSG_STARTING_SERVER_VIA_REXEC, MSG_SYNCHRONIZE_PROGRESS, MSG_TRANSFER_INVALID, MSG_UCMD_INVOCATION_EMPTY, MSG_UDA_LOAD_ERROR, MSG_UDA_ROOTTAG_ERROR, MSG_UFF_PATTERN_EMPTY, MSG_UFF_PATTERN_INVALID_REGEX, MSG_UNDERCONSTRUCTION, MSG_UPDATEFILTER_FAILED, MSG_UPLOAD_FILE_EXISTS, MSG_UPLOAD_PROGRESS, MSG_UPLOADING_PROGRESS, MSG_VALIDATE_ARCHIVE_NAME, MSG_VALIDATE_COMPILELABEL_EMPTY, MSG_VALIDATE_COMPILELABEL_NOTUNIQUE, MSG_VALIDATE_COMPILELABEL_NOTVALID, MSG_VALIDATE_COMPILESTRING_EMPTY, MSG_VALIDATE_COMPILESTRING_NOTVALID, MSG_VALIDATE_CONNECTIONNAME_EMPTY, MSG_VALIDATE_CONNECTIONNAME_NOTUNIQUE, MSG_VALIDATE_CONNECTIONNAME_NOTUNIQUE_OTHERPROFILE, MSG_VALIDATE_CONNECTIONNAME_NOTVALID, MSG_VALIDATE_ENTRY_EMPTY, MSG_VALIDATE_ENTRY_NOTUNIQUE, MSG_VALIDATE_ENTRY_NOTVALID, MSG_VALIDATE_FILENAME_NOTVALID, MSG_VALIDATE_FILTERNAME_EMPTY, MSG_VALIDATE_FILTERNAME_NOTUNIQUE, MSG_VALIDATE_FILTERNAME_NOTVALID, MSG_VALIDATE_FILTERPOOLNAME_EMPTY, MSG_VALIDATE_FILTERPOOLNAME_NOTUNIQUE, MSG_VALIDATE_FILTERPOOLNAME_NOTVALID, MSG_VALIDATE_FILTERSTRING_ALREADYEXISTS, MSG_VALIDATE_FILTERSTRING_DUPLICATES, MSG_VALIDATE_FILTERSTRING_EMPTY, MSG_VALIDATE_FILTERSTRING_NOTUNIQUE, MSG_VALIDATE_FILTERSTRING_NOTVALID, MSG_VALIDATE_FOLDERNAME_NOTVALID, MSG_VALIDATE_HOSTNAME_EMPTY, MSG_VALIDATE_NAME_EMPTY, MSG_VALIDATE_NAME_NOTUNIQUE, MSG_VALIDATE_NAME_NOTVALID, MSG_VALIDATE_NOT_NUMERIC, MSG_VALIDATE_NUMBER_EMPTY, MSG_VALIDATE_NUMBER_NOTVALID, MSG_VALIDATE_NUMBER_OUTOFRANGE, MSG_VALIDATE_PASSWORD_EMPTY, MSG_VALIDATE_PASSWORD_EXPIRED, MSG_VALIDATE_PATH_EMPTY, MSG_VALIDATE_PATH_NOTUNIQUE, MSG_VALIDATE_PATH_NOTVALID, MSG_VALIDATE_PORT_EMPTY, MSG_VALIDATE_PORT_NOTVALID, MSG_VALIDATE_PROFILENAME_EMPTY, MSG_VALIDATE_PROFILENAME_NOTUNIQUE, MSG_VALIDATE_PROFILENAME_NOTVALID, MSG_VALIDATE_PROFILENAME_RESERVED, MSG_VALIDATE_RENAME_EMPTY, MSG_VALIDATE_RENAME_NOTUNIQUE, MSG_VALIDATE_RENAME_NOTVALID, MSG_VALIDATE_RENAME_OLDEQUALSNEW, MSG_VALIDATE_SRCTYPE_EMPTY, MSG_VALIDATE_SRCTYPE_NOTUNIQUE, MSG_VALIDATE_SRCTYPE_NOTVALID, MSG_VALIDATE_UDACMD_EMPTY, MSG_VALIDATE_UDACMD_NOTVALID, MSG_VALIDATE_UDACMT_EMPTY, MSG_VALIDATE_UDACMT_NOTVALID, MSG_VALIDATE_UDANAME_EMPTY, MSG_VALIDATE_UDANAME_NOTUNIQUE, MSG_VALIDATE_UDANAME_NOTVALID, MSG_VALIDATE_UDTNAME_EMPTY, MSG_VALIDATE_UDTNAME_NOTUNIQUE, MSG_VALIDATE_UDTNAME_NOTVALID, MSG_VALIDATE_UDTTYPES_EMPTY, MSG_VALIDATE_UDTTYPES_NOTVALID, MSG_VALIDATE_USERID_EMPTY, MSG_VALIDATE_USERID_NOTVALID, MSG_WIZARD_PAGE_ERROR, NEW_FILE_ACTION, NEW_FILE_WIZARD, NEW_FOLDER_ACTION, NEW_FOLDER_WIZARD, PLUGIN_ID, PREFIX, RESID_PREFIX
 
Constructor Summary
SystemWorkWithCompileCommandsDialog(Shell shell, SystemCompileManager compileManager, SystemCompileProfile currentCompProfile)
          Constructor
SystemWorkWithCompileCommandsDialog(Shell shell, SystemCompileManager compileManager, SystemCompileProfile currentCompProfile, String title)
          Constructor, when unique title desired
 
Method Summary
protected  void applyPressed(boolean doVerify)
          User pressed Apply to save the pending changes the current filter string
 boolean canCopy()
          Decide if we can do the copy or not.
 boolean canDelete()
          Decide if we can do the delete or not.
 boolean canMoveDown()
          Decide if we can do the move down or not.
 boolean canMoveUp()
          Decide if we can do the move up or not.
 boolean canPaste()
          Decide if we can do the paste or not.
 boolean canRestore()
          Decide if we can do the restore defaults or not.
 void compileCommandChanged(SystemMessage message)
          Callback method.
protected  void createButtonsForButtonBar(Composite parent)
          Intercept of parent so we can reset the default button
protected  Control createInner(Composite parent)
          Called by createContents method.
 void createStandardGroups(IMenuManager menu)
          Creates the Systems plugin standard groups in a context menu.
 void doCopy()
          Actually do the copy of the current filter string to the clipboard.
 void doDelete()
          Perform the delete action
 void doMoveDown()
          Perform the move down action
 void doMoveUp()
          Perform the move up action
 void doPaste()
          Actually do the copy of the current filter string to the clipboard.
 void doRestore()
          Perform the restore defaults action
 void fillContextMenu(IMenuManager menu)
          This is method is called to populate the popup menu
protected  SystemCompileCommandEditPane getCompileCommandEditPane(Shell shell)
          Return our edit pane.
protected  SystemCompileCommand getCurrentlySelectedCompileCommand()
          Return the currently selected compile command
protected  String getCurrentSelection()
          Return currently selected list item
protected  Control getInitialFocusControl()
          Return the Control to be given initial focus.
protected  ISystemRemoteElementAdapter getRemoteAdapter(Object o)
          Returns the implementation of ISystemRemoteElement for the given object.
protected  boolean isIBMSupplied()
          Return true if currently selected item is IBM- or vendor-supplied
protected  boolean isNewSelected()
          Return true if currently selected item is "New"
 void menuAboutToShow(IMenuManager menu)
          Called when the context menu is about to open.
protected  void newSrcTypePressed()
          User pressed New... beside the Source Type combo
protected  boolean processCancel()
          Parent override.
protected  void revertPressed()
          User pressed Revert to discard the pending changes the current filter string
protected  void rmvSrcTypePressed()
          User pressed Remove... beside the Source Type combo
 void run()
          For asynch exec we defer some operations until other pending events are processed.
protected  void saveCompileCommand(SystemCompileCommand editedCompileCommand, boolean newMode, int selectionIndex)
          Save the given edited/new compile command and updates the gui list.
 void setCaseSensitive(boolean caseSensitive)
          Set whether the source types, labels, etc are case sensitive
 void setCompileCommandEditPane(SystemCompileCommandEditPane editPane)
          Specify an edit pane that prompts the user for the contents of a compile command
 void setCompileType(SystemCompileType type)
          Set the compile to pre-select in the types combo
protected  void setHelp()
          Overridable extension point for setting dialog help
 void setPageComplete(boolean complete)
          Intercept of parent method so we can direct it to the Apply button versus the OK button (which we don't have).
 void setProfiles(SystemCompileProfile[] profiles)
          Set the compile profiles to show in the profile combo.
 void setSourceTypePromptMRI(ResourceBundle srcTypeMRIrb, String srcTypeMRIkey)
          Set the mri for the source type prompt
 void setSupportsAddSrcTypeButton(boolean supports)
          Set supports the "Add..." button beside the source type combo.
 void widgetDefaultSelected(SelectionEvent e)
          Handles events generated by controls on this page.
 void widgetSelected(SelectionEvent e)
          Handles events generated by controls on this page.
 
Methods inherited from class com.ibm.etools.systems.core.ui.dialogs.SystemPromptDialog
aboutToStart, addFillerLine, addGrowableFillerLine, addSeparatorLine, adjustButtonWidth, applyMnemonics, buttonPressed, clearErrorMessage, clearMessage, close, configureShell, createButtonBar, createContents, createControl, createDialogArea, createMessageLine, createWizardClosingDialog, dispose, enableAddButton, enableBrowseButton, enableCancelButton, enableDetailsButton, enableOkButton, enableTestButton, getAddButton, getBrowseButton, getCancelOrCloseButton, getControl, getDescription, getDetailsButton, getDialogMnemonics, getErrorMessage, getHelpContextId, getImage, getInputObject, getMessage, getMessageLine, getOkButton, getOutputObject, getOutputObjectValidator, getProgressMonitor, getSystemErrorMessage, getTestButton, getTitle, handleEvent, hardClose, okToClose, pack, performHelp, processAdd, processBrowse, processDetails, processOK, processTest, publicConvertHeightInCharsToPixels, publicConvertWidthInCharsToPixels, restoreEnableState, restoreUIState, run, saveEnableStateAndSet, saveUIState, setAddButtonLabel, setAddButtonToolTipText, setBrowseButtonLabel, setBrowseButtonToolTipText, setBusyCursor, setCancelButtonLabel, setCancelButtonToolTipText, setControl, setDescription, setDetailsButtonLabel, setDetailsButtonToolTipText, setDisplayCursor, setDisplayCursor, setErrorMessage, setErrorMessage, setErrorMessage, setHelp, setHelp, setImageDescriptor, setInitialOKButtonEnabledState, setInputObject, setMessage, setMessage, setMinimumSize, setNeedsProgressMonitor, setOkButtonLabel, setOkButtonToolTipText, setOutputObject, setOutputObjectValidator, setShowAddButton, setShowBrowseButton, setShowDetailsButton, setShowOkButton, setShowTestButton, setTestButtonLabel, setTestButtonToolTipText, setTitle, setVisible, wasCancelled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.etools.systems.core.ui.compile.ISystemCompileCommandEditPaneHoster
getShell
 
Methods inherited from interface com.ibm.etools.systems.core.ui.messages.ISystemMessageLine
clearErrorMessage, clearMessage, getErrorMessage, getMessage, getSystemErrorMessage, setErrorMessage, setErrorMessage, setErrorMessage, setMessage, setMessage
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values

rb

protected ResourceBundle rb

srcTypeMRIrb

protected ResourceBundle srcTypeMRIrb

applyButton

protected Button applyButton

revertButton

protected Button revertButton

newSrcTypeButton

protected Button newSrcTypeButton

rmvSrcTypeButton

protected Button rmvSrcTypeButton

profileCombo

protected Combo profileCombo

srcTypeCombo

protected Combo srcTypeCombo

listView

protected List listView

ccLabel

protected Label ccLabel

sm

protected SystemEditPaneStateMachine sm

compileManager

protected SystemCompileManager compileManager

editpane

protected SystemCompileCommandEditPane editpane

compProfiles

protected SystemCompileProfile[] compProfiles

currentCompProfile

protected SystemCompileProfile currentCompProfile

currentCompType

protected SystemCompileType currentCompType

caseSensitive

protected boolean caseSensitive

supportsAddSrcTypeButton

protected boolean supportsAddSrcTypeButton

ignoreEvents

protected boolean ignoreEvents

restoreProfileComboSelection

protected boolean restoreProfileComboSelection

showProfileCombo

protected boolean showProfileCombo

resetting

protected boolean resetting

giveEditorFocus

protected boolean giveEditorFocus

prevProfileComboSelection

protected int prevProfileComboSelection

prevSrcTypeComboSelection

protected int prevSrcTypeComboSelection

prevListSelection

protected int prevListSelection

compileTypeNames

protected String[] compileTypeNames
Constructor Detail

SystemWorkWithCompileCommandsDialog

public SystemWorkWithCompileCommandsDialog(Shell shell,
                                           SystemCompileManager compileManager,
                                           SystemCompileProfile currentCompProfile)
Constructor


SystemWorkWithCompileCommandsDialog

public SystemWorkWithCompileCommandsDialog(Shell shell,
                                           SystemCompileManager compileManager,
                                           SystemCompileProfile currentCompProfile,
                                           String title)
Constructor, when unique title desired

Method Detail

setHelp

protected void setHelp()
Overridable extension point for setting dialog help


setCompileCommandEditPane

public void setCompileCommandEditPane(SystemCompileCommandEditPane editPane)
Specify an edit pane that prompts the user for the contents of a compile command


setProfiles

public void setProfiles(SystemCompileProfile[] profiles)
Set the compile profiles to show in the profile combo.

Parameters:
profiles - - array of profiles to show

setCaseSensitive

public void setCaseSensitive(boolean caseSensitive)
Set whether the source types, labels, etc are case sensitive


setSupportsAddSrcTypeButton

public void setSupportsAddSrcTypeButton(boolean supports)
Set supports the "Add..." button beside the source type combo. The default is true.


setSourceTypePromptMRI

public void setSourceTypePromptMRI(ResourceBundle srcTypeMRIrb,
                                   String srcTypeMRIkey)
Set the mri for the source type prompt


setCompileType

public void setCompileType(SystemCompileType type)
Set the compile to pre-select in the types combo


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)

createButtonsForButtonBar

protected void createButtonsForButtonBar(Composite parent)
Intercept of parent so we can reset the default button

Overrides:
createButtonsForButtonBar in class SystemPromptDialog
Parameters:
parent - the button bar composite

getCompileCommandEditPane

protected SystemCompileCommandEditPane getCompileCommandEditPane(Shell shell)
Return our edit pane. Overriding this is an alternative to calling setEditPane. This is called in createContents


processCancel

protected boolean processCancel()
Parent override. Called when user presses CLOSE button. We simply close the dialog (since we save as we go), unless there are pending changes.

Overrides:
processCancel in class SystemPromptDialog

widgetSelected

public void widgetSelected(SelectionEvent e)
Handles events generated by controls on this page.


applyPressed

protected void applyPressed(boolean doVerify)
User pressed Apply to save the pending changes the current filter string


revertPressed

protected void revertPressed()
User pressed Revert to discard the pending changes the current filter string


newSrcTypePressed

protected void newSrcTypePressed()
User pressed New... beside the Source Type combo


rmvSrcTypePressed

protected void rmvSrcTypePressed()
User pressed Remove... beside the Source Type combo


widgetDefaultSelected

public void widgetDefaultSelected(SelectionEvent e)
Handles events generated by controls on this page.


saveCompileCommand

protected void saveCompileCommand(SystemCompileCommand editedCompileCommand,
                                  boolean newMode,
                                  int selectionIndex)
Save the given edited/new compile command and updates the gui list.


setPageComplete

public void setPageComplete(boolean complete)
Intercept of parent method so we can direct it to the Apply button versus the OK button (which we don't have).

Overrides:
setPageComplete in class SystemPromptDialog

getRemoteAdapter

protected ISystemRemoteElementAdapter getRemoteAdapter(Object o)
Returns the implementation of ISystemRemoteElement for the given object. Returns null if this object does not adaptable to this.


isNewSelected

protected boolean isNewSelected()
Return true if currently selected item is "New"


isIBMSupplied

protected boolean isIBMSupplied()
Return true if currently selected item is IBM- or vendor-supplied


getCurrentSelection

protected String getCurrentSelection()
Return currently selected list item


getCurrentlySelectedCompileCommand

protected SystemCompileCommand getCurrentlySelectedCompileCommand()
Return the currently selected compile command


compileCommandChanged

public void compileCommandChanged(SystemMessage message)
Callback method. The user has changed the compile command. It may or may not be valid. If not, the given message is non-null. If it is, and you want it, call getCompileCommand() in the edit pane.

Specified by:
compileCommandChanged in interface ISystemCompileCommandEditPaneListener

menuAboutToShow

public void menuAboutToShow(IMenuManager menu)
Called when the context menu is about to open. Calls fillContextMenu(IMenuManager)


fillContextMenu

public void fillContextMenu(IMenuManager menu)
This is method is called to populate the popup menu


createStandardGroups

public void createStandardGroups(IMenuManager menu)
Creates the Systems plugin standard groups in a context menu.


canDelete

public boolean canDelete()
Decide if we can do the delete or not. Will decide the enabled state of the delete action.


doDelete

public void doDelete()
Perform the delete action


canMoveUp

public boolean canMoveUp()
Decide if we can do the move up or not. Will decide the enabled state of the move up action.


doMoveUp

public void doMoveUp()
Perform the move up action


canMoveDown

public boolean canMoveDown()
Decide if we can do the move down or not. Will decide the enabled state of the move down action.


doMoveDown

public void doMoveDown()
Perform the move down action


canCopy

public boolean canCopy()
Decide if we can do the copy or not. Will decide the enabled state of the copy action.


doCopy

public void doCopy()
Actually do the copy of the current filter string to the clipboard.


canPaste

public boolean canPaste()
Decide if we can do the paste or not. Will decide the enabled state of the copy action.


doPaste

public void doPaste()
Actually do the copy of the current filter string to the clipboard. If an existing string is selected, it is pasted before it. Else. it is appended to the end of the list.


canRestore

public boolean canRestore()
Decide if we can do the restore defaults or not. Will decide the enabled state of the restore defaults action.


doRestore

public void doRestore()
Perform the restore defaults action


run

public void run()
For asynch exec we defer some operations until other pending events are processed.

Specified by:
run in interface Runnable
Overrides:
run in class SystemPromptDialog

Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.