| 
Rational Developer for Power Systems Software V7.6  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectAbstractActionDelegate
com.ibm.etools.systems.application.visual.editor.actions.SearchMainEntryPointActionDelegate
public class SearchMainEntryPointActionDelegate
The action searchs the visible main entry points in current Application Diagram. This action works for diagram which has source model elments. If there is only one main entry point in diagram, the main entry point will be selected. If there is multiple main entry points in diagram ( when diagram includs multiple source file memeber), a dialog pops up for users to select one. If there is no main entry point, an error message displays.
| Field Summary | |
|---|---|
static String | 
copyright
 | 
| Constructor Summary | |
|---|---|
SearchMainEntryPointActionDelegate()
 | 
|
| Method Summary | |
|---|---|
protected  List<SourceContainer> | 
addAllVisibleSourceContainers()
Add all visible source containers from Application Model.  | 
protected  void | 
doRun(IProgressMonitor progressMonitor)
 | 
protected  ApplicationModelEditPart | 
getApplicationModelEditPart()
Helper to return diagram editpart.  | 
protected  EditPart | 
getEditPartFor(View view)
Find editpart from semantic model element.  | 
protected  List<MainEntryPoint> | 
getMainEntryPoints(SourceContainer srcContainer)
Get a list of MainEntryPoints from a given source container.  | 
protected  List<SourceContainer> | 
getOperationSet()
Get a set of source containers for finding main entry point.  | 
protected  List | 
getSelectedObjects()
Helper to return a list of objects in the current structured selection.  | 
protected  boolean | 
isValidSelection()
Return true if current selection is valid input to the action, false otherwise.  | 
 void | 
selectionChanged(IAction act,
                 ISelection selection)
Notifies this action delegate that the selection in the workbench has changed.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final String copyright
| Constructor Detail | 
|---|
public SearchMainEntryPointActionDelegate()
| Method Detail | 
|---|
public void selectionChanged(IAction act,
                             ISelection selection)
act - The action proxy that handles presentation portion of the
                action.selection - The current selection, or null if there is
                   no selection.protected boolean isValidSelection()
protected void doRun(IProgressMonitor progressMonitor)
protected EditPart getEditPartFor(View view)
protected List<MainEntryPoint> getMainEntryPoints(SourceContainer srcContainer)
srcContainer - the source container where the main entry points to be searched from
protected List<SourceContainer> getOperationSet()
protected List<SourceContainer> addAllVisibleSourceContainers()
protected List getSelectedObjects()
protected ApplicationModelEditPart getApplicationModelEditPart()
  | 
Rational Developer for Power Systems Software V7.6  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||