Hi Laurent,

On Fri, Dec 13, 2013 at 9:02 AM, Laurent PETIT <[email protected]>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>>

<<attachment: ecblank.gif>>

_______________________________________________
e4-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/e4-dev

Reply via email to