Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Table Double Click another view has to Change
Table Double Click another view has to Change [message #634534] Fri, 22 October 2010 06:57 Go to next message
ash is currently offline ashFriend
Messages: 142
Registered: July 2010
Senior Member
Hi,

Can any one tell how to implemnt :

When user Double Click the TableViewer in one View (Source view)
another view shld update based the on Source View only on double Click

Thanks
Ashok
Re: Table Double Click another view has to Change [message #634612 is a reply to message #634534] Fri, 22 October 2010 12:42 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

you'll have to supply a double click listener (there's an add in the API).

You'll have to wire up the views yourself. You can find other open
views from the getSite().getPage()

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


Re: Table Double Click another view has to Change [message #634614 is a reply to message #634612] Fri, 22 October 2010 12:40 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Another convenient method is to attach an IOpenListener which also
reacts when pressing the Carriage Return on an item.

Tom

Am 22.10.10 14:42, schrieb Paul Webster:
> you'll have to supply a double click listener (there's an add in the API).
>
> You'll have to wire up the views yourself. You can find other open
> views from the getSite().getPage()
>
> PW
>
>
Re: Table Double Click another view has to Change [message #634703 is a reply to message #634534] Fri, 22 October 2010 19:06 Go to previous messageGo to next message
ash is currently offline ashFriend
Messages: 142
Registered: July 2010
Senior Member
Can one give me the code snipphet plz
Re: Table Double Click another view has to Change [message #635020 is a reply to message #634703] Mon, 25 October 2010 12:31 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

ashok_kumar_rr@yahoo.com wrote:
> Can one give me the code snipphet plz

No, but you can read the javadoc for your viewer (find the double-click
listener and IOpenListener) and also read the API/javadoc for
IWorkbenchPage to find your view.

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:Eclipse RCP
Next Topic:GradLayout set first two columns equal width to last two columns
Goto Forum:
  


Current Time: Thu Apr 18 19:50:30 GMT 2024

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

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

Back to the top