[SOLVED] How to wait until Pages, Editors, etc. are created? [message #657019] |
Tue, 01 March 2011 11:45 |
Kivanc Muslu Messages: 153 Registered: November 2010 |
Senior Member |
|
|
Edit: For people interested in with the solution, please go: http://www.eclipse.org/forums/index.php?t=msg&th=205393& amp;unread=1&S=bfa7762def7265cd3a6431447f55063b
Hi,
I am trying to write a plug-in that adds an IPartListener2 to the current active page of the benchmark as soon as it loads by the following call:
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().addPartListener(new SynchronizerPartListener());
My problem is that, it seems like when this method is called (i.e., my plug-in is created getActivePage() returns null because the page is not created yet.
Is there a way to tell my plug-in to postpone its load just after that particular page is loaded?
Thanks in advance, best regards,
[Updated on: Thu, 03 March 2011 11:23] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03141 seconds