Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to delete a cell in a table??(Eclipse rcp table )
How to delete a cell in a table?? [message #893159] Mon, 02 July 2012 23:19 Go to next message
Tux Pengy is currently offline Tux PengyFriend
Messages: 6
Registered: July 2012
Junior Member
Hello RCP community,

This is my first RCP Project,
I succeded to view a table which views each person's name & his brothers name if existed.
The Headers are Person, Bro#1 , Bro#2 .......Bro#10

What I want to do is to enable cell selection and to add a command to delete a certain brother...

For Example:

Person Bro1 Bro2 Bro3 Bro4 Bro5
John Peter Adam Ryan Bryan Empty
Tony John Robert Empty Empty Empty

I want to select Adam & delete it ( It ll easy be removed from the model (Person.removeBrother () , then refresh the table )

But it seems that I can only select the first column





Best Regards,
Weesh
Re: How to delete a cell in a table?? [message #895960 is a reply to message #893159] Mon, 16 July 2012 16:26 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi Weesh,

You need to use a TableCursor, for an example see
http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet96.java
..

Grant

On 7/2/2012 7:19 PM, Tux Pengy wrote:
> Hello RCP community,
>
> This is my first RCP Project,
> I succeded to view a table which views each person's name & his brothers
> name if existed.
> The Headers are Person, Bro#1 , Bro#2 .......Bro#10
>
> What I want to do is to enable cell selection and to add a command to
> delete a certain brother...
>
> For Example:
>
> Person Bro1 Bro2 Bro3 Bro4 Bro5
> John Peter Adam Ryan Bryan Empty
> Tony John Robert Empty Empty Empty
>
> I want to select Adam & delete it ( It ll easy be removed from the model
> (Person.removeBrother () , then refresh the table )
>
> But it seems that I can only select the first column
>
>
>
>
>
> Best Regards,
> Weesh
Previous Topic:Tooltip for WorkbenchWindowControlContribution Items
Next Topic:Call to a command defined in another plugin
Goto Forum:
  


Current Time: Wed Apr 24 18:54:21 GMT 2024

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

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

Back to the top