Element Selection Providers Extension Point

org.eclipse.gmf.runtime.common.ui.services.elementSelection

This extension point facilitates the configuration of providers for the element selection service (org.eclipse.gmf.runtime.common.ui.services.elementselection.ElementSelectionService). Using this extension point, providers are registered to provide a list of element for the element selection composite and element selection dialog.

<!ELEMENT extension (ElementSelectionProvider)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT ElementSelectionProvider (Priority , Policy?)>

<!ATTLIST ElementSelectionProvider

class CDATA #REQUIRED>


<!ELEMENT Priority EMPTY>

<!ATTLIST Priority

name (Lowest|Low|Medium|High|Highest) >


<!ELEMENT Policy EMPTY>

<!ATTLIST Policy

class CDATA #REQUIRED>


Following is an example of a element selection provider extension:

   

<extension id=

"elementSelectionProviders"

name=

"%ext.elementSelectionProviders"

point=

"org.eclipse.gmf.runtime.common.ui.services.elementSelectionProviders"

>

<elementSelectionProvider class=

"org.eclipse.uml.ui.internal.providers.elementselection.UMLElementSelectionProvider"

>

<Priority name=

"Highest"

>

</Priority>

</elementSelectionProvider>

</extension>

The value of the class attribute must represent a subclass of org.eclipse.gmf.runtime.common.core.service.AbstractProvider that implements org.eclipse.gmf.runtime.common.ui.services.elementselection.AbstractElementSelectionProvider.