[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Enablement problems for actions within a popupMenu

Hi!

I added a viewerContribution to the extension point
"org.eclipse.ui.popupMenus". There, I have an action that loooks like this:

<action id="com.heiler.ppm.cms.ui.actions.add" label="%AddPageAction.label"
menubarPath="edit">
  <class
class="com.heiler.ppm.cms.ui.actions.GenericCommandActionDelegate">
    <parameter name="commandId"
value="com.heiler.ppm.cms.ui.command.page.add" />
  </class>
  <enablement>
    <objectState name="modelType" value="cms_link" />
  </enablement>
</action>


I added an adapter for IActionFilter in my AdapterFactory, but it never
gets called! I know my adapter stuff works, because my IPropertySource gets
displayed just nicely. I registered the adapter with my model and with my
view, but whithout success. Why is my IActionFilter not called?

Any ideas?

Thanks a lot!

Michael Böckling