public interface IUMLUIHelper
| Modifier and Type | Method and Description |
|---|---|
java.util.List<org.eclipse.emf.ecore.EObject> |
getSelectedElements()
Gets the UML and/or Notation elements that can be inferred from the
selection in the active workbench window, editor or view
|
java.util.List<org.eclipse.emf.ecore.EObject> |
getSelectedElements(org.eclipse.gmf.runtime.notation.Diagram diagram)
Returns the list of views selected in the specified
diagram. |
java.util.List<org.eclipse.emf.ecore.EObject> |
getSelectedElements(java.lang.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(org.eclipse.gmf.runtime.notation.Diagram diagram,
java.util.List<? extends org.eclipse.emf.ecore.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(java.util.List<? extends org.eclipse.gmf.runtime.notation.View> views)
Selects a list of edit parts corresponding to a list of views in the
currently active workbench window
|
void |
setSelectedElements(java.lang.String viewId,
java.util.List<? extends org.eclipse.emf.ecore.EObject> elements)
Selects the specified UML and/or notation elements in a given view
|
java.util.List<org.eclipse.emf.ecore.EObject> getSelectedElements()
java.util.List<org.eclipse.emf.ecore.EObject> getSelectedElements(java.lang.String viewId)
viewIdviewId - The ID of the view to retrieve selection fromjava.lang.IllegalArgumentException - viewId is an empty stringjava.lang.NullPointerException - viewId is nulljava.util.List<org.eclipse.emf.ecore.EObject> getSelectedElements(org.eclipse.gmf.runtime.notation.Diagram diagram)
diagram.diagram - The diagram to get the selection forvoid setSelectedElements(java.lang.String viewId,
java.util.List<? extends org.eclipse.emf.ecore.EObject> elements)
viewId - The ID of the view to set selection toelements - The UML and/or Notation elements to select in the specified
viewjava.lang.IllegalArgumentException - viewId is an empty stringjava.lang.NullPointerException - viewId is null
elements
is nullvoid setSelectedElements(java.util.List<? extends org.eclipse.gmf.runtime.notation.View> views)
views - A list of views to selectvoid setSelectedElements(org.eclipse.gmf.runtime.notation.Diagram diagram,
java.util.List<? extends org.eclipse.emf.ecore.EObject> elements)
diagram - The diagram to set the selection toelements - The UML and/or Notation elements to select in the specified
diagram