iSeries Remote Systems
v6.0.1

com.ibm.etools.iseries.editor
Class RefreshAction

java.lang.Object
  extended byorg.eclipse.jface.action.Action
      extended byorg.eclipse.ui.texteditor.ResourceAction
          extended byorg.eclipse.ui.texteditor.TextEditorAction
              extended bycom.ibm.etools.iseries.editor.RefreshAction
All Implemented Interfaces:
IAction, IUpdate, com.ibm.lpex.core.LpexAction

public class RefreshAction
extends TextEditorAction
implements com.ibm.lpex.core.LpexAction


Field Summary
protected static ResourceBundle _bundle
           
static String copyright
           
static String STRID
          the string ID for this action
 
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
RefreshAction(ITextEditor editor)
          Constructor for RefreshAction.
 
Method Summary
 boolean available(com.ibm.lpex.core.LpexView arg0)
          Method available this action is always available.
 void doAction(com.ibm.lpex.core.LpexView arg0)
           
 int getAccelerator()
          Return "no accelerator" for this action.
protected  void removeAccelerator(com.ibm.lpex.core.LpexView lpexView, int actionId)
          Method removeAccelerator.
 void run()
          Method run calls doAction
 
Methods inherited from class org.eclipse.ui.texteditor.TextEditorAction
canModifyEditor, getTextEditor, setEditor, update, validateEditorInputState
 
Methods inherited from class org.eclipse.ui.texteditor.ResourceAction
getString, initialize, setHelpContextId
 
Methods inherited from class org.eclipse.jface.action.Action
addPropertyChangeListener, convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, firePropertyChange, firePropertyChange, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, notifyResult, removeAcceleratorText, removeMnemonics, removePropertyChangeListener, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, 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
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values

_bundle

protected static ResourceBundle _bundle

STRID

public static final String STRID
the string ID for this action

See Also:
Constant Field Values
Constructor Detail

RefreshAction

public RefreshAction(ITextEditor editor)
Constructor for RefreshAction.

Parameters:
editor -
Method Detail

doAction

public void doAction(com.ibm.lpex.core.LpexView arg0)
Specified by:
doAction in interface com.ibm.lpex.core.LpexAction
See Also:
LpexAction.doAction(LpexView)

available

public boolean available(com.ibm.lpex.core.LpexView arg0)
Method available this action is always available.

Specified by:
available in interface com.ibm.lpex.core.LpexAction
Parameters:
arg0 - the view to see if the action is available
Returns:
always returns true
See Also:
LpexAction.available(LpexView)

run

public void run()
Method run calls doAction

Specified by:
run in interface IAction
See Also:
IAction.run()

getAccelerator

public int getAccelerator()
Return "no accelerator" for this action. Overrides org.eclipse.jface.action.Action's to circumvent a bug

Specified by:
getAccelerator in interface IAction
See Also:
Action.getAccelerator()

removeAccelerator

protected void removeAccelerator(com.ibm.lpex.core.LpexView lpexView,
                                 int actionId)
Method removeAccelerator. Reformats the text for the action removing the accelerator.

Parameters:
lpexView - the LpexView for this action
actionId - the LPEX id for this action.

iSeries Remote Systems
v6.0.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.