Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Contributing a ui, when building or refreshing
Contributing a ui, when building or refreshing [message #542618] Fri, 25 June 2010 13:05 Go to next message
Markus Oley is currently offline Markus OleyFriend
Messages: 254
Registered: July 2009
Location: Germany
Senior Member
Hi,

I want to implement a tooltip which comes along everytime something is build and the user has to wait.

So I have defined a plugin and wanted to register a IResourceChangedListener at the workspace. But if I instanciate my Shell I get a Invalid thread access.

What's the best way to contribute my Shell?

Best regards
Markus
Re: Contributing a ui, when building or refreshing [message #542655 is a reply to message #542618] Fri, 25 June 2010 14:31 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You would 1) use a display.asyncExec(*)/syncExec(*) to post a runnable
to the UI thread and 2) you can use org.eclipse.jface.window.ToolTip to
show your tooltip. Look for subclasses of ToolTip.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
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


Re: Contributing a ui, when building or refreshing [message #543030 is a reply to message #542655] Mon, 28 June 2010 09:07 Go to previous message
Markus Oley is currently offline Markus OleyFriend
Messages: 254
Registered: July 2009
Location: Germany
Senior Member
Hi,

I took the first choice and it's working very well..

Thank you
Regards
Markus
Previous Topic:org.eclipse.platform.ide vs. org.eclipse.platform.sdk vs. org.eclipse.sdk.ide
Next Topic:Galileo - Helios migration
Goto Forum:
  


Current Time: Wed Nov 26 18:03:15 GMT 2014

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

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