Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » DateTime control in CellEditor Example(DateTime control in CellEditor Example)
DateTime control in CellEditor Example [message #498492] Tue, 17 November 2009 08:56 Go to next message
No real name is currently offline No real nameFriend
Messages: 3
Registered: November 2009
Junior Member
Hi,

I am fairly new to Eclipse SWT, JFace. I need to put a DateTime control in a CellEditor , and I am using TableViewer , could anybody point to an example. I could not find any so far .

Thanks,
Partha

[Updated on: Tue, 17 November 2009 09:15]

Report message to a moderator

Re: DateTime control in CellEditor Example [message #498652 is a reply to message #498492] Tue, 17 November 2009 21:35 Go to previous messageGo to next message
Mario Winterer is currently offline Mario WintererFriend
Messages: 136
Registered: July 2009
Senior Member
Hi!

Concerning cell editors in general, have a look at the jface snippets:
http://wiki.eclipse.org/index.php/JFaceSnippets (e.g.
Snippet034CellEditorPerRowNewAPI)
As there is no built-in jface cell editor for date/time values, you'll have
to subclass CellEditor and use either SWT's DateTime widget or the CDateTime
widget from nebula
( http://www.eclipse.org/nebula/widgets/cdatetime/cdatetime.ph p).

Mario

<partha.net@gmail.com> schrieb im Newsbeitrag
news:hdtofc$sds$1@build.eclipse.org...
> Hi,
>
> I am fairly new to Eclipse SWT, JFace. I need to put a DateTime control
> in a CellEditor , and I am using TableViewer , could anybody point to an
> example. I could find any so far .
>
> Thanks,
> Partha
Re: DateTime control in CellEditor Example [message #498700 is a reply to message #498652] Wed, 18 November 2009 09:17 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 3
Registered: November 2009
Junior Member
Hi ,

Exactly that code I am looking for, I mean where in the sub class of CellEditor I need to use SWT's DateTime widget and how, so that it would be fully functional. If any code snippet is available please provide a pointer to that so I could use it.

Thanks,
Partha
Re: DateTime control in CellEditor Example [message #498785 is a reply to message #498700] Wed, 18 November 2009 15:52 Go to previous message
Mario Winterer is currently offline Mario WintererFriend
Messages: 136
Registered: July 2009
Senior Member
Partha,

Have a look at:
http://dev.eclipse.org/newslists/news.eclipse.technology.neb ula/msg00148.html

They are using another date picker widget there, but the code can easily
be adopted to use the SWT built-in DateTime widget or the nebula
CDateTime widget.

(In fact, for a first success, it is sufficient to simply override the
four methods as shown in the link above).

Mario

partha.net@gmail.com schrieb:
> Hi ,
>
> Exactly that code I am looking for, I mean where in the sub class of
> CellEditor I need to use SWT's DateTime widget and how, so that it
> would be fully functional. If any code snippet is available please
> provide a pointer to that so I could use it.
>
> Thanks,
> Partha
Previous Topic:rcp application and editor ...
Next Topic:Inbuilt eclipse icons on the toolbar when run configuration is self set
Goto Forum:
  


Current Time: Thu Sep 26 03:36:40 GMT 2024

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

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

Back to the top