uqbar-project / arena

MMVC framework
http://arena.uqbar-project.org/
4 stars 2 forks source link

New Widget: Create a Date control with a calendar #31

Closed fdodino closed 8 years ago

fdodino commented 8 years ago

It should work exactly as SWT widget

fdodino commented 8 years ago

Uhm... SWTObservables does not support non-Text widgets:

    public static ISWTObservableValue observeText(Control control, int event) {
        if (control instanceof Text) {
            return new TextObservableValue((Text) control, event);
        }

        throw new IllegalArgumentException(
                "Widget [" + control.getClass().getName() + "] is not supported."); //$NON-NLS-1$//$NON-NLS-2$
    }

So, I'm canceling this issue, since I cannot override this behavior without too much effort.