Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.editor
Class ActionOpenInclude

java.lang.Object
  extended by TextEditorAction
      extended by com.ibm.etools.iseries.editor.ActionOpenInclude

public class ActionOpenInclude
extends TextEditorAction

This class is used to open an include for a file (or copy book, or copy member)


Field Summary
protected static ResourceBundle _bundle
           
static int ACTION_BROWSE
          create the browse version
static int ACTION_EDIT
          create the edit version
static int ACTION_INCLUDE
          create the top menu
static String BROWSE_ID
          the ID for the browse action
static String copyright
           
static String EDIT_ID
          the ID for the edit action
static String MAIN_ID
          the ID for the main menu action
static int STYLE_CL
          use the CL (include member) MRI
static int STYLE_COBOL
          use the COBOL (copy book) MRI
static int STYLE_RPG
          use the RPG (copy member) MRI
 
Constructor Summary
ActionOpenInclude(ITextEditor editor, int mriStyle, int actionType)
          Constructor for ActionOpenInclude.
 
Method Summary
static IProject getISeriesProject(LpexView view)
          Used to retrieve the iSeries project for the file currently open in the view.
 IMenuListener getMainMenuListener()
          Method getMainMenuListener.
 void run()
           
 void update()
          Updates the validity of the action.
 
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

_bundle

protected static ResourceBundle _bundle

STYLE_RPG

public static final int STYLE_RPG
use the RPG (copy member) MRI

See Also:
Constant Field Values

STYLE_COBOL

public static final int STYLE_COBOL
use the COBOL (copy book) MRI

See Also:
Constant Field Values

STYLE_CL

public static final int STYLE_CL
use the CL (include member) MRI

See Also:
Constant Field Values

ACTION_INCLUDE

public static final int ACTION_INCLUDE
create the top menu

See Also:
Constant Field Values

ACTION_EDIT

public static final int ACTION_EDIT
create the edit version

See Also:
Constant Field Values

ACTION_BROWSE

public static final int ACTION_BROWSE
create the browse version

See Also:
Constant Field Values

MAIN_ID

public static final String MAIN_ID
the ID for the main menu action

See Also:
Constant Field Values

EDIT_ID

public static final String EDIT_ID
the ID for the edit action

See Also:
Constant Field Values

BROWSE_ID

public static final String BROWSE_ID
the ID for the browse action

See Also:
Constant Field Values
Constructor Detail

ActionOpenInclude

public ActionOpenInclude(ITextEditor editor,
                         int mriStyle,
                         int actionType)
Constructor for ActionOpenInclude.

Parameters:
editor - the text editor for this actions
mriStyle - the MRI to use for this action (either RPG or COBOL)
actionType - the action type
Method Detail

getMainMenuListener

public IMenuListener getMainMenuListener()
Method getMainMenuListener. returns the listener needed for the main include menu to refresh correctly

Returns:
IMenuListener

run

public void run()
See Also:
IAction

update

public void update()
Updates the validity of the action. Queries the parser if the include action is valid.

See Also:
IUpdate

getISeriesProject

public static IProject getISeriesProject(LpexView view)
Used to retrieve the iSeries project for the file currently open in the view.

Parameters:
view - The view that the file is open in
Returns:
The project that the file belongs to. Null if the file is not a project files
Since:
6.0.0.3

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.