|
UML Modeling Layer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IUMLUIHelper
Utilities to retrieve UML and notation elements from selection
| Method Summary | |
|---|---|
List<EObject> |
getSelectedElements()
Gets the UML and/or Notation elements that can be inferred from the selection in the active workbench window, editor or view |
List<EObject> |
getSelectedElements(Diagram diagram)
Returns the list of views selected in the specified diagram. |
List<EObject> |
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<? extends EObject> elements)
Selects a list of edit parts corresponding to a list of elements in a given diagram in the currently active workbench window |
void |
setSelectedElements(List<? extends View> views)
Selects a list of edit parts corresponding to a list of views in the currently active workbench window |
void |
setSelectedElements(String viewId,
List<? extends EObject> elements)
Selects the specified UML and/or notation elements in a given view |
| Method Detail |
|---|
List<EObject> getSelectedElements()
List<EObject> getSelectedElements(String viewId)
viewId
viewId - The ID of the view to retrieve selection from
IllegalArgumentException - viewId is an empty string
NullPointerException - viewId is nullList<EObject> getSelectedElements(Diagram diagram)
diagram.
diagram - The diagram to get the selection for
void setSelectedElements(String viewId,
List<? extends EObject> 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 nullvoid setSelectedElements(List<? extends View> views)
views - A list of views to select
void setSelectedElements(Diagram diagram,
List<? extends EObject> elements)
diagram - The diagram to set the selection toelements - The UML and/or Notation elements to select in the specified
diagram
|
UML Modeling Layer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||