Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320871 - [widget] create a datetime picker widget for EDate types
Summary: [widget] create a datetime picker widget for EDate types
Status: CLOSED WONTFIX
Alias: None
Product: EEF
Classification: Modeling
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 enhancement
Target Milestone: ---   Edit
Assignee: EEF Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-26 04:17 EDT by Bouchet Stéphane CLA
Modified: 2016-05-30 11:04 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bouchet Stéphane CLA 2010-07-26 04:17:01 EDT
hi,

a simple widget could be created for date time datatypes, that should handle date times more friendly.

example : 


new ExtendedDialogCellEditor(composite, getEditLabelProvider()) {
  protected Object openDialogBox(Control cellEditorWindow) {
    final DateTime dateTime[] = new DateTime[1];
    final Date[] date = new Date[1];
    Dialog d = new Dialog(cellEditorWindow.getShell()) {
      protected Control createDialogArea(Composite parent) {
	Composite dialogArea = (Composite)super.createDialogArea(parent);
	dateTime[0] = new DateTime(dialogArea, SWT.CALENDAR);
	dateTime[0].addSelectionListener(new SelectionAdapter() {
	 public void widgetSelected(SelectionEvent e) {
	  Date dateValue = new Date();
	  dateValue.setYear(dateTime[0].getYear());
	  dateValue.setMonth(dateTime[0].getMonth());
	  dateValue.setDate(dateTime[0].getDay());
	  date[0] = dateValue;
	}
       });
     return dialogArea;
     }
    };
    d.setBlockOnOpen(true);
    d.open();
};
Comment 1 Stephane Begaudeau CLA 2016-05-30 11:04:39 EDT
The Eclipse EEF team has worked over the past few months on a brand new runtime using a reflective approach which can be used more easily with Eclipse Sirius. Since we do not plan to continue to work on the old runtime and its code generation approach, I will close this issue for now.

If you want to contribute, you can reopen this issue and submit a contribution to the project thanks to our Gerrit: https://git.eclipse.org/r/#/admin/projects/eef/org.eclipse.eef