Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » DatePickerCombo as CellEditor
DatePickerCombo as CellEditor [message #458915] Tue, 26 July 2005 11:41
Joos-Hendrik Böse is currently offline Joos-Hendrik BöseFriend
Messages: 1
Registered: July 2009
Junior Member

I'm trying to use the DatePickerCombo Widget of as CellEditor to
manipulate date values.

I derived my new class from CellEditor and implemented the needed
methods, this was quite simple and in fact everything seems to work
except that the DatePicker only shows up for a few milliseconds and
dissappears again :-/

Any Ideas?



This is the implementation of my class:


public class DateCellEditor extends CellEditor {

static Logger logger = Logger.getLogger(DateCellEditor.class);
private DatePickerCombo combo;

protected Control createControl(Composite parent) {
logger.debug("createControl called");
combo = new DatePickerCombo(parent, SWT.FLAT);
return combo;

protected Object doGetValue() {
return combo.getDate();

protected void doSetFocus() {

protected void doSetValue(Object value) {
Date newDate = (Date)value;

public LayoutData getLayoutData() {
LayoutData layoutData = super.getLayoutData();
layoutData.minimumWidth = 40;
return layoutData;


Previous Topic:How to detect MouseEvent on Text Editor?
Next Topic:Add drag and drop on a TableViewer
Goto Forum:

Current Time: Thu Oct 22 17:23:44 GMT 2020

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

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

Back to the top