Need help using 'adapt' in core expression [message #14799] |
Fri, 01 August 2008 03:41 |
|
Cross-posting because I got no reply in eclipse.newcomer. Hoping someone
here can shed some light for me.
I have a plugin, 'plugin-A' which declares an adapterFactory and a menu
contribution. The latter uses a visibleWhen core expression that checks
count=1 and iterates to check if the selected object can 'adapt' to the
desired type. I have a second plugin, 'plugin-B', where I want my menu
contribution to appear when I right-click on an object that can be adapted
to the desired type. The problem is the expression returns true only if
the contributing plugin is loaded, i.e. the menu contribution appears only
if I open the view contributed by plugin-A. I assume doing that loads the
plugin's classes including the adapterFactory which subsequently can be
used in the expression. I expected that declaring the adapterFactory meant
it could be used in core expressions without needing to load the plugin.
Was I wrong? What's the solution here? I don't want to load all my plugins
on startup to enable their adapterFactories and produce their menu items.
Thanks,
Craig
|
|
|
Powered by
FUDForum. Page generated in 0.04688 seconds