Rational Developer for Power Systems Software
V7.6

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

java.lang.Object
  extended by SystemBaseAction
      extended by com.ibm.etools.iseries.rse.ui.actions.QSYSSystemBaseAction
          extended by com.ibm.etools.iseries.edit.ui.actions.ISeriesVerifySourceAction
Direct Known Subclasses:
ISeriesIFSPopupVerifyFileAction, ISeriesVerifyLocalSourceAction

public class ISeriesVerifySourceAction
extends QSYSSystemBaseAction

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


Field Summary
static String Copyright
           
 
Fields inherited from class com.ibm.etools.iseries.rse.ui.actions.QSYSSystemBaseAction
copyright
 
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)
           
 void setSelection(ISelection selection)
           
 
Methods inherited from class com.ibm.etools.iseries.rse.ui.actions.QSYSSystemBaseAction
getIBMiConnection, isAvailableOffline, updateSelection
 
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

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.


setEnabled

public void setEnabled(boolean state)

run

public void run(String[] params,
                ICheatSheetManager manager)

setSelection

public void setSelection(ISelection selection)

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 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.