hi
I'm new to eclipse e4.
I Have a stack to which I'm dinamically adding parts like this:
public void openProgram(String prog) {
MPart part = MBasicFactory.INSTANCE.createPart();
part.setLabel(prog);
part.setCloseable(true);
part.setContributionURI("platform:/plugin/ch.inteco.wegas/ch.inteco.wegas.app.ProgramView");
List<MPartStack> stacks = modelService.findElements(application, null, MPartStack.class, null);
stacks.get(1).getChildren().add(part);
partService.showPart(part, PartState.ACTIVATE);
}
Is there a possibility to pass a parameter to the ProgramView class, or maybe injection of a context? It should be available upon creation of the ProgramView part.
Regards and Thank you
Severin