I'm creating one RCP in Eclipse 4.2. In my RCP I have 3 perspective.
I'm creating one part at run-time and adding it in perspective like following.
Mpart part = .... ;
List<MPartStack> stacks = modelService.findElements(application, null, MPartStack.class, null);
But the problem is its added view in current opened perspective so if you switch perspective to other this view will not be shown there which is correct because i'm just add it to 1st stack.
But My requirement is it should be added in every perspective so if i switch to other perspective it should be there.
I'm getting List of MPerspective like following:
MWindow l = application.getChildren().get(0);
MPerspectiveStack stack = (MPerspectiveStack) l.getChildren().get(0);
List<MPerspective> perspectiveList = stack.getChildren();
But don't know how to add it.
So how to add Part in each perspective.?
And is there is better way to find Perspective list apart from what i'm doing.