| PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage() [message #494644] |
Sun, 01 November 2009 11:52  |
Raffaele Gambelli Messages: 27 Registered: July 2009 |
Junior Member |
|
|
Hi all
I would like to know why sometimes active page is null and so I'm not able to call findView method...
In particular, I would like that some of my views in the same perspective registered as listner to another view for some property changing.
And so, in the createPartControl method of each listner view I call:
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().findView(....)
Then, if I close my rcp, when restart it, each view that does that call throws nullPointer because activePage is null.
In your opinion, which should be the exact initial moment to get active page for a view?
Thanks in advance and best regards
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01487 seconds