Hi,
I want to add an editor action to my gmf editor and I found
contributionItemProviders extension point can be used for this purpose.
However I tried to mimic logic example without success, the
"CustomContributionItemProvider" class's createTool() method was never
get called and of course no editor action showed up.
I listed the plugin.xml fragment below, anyone can give some suggestion?
<extension
id="contribution1"
name="contribution1"
point="org.eclipse.gmf.runtime.common.ui.services.action.contributionItemProviders">
<contributionItemProvider
class="com.my.CustomContributionItemProvider">
<Priority
name="Low">
</Priority>
<partContribution
class="com.ibm.crl.bo.rule.diagram.part.RuleDiagramEditor">
<partAction
id="exampleAction"
menubarPath="/file/print"
toolbarPath="/">
</partAction>
</partContribution>
</contributionItemProvider>
</extension>
Regards,
Hao