Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » use dynamic model to programing SWT
use dynamic model to programing SWT [message #1723308] Sun, 14 February 2016 03:31 Go to next message
zhangyuxiang Mising name is currently offline zhangyuxiang Mising nameFriend
Messages: 6
Registered: March 2011
Junior Member
Hi.
I want to know if somebody would like programing swt with dynamic model technique.

Dynamic model is a programing method, is an open source software. Model are datas like XML. So like XWT you can build swt with xml.

The attach is an eclipse project of examples for SWT model.

If you like it, please tell me.
Re: use dynamic model to programing SWT [message #1723311 is a reply to message #1723308] Sun, 14 February 2016 05:37 Go to previous messageGo to next message
zhangyuxiang Mising name is currently offline zhangyuxiang Mising nameFriend
Messages: 6
Registered: March 2011
Junior Member
If you download the example project and import to eclipse, you will see some jar dependencies:

org.xmeta.engine
The dynamic model engine.

xworker_core
The core models.

xworker_dataobject
The dataobject models, for data mapping.

xworker_swt
The swt models.

XWorker_jfreechart
The jfreechart models.

Models can be seem as liberarys, models can be assembled jar file.
Re: use dynamic model to programing SWT [message #1723312 is a reply to message #1723311] Sun, 14 February 2016 05:39 Go to previous messageGo to next message
zhangyuxiang Mising name is currently offline zhangyuxiang Mising nameFriend
Messages: 6
Registered: March 2011
Junior Member
The example project include swt.jar is windows win64 version. If you running the example under linux or other system, please download corresponding version.
Re: use dynamic model to programing SWT [message #1723313 is a reply to message #1723312] Sun, 14 February 2016 05:53 Go to previous messageGo to next message
zhangyuxiang Mising name is currently offline zhangyuxiang Mising nameFriend
Messages: 6
Registered: March 2011
Junior Member
Dynamic means model can be changed at runtime, so you can build and change SWT UI at runtime.
Re: use dynamic model to programing SWT [message #1723314 is a reply to message #1723313] Sun, 14 February 2016 06:01 Go to previous messageGo to next message
zhangyuxiang Mising name is currently offline zhangyuxiang Mising nameFriend
Messages: 6
Registered: March 2011
Junior Member
Dynamic model engine is completed in 2006, quickly I felt into it's philosophy. But until today I can not say anything about it, it's a big failure to me.
Re: use dynamic model to programing SWT [message #1723315 is a reply to message #1723314] Sun, 14 February 2016 06:06 Go to previous message
zhangyuxiang Mising name is currently offline zhangyuxiang Mising nameFriend
Messages: 6
Registered: March 2011
Junior Member
The final goal of swt model is to build senior models, for example:

<?xml version="1.0" encoding="utf-8"?>
 
<Shell name="shell" descriptors="xworker.swt.widgets.Shell" text="数据对象编辑器" RESIZE="true" width="800" height="600" label="DataObjectEditor">
    <FillLayout name="shellFillLayout"></FillLayout>
    <DataObjectEditor name="dataObjectEditor" dataObject="xworker.example.app.data.FamilyCostRow" tableBorder="false">
        <BottomTabFolder name="bottomTabFolder">
            <DataObjectEditForm name="form" label="编辑"></DataObjectEditForm>
            <Line3D name="line3D" label="曲线图" dataObject="xworker.example.app.data.FamilyCostRow" legend="false" tooltips="false" urls="false" dateAxis="false" rowName="category" columnName="time" valueName="value"></Line3D>
        </BottomTabFolder>
    </DataObjectEditor>
</Shell>


The screenshot of the example is:
http://www.xworker.org/images/2016/0118/111054DataObjectEditor.png

For more information of swt models, please see:
http://www.xworker.org/do?sc=xworker.app.orgweb.web.Index&id=836&lang=reverse
Previous Topic:Invisible controls for rowlayout on linux do not work like on windows for version 4.4.2 and 4.5.2
Next Topic:CTabFolder content display issue in combination with ScrolledComposite
Goto Forum:
  


Current Time: Thu Dec 14 13:29:18 GMT 2017

Powered by FUDForum. Page generated in 0.02429 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software