Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » re-creating a closed Part
re-creating a closed Part [message #1431514] Thu, 25 September 2014 20:01
Ralf Heydenreich is currently offline Ralf HeydenreichFriend
Messages: 225
Registered: July 2009
Senior Member
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("");

// perhaps this only works for PartDescriptors?

// tried to re-create the Part, but
// it is null

I'd be glad if anyone could give me a hint.

Previous Topic:Setting the contribution URI for an MCompositePart
Next Topic:PartDescriptor in Fragment
Goto Forum:

Current Time: Mon Mar 08 19:17:30 GMT 2021

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

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

Back to the top