Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [e4-dev] Dynamic Eclipse 4 with Clojure language

Hi Laurent,


On Fri, Dec 13, 2013 at 9:02 AM, Laurent PETIT <laurent.petit@xxxxxxxxx> wrote:
This lets room for MKeybinding, MHandler, MCommand. A method like findByTags(theApp, MHandler.class, List<String> tags) would work for the first part of my usecase.

I would expect that we would provide a more generic version of org.eclipse.e4.ui.workbench.modeling.EModelService.findElements(MUIElement, String, Class<T>, List<String>, int)

Something that could be used:

List<MHandler> elements  = service.find(root, null, MHandler.class, tags, 0);


 
But I would still be out of luck concerning the second part of my use case: removing the MHandler instance from its parent MHandlerContainer.

If we have a way to provide a parent, I think that we'd probably expose another EModelService method:

Object parent = service.getParent(handlerModel);

Later,
PW

--
Paul Webster
Hi floor.  Make me a sammich! - GIR

Attachment: graycol.gif
Description: GIF image

Attachment: ecblank.gif
Description: GIF image


Back to the top