Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How can I save custom state in multi perspectives?
How can I save custom state in multi perspectives? [message #715944] Tue, 16 August 2011 05:01 Go to next message
dean3514 is currently offline dean3514Friend
Messages: 10
Registered: July 2011
Junior Member
Thanks for your attention and help.

I'm sorry for my poor English.

I'm a newbie in eclipse rcp. I wonder how can I ask my question.

I could not find the reason although I had investigated in eclipse source.
I'd appreciate some help.

Out system consists of a few plugins.
And each plugin links one perspective.

In other words, the system has a few perspective.
When user click each perspective, then some view is opened in plugin.

This problem is about SAVE_PERSPECTIVE global action.
I think that it is easy to use the action because usage is very simple like below

ActionFactory.SAVE_PERSPECTIVE.create(window).run();

After code was executed, I can see SAVE dialog normally.
The perspective was also saved normally.

But, the other perspectives is malfunction except for current perspective.
(I think that Null pointer error is appeared)


How can I solve the problem..?
Thanks in advance.

Have nice day. (_ _)
Re: How can I save custom state in multi perspectives? [message #718354 is a reply to message #715944] Wed, 24 August 2011 04:57 Go to previous messageGo to next message
dean3514 is currently offline dean3514Friend
Messages: 10
Registered: July 2011
Junior Member
I tried to save perspective using only 1 perspective.
But same result was appeared.

I checked internal code in eclipse.
NPE occurred in WorkbenchPage class and I found some article about this.

www.eclipse.org/forums/index.php/t/206306/

My solution is also like that.
I defined new presentation factory and don't use coolbar.


So exception occurred when below code was executed :


if (mgr != null)
mgr.getControl2().setRedraw(false);


because mgr.getControl2() equals Null.

Finally, I found solution!!!


https
://bugs.eclipse.org/bugs/show_bug.cgi?id=347528

Thanks you very much. Dylan McReynolds!!!!

[Updated on: Wed, 24 August 2011 05:01]

Report message to a moderator

Re: How can I save custom state in multi perspectives? [message #718356 is a reply to message #715944] Wed, 24 August 2011 05:03 Go to previous message
dean3514 is currently offline dean3514Friend
Messages: 10
Registered: July 2011
Junior Member
I tried to save perspective using only 1 perspective.
But same result was appeared.

I checked internal code in eclipse.
NPE occurred in WorkbenchPage class and I found some article about this.

www.eclipse.org/forums/index.php/t/206306/

My solution is also like that.
I defined new presentation factory and don't use coolbar.


So exception occurred when below code was executed :


if (mgr != null)
mgr.getControl2().setRedraw(false);


because mgr.getControl2() equals Null.

Finally, I found solution!!!


https
://bugs.eclipse.org/bugs/show_bug.cgi?id=347528

Thanks you very much. Dylan McReynolds!!!!
Previous Topic:Help Contents in 3.6.2 / 3.7.0
Next Topic:Extend the Copy/Paste Command
Goto Forum:
  


Current Time: Fri Mar 29 15:33:09 GMT 2024

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

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

Back to the top