[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Table issue

dnise schrieb:
Shawn Spiars wrote:

eclipse.org

Hi Thanks you advice . but i can't find what i want .assume as follow it's a
table
------------------------------------
| column1 | column2 | column3 |
|-----------------------------------
| ff1 | ff2 | ff3 |
------------------------------------
| kk1 | kk2 | kk3 |
------------------------------------


we can select a row  when i click. we can use follow codes to get TableItem
TableItem [] tableItem=table.getSelection();
we can add some Listeners for this tableItem. But it doesn't complete what i
want.    we can select a row when i click on ff1 ãff2ãff3ãkk1ãkk2 or kk3.
the function which i want to implement is that trigger some event when i
click on ff3 or kk3  but not ff1,ff2,kk1,kk2.
can i implement it?


What should happen if you click ff3? Should a dialog fireup, ... ? You could use JFace-Viewers who have a concept of CellEditors, Cell-Navigation, ... [1] or use the solution from Shawn where you listen to Mouse-Events.


Tom

[1]http://wiki.eclipse.org/JFaceSnippets

--
B e s t S o l u t i o n . at
--------------------------------------------------------------------
Tom Schindl                                          JFace-Committer
--------------------------------------------------------------------