Rational Developer for Power Systems Software
V7.6

com.ibm.etools.systems.application.visual.editor.actions
Class SwitchViewBaseAction

java.lang.Object
  extended by DiagramAction
      extended by com.ibm.etools.systems.application.visual.editor.actions.SwitchViewBaseAction

public class SwitchViewBaseAction
extends DiagramAction

The action to apply a specific model view filter to the Application Diagram.


Field Summary
static String copyright
           
 
Constructor Summary
SwitchViewBaseAction(IWorkbenchPart workbenchpart)
          Constructor.
SwitchViewBaseAction(IWorkbenchPart workbenchpart, String filterID, String filterName, boolean isCurrentView)
          Constructor.
 
Method Summary
protected  boolean calculateEnabled()
          Calculates the enblement state of the action
protected  Request createTargetRequest()
           
protected  void doRun(IProgressMonitor progressMonitor)
          Run the action.
 String getFilterID()
          Get current filter ID.
protected  boolean isSelectionListener()
           
protected  boolean isUsingRectilinear()
          Return true if using Rectilinear style.
 void refresh()
          Refresh the enablement status based on whether the action is enabled or not.
 void setFilterID(String filterID)
          Set selected filter ID.
 
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

SwitchViewBaseAction

public SwitchViewBaseAction(IWorkbenchPart workbenchpart)
Constructor.


SwitchViewBaseAction

public SwitchViewBaseAction(IWorkbenchPart workbenchpart,
                            String filterID,
                            String filterName,
                            boolean isCurrentView)
Constructor.

Method Detail

doRun

protected void doRun(IProgressMonitor progressMonitor)
Run the action.


getFilterID

public String getFilterID()
Get current filter ID.


setFilterID

public void setFilterID(String filterID)
Set selected filter ID.


isUsingRectilinear

protected boolean isUsingRectilinear()
Return true if using Rectilinear style. False if oblique style.


createTargetRequest

protected Request createTargetRequest()

isSelectionListener

protected boolean isSelectionListener()

refresh

public void refresh()
Refresh the enablement status based on whether the action is enabled or not.

See Also:
org.eclipse.gmf.runtime.common.ui.action.IActionWithProgress#refresh()

calculateEnabled

protected boolean calculateEnabled()
Calculates the enblement state of the action

Returns:
true if action should be enabled, false otherwise

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.