Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » re-creating a closed Part
re-creating a closed Part [message #1431514] Thu, 25 September 2014 16:01
Eclipse UserFriend
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.
Previous Topic:Setting the contribution URI for an MCompositePart
Next Topic:PartDescriptor in Fragment
Goto Forum:
  


Current Time: Sun Jul 13 13:32:36 EDT 2025

Powered by FUDForum. Page generated in 0.03332 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top