Remote Systems
v6.4.1

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

java.lang.Object
  extended byAction
      extended bycom.ibm.etools.systems.core.ui.actions.SystemBaseAction
          extended bycom.ibm.etools.systems.core.ui.compile.SystemCompileAction
All Implemented Interfaces:
ISystemAction

public class SystemCompileAction
extends SystemBaseAction

This is the action for an individual compile command, either prompted or not prompted. The label for the action is simply the compile command's label. If promptable, then "..." is appended.

See Also:
Serialized Form

Field Summary
static String Copyright
           
 
Fields inherited from class com.ibm.etools.systems.core.ui.actions.SystemBaseAction
allowOnMultipleSelection, arrowCursor, copyright, helpId, selectionSensitive, shell, sSelection, traceSelections, traceTarget, viewer, waitCursor
 
Constructor Summary
SystemCompileAction(Shell shell, SystemCompileCommand compileCommand, boolean isPrompt)
          Constructor
 
Method Summary
protected  boolean checkDirtyEditors()
           
 boolean checkObjectType(Object selectedObject)
          Intercept of parent method that is our opportunity to enable/disable this action, typically by interrogating the current selection, retrievable via getSelection.
protected  List getDirtyEditors()
           
protected  ISystemEditableRemoteObject getEditableFor(IAdaptable selected)
           
 void run()
          Called by eclipse when the user selects this action.
 boolean updateSelection(IStructuredSelection selection)
          Intercept of parent method that is our first opportunity to enable/disable this action, typically by interrogating the current selection, retrievable via getSelection.
 
Methods inherited from class com.ibm.etools.systems.core.ui.actions.SystemBaseAction
allowOnMultipleSelection, getAdapter, getContextMenuGroup, getCurrentTreeView, getDescription, getFirstSelection, getHelpContextId, getLabel, getNextSelection, getRemoteAdapter, getSelection, getSelectionProvider, getShell, getShell, getString, getStringOrNull, getSystemConnection, getToolTip, getViewer, isDummy, isEnabled, isSelectionSensitive, issueTraceMessage, selectionChanged, setAvailableOffline, setBusyCursor, setContextMenuGroup, setDisplayCursor, setDisplayCursor, setHelp, setInputs, setSelection, setSelectionProvider, setSelectionSensitive, setShell, setSystemConnection, setTracing, setTracing, setViewer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values
Constructor Detail

SystemCompileAction

public SystemCompileAction(Shell shell,
                           SystemCompileCommand compileCommand,
                           boolean isPrompt)
Constructor

Method Detail

updateSelection

public boolean updateSelection(IStructuredSelection selection)
Intercept of parent method that is our first opportunity to enable/disable this action, typically by interrogating the current selection, retrievable via getSelection.

For this compile action, we disable if we are not currently connected.

Overrides:
updateSelection in class SystemBaseAction

checkObjectType

public boolean checkObjectType(Object selectedObject)
Intercept of parent method that is our opportunity to enable/disable this action, typically by interrogating the current selection, retrievable via getSelection.

For this compile action, we disable if we are not currently connected.

Overrides:
checkObjectType in class SystemBaseAction

run

public void run()
Called by eclipse when the user selects this action. Does the actual running of the action.

Overrides:
run in class SystemBaseAction
See Also:
Action#run()

getDirtyEditors

protected List getDirtyEditors()

getEditableFor

protected ISystemEditableRemoteObject getEditableFor(IAdaptable selected)

checkDirtyEditors

protected boolean checkDirtyEditors()

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.