Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » eRCP » TableCellEditing in eRCP-eSWT-eJface
TableCellEditing in eRCP-eSWT-eJface [message #564138] Thu, 10 December 2009 04:38 Go to next message
pragun@imcsystemsuk.com is currently offline pragun@imcsystemsuk.com
Messages: 8
Registered: July 2009
Junior Member
Has anyone used TableCellEditing functionality in eRCP/eSWT/eJface application on mobile device ?

I found many TableCellEditing examples/tutorials but all are for RCP/SWT/Jface only. So I implemented one of it from http://www.eclipse.org/articles/Article-Table-viewer/table_v iewer.html The example is attached for your reference. I am really searching any good book/guide/tutorials in eRCP/eSWT/eJface application. Please tell me if you know any.

My application runs on very high configuration mobile device i.e. Symbol MC9090 which is widely used in warehouse business. I am using IBM J9 (Now IBM Lotus Expeditor) runtime environment on device and for the development, I am using Eclipse 3.2.2 (Provided by IBM Lotus Expeditor Toolkit)

Atatched example displays Table on my Mobile device screen but the Cell Editing is not working. It appears as if its 'Read-Only' table. Table Cell Selection Listener listens user selection of a particular cell and the logs do get printed in CellModifier class in canModify(..), getValue(..) and modify(..) methods. But the cell edit thing is not working.

Any sugestions much appreciated :)
Many thanks in advance.
Re: TableCellEditing in eRCP-eSWT-eJface [message #564209 is a reply to message #564138] Mon, 04 January 2010 13:28 Go to previous messageGo to next message
Mark Rogalski is currently offline Mark Rogalski
Messages: 201
Registered: July 2009
Senior Member
Windows Mobile does not support the editing of cells in a native Table
widget.
Your best bet is to capture the cell default selection and popup an editor
for the content. Then save the new value to the table when the pop-up is
closed.


<pragun@imcsystemsuk.com> wrote in message
news:hfqfie$it8$1@build.eclipse.org...
> Has anyone used TableCellEditing functionality in eRCP/eSWT/eJface
> application on mobile device ?
>
> I found many TableCellEditing examples/tutorials but all are for
> RCP/SWT/Jface only. So I implemented one of it from
> http://www.eclipse.org/articles/Article-Table-viewer/table_v iewer.html The
> example is attached for your reference. I am really searching any good
> book/guide/tutorials in eRCP/eSWT/eJface application. Please tell me if
> you know any.
>
> My application runs on very high configuration mobile device i.e. Symbol
> MC9090 which is widely used in warehouse business. I am using IBM J9 (Now
> IBM Lotus Expeditor) runtime environment on device and for the
> development, I am using Eclipse 3.2.2 (Provided by IBM Lotus Expeditor
> Toolkit)
>
> Atatched example displays Table on my Mobile device screen but the Cell
> Editing is not working. It appears as if its 'Read-Only' table. Table Cell
> Selection Listener listens user selection of a particular cell and the
> logs do get printed in CellModifier class in canModify(..), getValue(..)
> and modify(..) methods. But the cell edit thing is not working.
>
> Any sugestions much appreciated :) Many thanks in advance.
Re: TableCellEditing in eRCP-eSWT-eJface [message #564256 is a reply to message #564209] Thu, 07 January 2010 06:50 Go to previous message
pragun@imcsystemsuk.com is currently offline pragun@imcsystemsuk.com
Messages: 8
Registered: July 2009
Junior Member
Hi Mark,

Many thanks to you for your kind support.

Yes, you are absolutely right as I got IBM US L2/L3 developement support call suggestions that TableCellEditing is NOT supported in Windows Mobile operating system !!! So its not eRCP/eSWT/eJface jar files or Lotus Expeditor build which I thought earlier !!

Finally I made it working but not using TableCellEditor. I did it in slightly different way,
(1) I removed all code which was using Table ICellModifier interface
(2) Added Listener to Table "table.addListener(SWT.MouseUp, new Listener()" which handels Event when user selects any Table Row
(3) Open a dialog composite pop-up window and for new Text entery. This dialog pop-up window has update button so on clicking it, below operation gets performed
- start a new thread which updates database for this new user Text entry
- using "display.syncExec" and update ArrayList of Tableviewer and simply refresh Tableviewer to display updated ArrayList
- Close dialog pop-up window and Tableviewer shows updated Table Cell

I hope I am doing right things !
Previous Topic:TableCellEditing in eRCP-eSWT-eJface
Next Topic:Diagnose "no more handles" error in eSWT
Goto Forum:
  


Current Time: Wed Jul 23 22:30:34 EDT 2014

Powered by FUDForum. Page generated in 0.02057 seconds