Hi Laurent,

sounds like we should add some API to support your use case. Please see
inline answers to Pauls comments.

Best regards, Lars


> 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);
>
>
If I understand Pauls comment correctly we should open a bug request for
this new method. @Laurent, can you please open a bug report for this
feature?



>
>>  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);
>

Again, if I understand Pauls comment correctly we should open a bug request
for this new method. @Laurent, can you please open a bug report for this
feature?


> Later,
> PW
>
> --
> Paul Webster
> Hi floor.  Make me a sammich! - GIR
>
> _______________________________________________
> e4-dev mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/e4-dev
>
>
_______________________________________________
e4-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/e4-dev

Reply via email to