[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: Is SWT in MVC architecture?

It is the minimal API on top of the OS such that that API can be ported to multiple platforms. Models and controlleres are not part of SWT.  You must supply a model and its notificatin system.  JFace includes "controllers" called Viewers which allows you to talk to the widget in a slightly more friendly way.

SWT can never really be made MVC because the "View" is native and can never talk to the "Model".  Instead, the Views native model (the OS's) is kept in sync with your applications model using either JFace or some other mechanism.
<leunga@xxxxxxxxxx> wrote in message news:3B4F12CB.43363EB4@xxxxxxxxxx...
> Is SWT design based on MVC architecture? How can I separate out model
> and view?
>
> Anita Leung
>