Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to show view in Action.run( )
How to show view in Action.run( ) [message #327986] Mon, 12 May 2008 04:39 Go to next message
Ben Smith is currently offline Ben SmithFriend
Messages: 14
Registered: July 2009
Junior Member
Hi Alles,

I am new and wondering whether I could get help here. I have an Action.
I want that by Clicking it would cause several instances of a View to
show. However, using IWorkbenchPage.showView(...) did not show the view
content (e.g., a label or an image). The program seemed to skip it and
continue to run the code after the showView() statement (e.g.,
System.out.println(...) or Thread.sleep(...)). If I inserted a
MessageBox after the showView() statement. The IWorkbenchPage.showView()
then displayed the view. Why do I need a MessageBox to have the view
shown? Can I show the view without the MessageBox? Any help please?

Ben
Re: How to show view in Action.run( ) [message #328658 is a reply to message #327986] Fri, 30 May 2008 15:13 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Depending on what you put there ... i.e. if you did a showView(*) and
then a Thread.sleep(*), it will never show up. You've blocked the UI
thread!

you would need to showView(*) and then exit your run(*) method.

--
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/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Previous Topic:Determining when the project was refreshed the last time
Next Topic:Expressions definition iterate/or condition
Goto Forum:
  


Current Time: Tue Jul 23 10:21:22 GMT 2024

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

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

Back to the top