Model Action Factories

Identifier:
com.ps.consul.eclipse.ui.ModelActionFactories

Since:
2.4.2

Description:
The extension point allows to dynamically add context menu items and sub menus to the editors context menu.

There is to provide a class of type com.ps.consul.eclipse.ui.editors.actionfactories.IModelActionFactory.

You have to implement isApplicableFor to specify whether to show menu items in a given
menu and getMenuActions to return depending on the selection in the editor the actions to place in the menu.

Additionally getPriority allows you to influence the order of menu items.

Configuration Markup:

<!ELEMENT extension (factory)+>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>

Extension point for additional model action factories.



<!ELEMENT factory EMPTY>

<!ATTLIST factory

class CDATA #REQUIRED>

An additional model action factory.



Examples:
<extension point="com.ps.consul.eclipse.ui.ModelActionFactories">
   <factory class="[the factory class]"/>
</extension>