Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] Programing SWT with x-meta model language, can use xml build swt software, please give me some advise

hi all.

X-Meta is a pure model language, and X-Meta is an open source project. Here is an example:

This is a workbentch example programed by X-Meta and SWT model.

The XML code of main program:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="utf-8"?>
  
<!-- Main window -->
<Workbentch name="shell" descriptors="xworker.app.view.swt.app.workbentch.Workbentch" 
    label="Swt Example">
    <!-- Menu -->
    <menus name="menus">
        <Menu name="fileMenu" label="File">
            <Menu name="exitItem" label="Exit" type="PUSH" action="exit"></Menu>
        </Menu>
    </menus>
    <!-- View -->
    <views name="views">
        <View name="navigationTree" label="Navigation" closeable="false" defaultOpen="true" 
           useRef="true" refPath="example.views.NavigationTree"></View>
    </views>
    <!-- Editor view -->
    <editors name="editors">
        <Editor name="buttonExample" label="Button Example" singleInstance="true" useRef="true"
            refPath="example.editors.ButtonExample"></Editor>
        <Editor name="textExample" id="text" label="Text Example" singleInstance="true" 
            useRef="true" refPath="example.editors.TextExample"></Editor>
        <Editor name="browserExample" label="Web Browser" singleInstance="true" 
             useRef="true" refPath="example.editors.BrowserExample"></Editor>
        <Editor name="formExample" label="Form Example" singleInstance="true" 
            useRef="true" refPath="example.editors.FormExample"></Editor>
        <Editor name="tableExample" label="Table Example" singleInstance="true" 
           useRef="true" refPath="example.editors.TableExample"></Editor>
    </editors>
    <!-- Action, the action of exit menu item -->
    <actions name="actions">
        <ShellNormalActions name="exit" descriptors="xworker.swt.actions.ShellActions/@ShellNormalActions1" 
            shellName="shell"></ShellNormalActions>
    </actions>
</Workbentch>
This full example is here. And my website is here. And the demo can be download at here.
For the past five years I have spend most time in the philosophy of meta-thing, Meta thing is the kernel of X-Meta but it's too simple. You know at last I only have lonely and frustration.
Now I come back, and want make it more professional, so can you give me any advise?
And sorry my some web page is translated by bing.com.

Back to the top