|
|
|
|
|
|
|
|
|
Re: NPE when closing my Graphiti editor... [message #1419387 is a reply to message #1419311] |
Mon, 08 September 2014 14:29 |
Laurent Le Moux Messages: 184 Registered: September 2011 |
Senior Member |
|
|
Hi,
I'm not sure I can help because my RCP application has only one perspective so I don't face any switching issue.
Moreover, my diagram is displayed in an editor. Not a view.
Nevertheless, I would try the same strategy if you're facing exactly the same issue.
I guess you can register your view as a part listener as well, to set a flag when the view gets deactivated on perspective change.
Then, I'm not sure what happens in your case.
If the NPE occurs in yourView.selectionChanged, I would indeed try the same code in your view.
If, however the NPE occurs in the perspective class (something like myPerspective.selectionChanged ?), I guess you'll have to first look for your view in the perspective before you can read its "isViewDeactivated" flag somehow.
Regards,
Laurent
|
|
|
Powered by
FUDForum. Page generated in 0.03424 seconds