re-creating a closed Part [message #1431514] |
Thu, 25 September 2014 16:01 |
Eclipse User |
|
|
|
Hi all,
I've a Part inside a PartStack. If I close this Part I can't re-acitvate
it. What I've tried in Handler class:
myStack.setToBeRendered(true); // because its initially hidden
myStack.setVisible(true); // dito
// myPart is the Part inside the PartStack and was found through
// looking up the partService.getParts();
// this works for the first time
if(myPart != null) {
partService.showPart(myPart, PartState.ACTIVATE);
} else {
// this is the case if I closed the Part
myPart = partService.createPart("part:my.own.part.id");
// perhaps this only works for PartDescriptors?
// tried to re-create the Part, but
// it is null
myPart.setToBeRendered(true);
myPart.setContext(application.getContext());
}
I'd be glad if anyone could give me a hint.
TIA,
Ralf.
|
|
|
Powered by
FUDForum. Page generated in 0.03332 seconds