Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Metawidget has added SWT support

Zhong,

Yes, I have seen XWT, but Metawidget and XWT have quite different
philosophies.

XWT appears to be an attempt to make it easier to code your UI, by using
declarative XML rather than imperative Java code. But Metawidget would
rather you didn't do either! Instead, your UI can be generated from
artifacts already present in your codebase (JavaBean properties, annotations
etc).

Of course, you cannot generate an entire UI this way. Metawidget only tries
to do the 'form' bit. Everything 'around' the form is still up to you. So
XWT can be complementary here. Potentially you could do:

<Shell xmlns="http://www.eclipse.org/xwt/presentation";
    xmlns:x="http://www.eclipse.org/xwt";
    x:Class="ui.EventHandler">
    <Shell.layout>
       <Metawidget/>
    </Shell.layout>
    <Button text="Click Me!" SelectionEvent="clickButton">
    </Button>
</Shell>

(ie. use Metawidget for the form bit, XWT for everything else).

One of the big problems with coding your UI, even if you do it
declaratively, is you have to duplicate a bunch of business property names
and types and constraints and make sure they exactly match their definition
in the back end. Metawidget tries to avoid this.

Looking forward to your further thoughts,

Regards,

Richard.

-- 
View this message in context: http://old.nabble.com/Metawidget-has-added-SWT-support-tp28431688p28442667.html
Sent from the Eclipse Platform - swt mailing list archive at Nabble.com.



Back to the top