Bug 174940

Summary: DateTime should issue modify events
Product: [Eclipse Project] Platform Reporter: Benjamin Pasero <bpasero>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: a_ilyin, bradleyjames, deus.anibal, devel, elias, frydzewski, steve_northover
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Benjamin Pasero CLA 2007-02-21 06:37:04 EST
Eclipse: 3.3 M5

Imo, DateTime should issue modify-events like a Spinner does too:

public class Main {
  public static void main(String[] args) {
    Display display = new Display();
    Shell shell = new Shell(display);
    shell.setLayout(new GridLayout(1, false));

    DateTime time = new DateTime(shell, SWT.DATE);
    time.addListener(SWT.Modify, new Listener() {
      public void handleEvent(Event event) {
        System.out.println("Ping");
      }
    });

    shell.open();
    while (!shell.isDisposed()) {
      if (!display.readAndDispatch()) {
        display.sleep();
      }
    }
  }
}
Comment 1 Eclipse Webmaster CLA 2019-09-06 16:06:35 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.