iSeries Remote Systems
v6.0.0

com.ibm.etools.iseries.core.ui.actions
Class ISeriesVerifySourceAction

java.lang.Object
  extended byorg.eclipse.jface.action.Action
      extended bycom.ibm.etools.systems.core.ui.actions.SystemBaseAction
          extended bycom.ibm.etools.iseries.core.ui.actions.ISeriesSystemBaseAction
              extended bycom.ibm.etools.iseries.core.ui.actions.ISeriesVerifySourceAction
All Implemented Interfaces:
IAction, ICheatSheetAction, ISelectionChangedListener, com.ibm.etools.systems.core.ui.actions.ISystemAction

public class ISeriesVerifySourceAction
extends ISeriesSystemBaseAction
implements ICheatSheetAction

Action for launching the program verifiers (RPG, COBOL, DDS).


Field Summary
static String Copyright
           
 
Fields inherited from class com.ibm.etools.iseries.core.ui.actions.ISeriesSystemBaseAction
copyright
 
Fields inherited from class com.ibm.etools.systems.core.ui.actions.SystemBaseAction
allowOnMultipleSelection, arrowCursor, helpId, selectionSensitive, shell, sSelection, traceSelections, traceTarget, viewer, waitCursor
 
Fields inherited from interface org.eclipse.jface.action.IAction
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT
 
Constructor Summary
ISeriesVerifySourceAction()
          Added no-arg constructor so this action could be invoked from a cheatsheet
ISeriesVerifySourceAction(Shell parent)
          Verify source action without prompting
ISeriesVerifySourceAction(Shell parent, boolean prompt)
          Verify source action with or without prompting
 
Method Summary
 boolean checkObjectType(Object selectedObject)
          Second and easiest opportunity to decide if the action should be enabled or not based on the current selection.
 boolean isVerifierAvailable(String type)
          This will check if the verifier is available depending on the source type
 void run()
          Run method - do the verify, this will download the member if necessary.
 void run(String[] params, ICheatSheetManager manager)
           
 void setEnabled(boolean state)
           
 
Methods inherited from class com.ibm.etools.iseries.core.ui.actions.ISeriesSystemBaseAction
getDataElement, getISeriesConnection, isAvailableOffline, updateSelection
 
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 org.eclipse.jface.action.Action
addPropertyChangeListener, convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, firePropertyChange, firePropertyChange, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, notifyResult, removeAcceleratorText, removeMnemonics, removePropertyChangeListener, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.action.IAction
addPropertyChangeListener, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, removePropertyChangeListener, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
 

Field Detail

Copyright

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

ISeriesVerifySourceAction

public ISeriesVerifySourceAction()
Added no-arg constructor so this action could be invoked from a cheatsheet


ISeriesVerifySourceAction

public ISeriesVerifySourceAction(Shell parent)
Verify source action without prompting


ISeriesVerifySourceAction

public ISeriesVerifySourceAction(Shell parent,
                                 boolean prompt)
Verify source action with or without prompting

Method Detail

checkObjectType

public boolean checkObjectType(Object selectedObject)
Second and easiest opportunity to decide if the action should be enabled or not based on the current selection. Called by default implementation of updateSelection, once for each item in the selection. If any call to this returns false, the action is disabled.

We return true if all the verifier dlls are loaded and message file is available.


isVerifierAvailable

public boolean isVerifierAvailable(String type)
This will check if the verifier is available depending on the source type


run

public void run()
Run method - do the verify, this will download the member if necessary. If the member is open in editor, it will verify the open member. If not, it will verify the host member.

Specified by:
run in interface IAction

setEnabled

public void setEnabled(boolean state)
Specified by:
setEnabled in interface IAction

run

public void run(String[] params,
                ICheatSheetManager manager)
Specified by:
run in interface ICheatSheetAction

iSeries Remote Systems
v6.0.0

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.