Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[imp-dev] ILanguageActionContributor

Hi guys,

I'm implementing language features here at CWI for ASF+SDF and we'd love to have nested menu's, and also the possibility to add toolbar items and such.
Currently, we are using ILanguageActionContributor which can contribute a flat list of actions to the editor popup menu. What we need (at least) is to be able
to add arbitrarily nested menus. See also https://bugs.eclipse.org/bugs/show_bug.cgi?id=230786

[intermezzo] we are replacing the old Meta-Environment way of declaring nested menu's as ATerms by a plugin.xml schema for nested menu's. A menu is defined
by a nested XML _expression_ with leaf tags that show the final menu options and what needs to be done for them (e.g. a reference to an IAction class,
or in our case a reference to a ToolBus process).
[end]

What is the best way to go:
  a) I adapt the code in Universal Editor and ILanguageContributor such that ILanguageContributors can create submenus, and show the patches to you (or commit right away)
  b) I incorporate the XML schema for nested menus into IMP and adapt the Universal Editor to implement this, and show the patches to you

Or something in between, or something else. I'm open to suggestions. I consider this a nice and simple project on which we can try-out our remote collaboration skills ;-)

Cheers,

Jurgen

Back to the top