Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » [SOLVED] How to wait until Pages, Editors, etc. are created?
icon14.gif  [SOLVED] How to wait until Pages, Editors, etc. are created? [message #657019] Tue, 01 March 2011 11:45 Go to next message
Kivanc Muslu is currently offline Kivanc MusluFriend
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

Re: How to wait until Pages, Editors, etc. are created? [message #657066 is a reply to message #657019] Tue, 01 March 2011 13:58 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You want the eclipse.platform (IDE) or eclipse.platform.rcp
newsgroups/forums.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:How to create a *.jar file from Eclipse WITHOUT Ant and Maven?
Next Topic:Why my eclipse could not new a web project?
Goto Forum:
  


Current Time: Thu Apr 25 23:49:43 GMT 2024

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

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

Back to the top