Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Can't reopen a persisted closed part!(Persist states in e4)
Can't reopen a persisted closed part! [message #638361] Thu, 11 November 2010 02:27 Go to next message
AppleJus Mising name is currently offline AppleJus Mising name
Messages: 46
Registered: July 2010
Member
Hi there,

I am kind of a newbie in e4, I hope you can help me out.
I had an app window with a sash that has two parts. I made one of the parts closeable form the e4xmi workbench model editor, then I closed that part when I ran my app.
Now I can't figure a way to get it back! (even if I make remove the "closeable" check again)

I feel the solution may lie in the Lifecycle class, or in the MDirtyable interface... tried to play with those a little but still no result... It is getting really frustrating to get my part back!!
I want my part back!!

Thanks for anyone who can help me out! Really!

Re: Can't reopen a persisted closed part! [message #638363 is a reply to message #638361] Thu, 11 November 2010 02:54 Go to previous messageGo to next message
AppleJus Mising name is currently offline AppleJus Mising name
Messages: 46
Registered: July 2010
Member
No Real Name wrote on Wed, 10 November 2010 21:27
Hi there,

I am kind of a newbie in e4, I hope you can help me out.
I had an app window with a sash that has two parts. I made one of the parts closeable form the e4xmi workbench model editor, then I closed that part when I ran my app.
Now I can't figure a way to get it back! (even if I make remove the "closeable" check again)

I feel the solution may lie in the Lifecycle class, or in the MDirtyable interface... tried to play with those a little but still no result... It is getting really frustrating to get my part back!!
I want my part back!!

Thanks for anyone who can help me out! Really!





Well I guess I solved my problem by removingt he part and adding a new one... But if anyone has an answer to the above (like opening a part programatically), that would be very helpful too!
Re: Can't reopen a persisted closed part! [message #638391 is a reply to message #638363] Thu, 11 November 2010 07:40 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5403
Registered: July 2009
Senior Member
No - your problem is that e4 restores the workbench state like you left
it the last time the application was run.

If you don't want to have such a save restore you need to remove the so
named deltas. If you search this list you'll find a reply from me
explain the command line options you can use to do so.

Normally if a part can come and go you are not only directly adding the
Part but use a PartDescriptor which is e.g. shown in a Show View menu
and allows you to restore the Part once closed.

Tom

Am 11.11.10 03:54, schrieb ielkhoury@gmail.com:
> No Real Name wrote on Wed, 10 November 2010 21:27
>> Hi there,
>>
>> I am kind of a newbie in e4, I hope you can help me out.
>> I had an app window with a sash that has two parts. I made one of the
>> parts closeable form the e4xmi workbench model editor, then I closed
>> that part when I ran my app.
>> Now I can't figure a way to get it back! (even if I make remove the
>> "closeable" check again)
>>
>> I feel the solution may lie in the Lifecycle class, or in the
>> MDirtyable interface... tried to play with those a little but still no
>> result... It is getting really frustrating to get my part back!!
>> I want my part back!!
>>
>> Thanks for anyone who can help me out! Really!
>
>
>
> Well I guess I solved my problem by removingt he part and adding a new
> one... But if anyone has an answer to the above (like opening a part
> programatically), that would be very helpful too!
Re: Can't reopen a persisted closed part! [message #638466 is a reply to message #638361] Thu, 11 November 2010 12:14 Go to previous messageGo to next message
Remy Suen is currently offline Remy Suen
Messages: 462
Registered: July 2009
Senior Member
If you want to show/hide parts, use the part service.
http://wiki.eclipse.org/E4/EAS/Part_Service
Re: Can't reopen a persisted closed part! [message #639567 is a reply to message #638361] Tue, 16 November 2010 22:46 Go to previous message
AppleJus Mising name is currently offline AppleJus Mising name
Messages: 46
Registered: July 2010
Member
Thanks all for your help!
Previous Topic:Wizard with xwt
Next Topic:Job API for Eclipse e4
Goto Forum:
  


Current Time: Wed Oct 22 00:17:59 GMT 2014

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

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