|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Utilities to retrieve UML and notation elements from selection
Method Summary | |
List |
getSelectedElements()
Gets the UML and/or Notation elements that can be inferred from the selection in the active workbench window, editor or view |
List |
getSelectedElements(Diagram diagram)
Returns the list of views selected in the diagramed specified by diagram |
List |
getSelectedElements(String viewId)
Gets the UML and/or Notation elements that can be inferred from the selection in the view with having the ID specified by viewId |
void |
setSelectedElements(Diagram diagram,
List elements)
Selects a list of editparts correspending to a list of elements in a given diagram in the currently active workbench window |
void |
setSelectedElements(List views)
Selects a list of editparts correspending to a list of views in the currently active workbench window |
void |
setSelectedElements(String viewId,
List elements)
Selects the specified UML and/or notation elements in a given view |
Method Detail |
public List getSelectedElements()
public List getSelectedElements(String viewId)
viewId
viewId
- The ID of the view to retrieve selection from
IllegalArgumentException
- viewId
is an empty string
NullPointerException
- viewId
is null
public List getSelectedElements(Diagram diagram)
diagram
diagram
- The diagram to get the selection for
public void setSelectedElements(String viewId, List elements)
viewId
- The ID of the view to set selection toelements
- The UML and/or Notation elements to select in the specified
view
IllegalArgumentException
- viewId
is an empty string
NullPointerException
- viewId
is null
elements
is null
public void setSelectedElements(List views)
views
- A list of views to selectpublic void setSelectedElements(Diagram diagram, List elements)
diagram
- The diagram to set the selection toelements
- The UML and/or Notation elements to select in the specified
diagram
|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2004. All rights reserved.