I have the folllowing code, where I am looking for a PartStack with a given ID.
Named Injection doesnt work here, but the finding works. Why?
private static final String STACKID = "rcp.plugin.partstack.main";
@Inject
EModelService eModelService;
@Inject
MApplication mApplication;
// @Inject
// @Named(STACKID) //doesn't work - why?
@Execute
public void execute() {
// MPartStack mainStack = eModelService.findElements(mApplication, STACKID, MPartStack.class, null).get(0);
MPartStack mainStack = (MPartStack) eModelService.find(STACKID, mApplication);