Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Need help using 'adapt' in core expression
Need help using 'adapt' in core expression [message #574961] Fri, 01 August 2008 03:41
Craig Foote is currently offline Craig FooteFriend
Messages: 217
Registered: July 2009
Senior Member
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
Previous Topic:Need help using 'adapt' in core expression
Next Topic:PDE doesn't recognize dropins folder in 3.4 target (p2)
Goto Forum:
  


Current Time: Sat Apr 27 03:25:48 GMT 2024

Powered by FUDForum. Page generated in 0.02710 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top