^1407398560047
@
sname
DemoScript
slabel
DemoScript
sdescriptors
xworker.lang.MetaDescriptor3
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
snotXmlAttribute
false
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@actions
sname
actions
sdescriptors
xworker.lang.MetaDescriptor3/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@actions/@GroovyAction
sname
run
sisSynchronized
false
sthrowException
true
suseOtherAction
false
svarScope
Local
sdisableGlobalContext
false
Scode
#$@text#$@
import org.xmeta.ActionContext;

def self = actionContext.get("self");
if(actionContext.get("currentThing") != null){
    self = currentThing;
}

def ac = new ActionContext();
ac.put("self", self);
ac.put("parent", explorerContext.shell);
ac.put("explorerShell", explorerContext.shell);
def explorerShell = explorerContext.shell;
def world = world;

new Thread({
    for(child in self.getChilds()){
        child.doAction("run", ac);
        
        if(child.getString("delay") != null){
            Thread.sleep(child.getLong("delay") + 1500);
        }
        
        if("ShowMessage" == child.getThingName()){
            def subtitle = actionContext.get("subtitle");
            if(subtitle != null){
                subtitle.exit();
            }
        }    
        
        if("Break" == child.getThingName()){
            break;
        }    
    }
    
    //释放资源
    def end = world.getThing("xworker.demo.introduce.scripts.DemoScript/@End");
    end.doAction("run", actionContext);
}).start();
#$@text#$@
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Action
screateLocalVarScope
false
ssaveReturn
false
sdescriptors
xworker.lang.actions.Actions/@GroovyAction
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@name
sname
name
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@label
sname
label
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@description
sname
description
sinputtype
html
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowMessage
sname
ShowMessage
sdescriptors
xworker.lang.MetaDescriptor3/@thing
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
Sdescription
#$@text#$@
<p>在屏幕上显示一段文字。</p>
#$@text#$@
snotXmlAttribute
false
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowMessage/@actions
sname
actions
sdescriptors
xworker.lang.MetaDescriptor3/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowMessage/@actions/@run2
sname
run
schangeSelf
true
sselfVarName
data
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Self
sattributeTemplate
false
schildsAttributeTemplate
false
svarScope
Local
sisSynchronized
false
sthrowException
true
suseOtherAction
false
screateLocalVarScope
false
ssaveReturn
false
sdisableGlobalContext
false
sdescriptors
xworker.lang.actions.Actions/@ActionGroup
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowMessage/@actions/@run2/@actions
sname
actions
sdescriptors
xworker.lang.actions.Begin/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowMessage/@actions/@run2/@actions/@run1
sname
doAction
swidgetForDisplay
explorerShell
stype
sync
svariables
data
scancelTaskOnWidgetDisposed
false
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Self
sattributeTemplate
false
schildsAttributeTemplate
false
svarScope
Local
sisSynchronized
false
sthrowException
true
suseOtherAction
false
screateLocalVarScope
false
ssaveReturn
false
sdisableGlobalContext
false
sdescriptors
xworker.swt.actions.DisplayActions/@DisplayExec
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowMessage/@actions/@run2/@actions/@run1/@actions
sname
actions
sdescriptors
xworker.swt.actions.DisplayActions/@DisplayExec/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowMessage/@actions/@run2/@actions/@run1/@actions/@run
sname
doAction
sisSynchronized
false
sthrowException
true
suseOtherAction
false
svarScope
Local
sdisableGlobalContext
false
Scode
#$@text#$@
import xworker.swt.util.SwtUtils;
import xworker.swt.util.subtitle.Subtitle;

def subtitle = actionContext.get("subtitle");
if(subtitle != null){
    subtitle.exit();
}

subtitle = new Subtitle(data.getString("message"),  "仿宋|20|1|#000000", "", 10)
actionContext.getScope(0).put("subtitle", subtitle);
#$@text#$@
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Action
screateLocalVarScope
false
ssaveReturn
false
sdescriptors
xworker.lang.actions.Actions/@GroovyAction
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowMessage/@name
sname
name
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowMessage/@label
sname
label
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowMessage/@delay
sname
delay
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowMessage/@message
sname
message
sinputtype
textarea
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseMessage1
sname
CloseMessage
sdescriptors
xworker.lang.MetaDescriptor3/@thing
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
Sdescription
#$@text#$@
<p>关闭屏幕上的消息。</p>
#$@text#$@
snotXmlAttribute
false
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseMessage1/@actions
sname
actions
sdescriptors
xworker.lang.MetaDescriptor3/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseMessage1/@actions/@run2
sname
run
schangeSelf
true
sselfVarName
data
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Self
sattributeTemplate
false
schildsAttributeTemplate
false
svarScope
Local
sisSynchronized
false
sthrowException
true
suseOtherAction
false
screateLocalVarScope
false
ssaveReturn
false
sdisableGlobalContext
false
sdescriptors
xworker.lang.actions.Actions/@ActionGroup
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseMessage1/@actions/@run2/@actions
sname
actions
sdescriptors
xworker.lang.actions.Begin/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseMessage1/@actions/@run2/@actions/@run1
sname
doAction
swidgetForDisplay
explorerShell
stype
sync
scancelTaskOnWidgetDisposed
false
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Self
sattributeTemplate
false
schildsAttributeTemplate
false
svarScope
Local
sisSynchronized
false
sthrowException
true
suseOtherAction
false
screateLocalVarScope
false
ssaveReturn
false
sdisableGlobalContext
false
sdescriptors
xworker.swt.actions.DisplayActions/@DisplayExec
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseMessage1/@actions/@run2/@actions/@run1/@actions
sname
actions
sdescriptors
xworker.swt.actions.DisplayActions/@DisplayExec/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseMessage1/@actions/@run2/@actions/@run1/@actions/@run
sname
doAction
sisSynchronized
false
sthrowException
true
suseOtherAction
false
svarScope
Local
sdisableGlobalContext
false
Scode
#$@text#$@
def subtitle = actionContext.get("subtitle");
if(subtitle != null){
    subtitle.exit();
}
#$@text#$@
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Action
screateLocalVarScope
false
ssaveReturn
false
sdescriptors
xworker.lang.actions.Actions/@GroovyAction
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@End
sname
End
sdescriptors
xworker.lang.MetaDescriptor3/@thing
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
Sdescription
#$@text#$@
<p>全部结束。</p>
#$@text#$@
snotXmlAttribute
false
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@End/@actions
sname
actions
sdescriptors
xworker.lang.MetaDescriptor3/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@End/@actions/@run2
sname
run
schangeSelf
true
sselfVarName
data
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Self
sattributeTemplate
false
schildsAttributeTemplate
false
svarScope
Local
sisSynchronized
false
sthrowException
true
suseOtherAction
false
screateLocalVarScope
false
ssaveReturn
false
sdisableGlobalContext
false
sdescriptors
xworker.lang.actions.Actions/@ActionGroup
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@End/@actions/@run2/@actions
sname
actions
sdescriptors
xworker.lang.actions.Begin/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@End/@actions/@run2/@actions/@run1
sname
doAction
swidgetForDisplay
explorerShell
stype
sync
scancelTaskOnWidgetDisposed
false
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Self
sattributeTemplate
false
schildsAttributeTemplate
false
svarScope
Local
sisSynchronized
false
sthrowException
true
suseOtherAction
false
screateLocalVarScope
false
ssaveReturn
false
sdisableGlobalContext
false
sdescriptors
xworker.swt.actions.DisplayActions/@DisplayExec
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@End/@actions/@run2/@actions/@run1/@actions
sname
actions
sdescriptors
xworker.swt.actions.DisplayActions/@DisplayExec/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@End/@actions/@run2/@actions/@run1/@actions/@run
sname
doAction
sisSynchronized
false
sthrowException
true
suseOtherAction
false
svarScope
Local
sdisableGlobalContext
false
Scode
#$@text#$@
//dispose所有的swt窗口
def subtitle = actionContext.get("subtitle");
if(subtitle != null){
    subtitle.exit();
}
if(actionContext.get("xmlShell") != null){
    xmlShell.dispose();
}
if(actionContext.get("browserShell") != null){
    browserShell.dispose();
}
#$@text#$@
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Action
screateLocalVarScope
false
ssaveReturn
false
sdescriptors
xworker.lang.actions.Actions/@GroovyAction
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@DemoScript
sname
DemoScript
sdescriptors
xworker.lang.MetaDescriptor3/@thing
sextends
xworker.demo.introduce.scripts.DemoScript
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
Sdescription
#$@text#$@
<p>子节点。</p>
#$@text#$@
snotXmlAttribute
false
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@DemoScript/@actions
sname
actions
sdescriptors
xworker.lang.MetaDescriptor3/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@DemoScript/@actions/@run
sname
run
sisSynchronized
false
sthrowException
true
suseOtherAction
false
svarScope
Local
sdisableGlobalContext
false
Scode
#$@text#$@
for(child in self.getChilds()){
    child.doAction("run", actionContext);
    
    if(child.getString("delay") != null){
        Thread.sleep(child.getLong("delay") + 1500);
    }    
    
    if("ShowMessage" == child.getThingName()){
        def subtitle = actionContext.get("subtitle");
        if(subtitle != null){
            subtitle.exit();
        }
    }

    if("Break" == child.getThingName()){
        break;
    } 
}
#$@text#$@
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Action
screateLocalVarScope
false
ssaveReturn
false
sdescriptors
xworker.lang.actions.Actions/@GroovyAction
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowThingXml
sname
ShowThingXml
sdescriptors
xworker.lang.MetaDescriptor3/@thing
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
Sdescription
#$@text#$@
<p>显示事物的XML。</p>
#$@text#$@
snotXmlAttribute
false
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowThingXml/@actions
sname
actions
sdescriptors
xworker.lang.MetaDescriptor3/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowThingXml/@actions/@run2
sname
run
schangeSelf
true
sselfVarName
data
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Self
sattributeTemplate
false
schildsAttributeTemplate
false
svarScope
Local
sisSynchronized
false
sthrowException
true
suseOtherAction
false
screateLocalVarScope
false
ssaveReturn
false
sdisableGlobalContext
false
sdescriptors
xworker.lang.actions.Actions/@ActionGroup
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowThingXml/@actions/@run2/@actions
sname
actions
sdescriptors
xworker.lang.actions.Begin/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowThingXml/@actions/@run2/@actions/@run1
sname
doAction
swidgetForDisplay
explorerShell
stype
sync
svariables
data
scancelTaskOnWidgetDisposed
false
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Self
sattributeTemplate
false
schildsAttributeTemplate
false
svarScope
Local
sisSynchronized
false
sthrowException
true
suseOtherAction
false
screateLocalVarScope
false
ssaveReturn
false
sdisableGlobalContext
false
sdescriptors
xworker.swt.actions.DisplayActions/@DisplayExec
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowThingXml/@actions/@run2/@actions/@run1/@actions
sname
actions
sdescriptors
xworker.swt.actions.DisplayActions/@DisplayExec/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowThingXml/@actions/@run2/@actions/@run1/@actions/@run
sname
doAction
sisSynchronized
false
sthrowException
true
suseOtherAction
false
svarScope
Local
sdisableGlobalContext
false
Scode
#$@text#$@
import xworker.swt.util.SwtUtils;

def xmlShell = actionContext.get("xmlShell");
if(xmlShell == null || xmlShell.isDisposed()){
    def thing = world.getThing("xworker.demo.introduce.shells.XmlShell");
    xmlShell = thing.doAction("create", actionContext);
}

def thing = world.getThing(data.getString("thingPath"));
def xml = thing.doAction("toXml", actionContext);
xmlText.setText(xml);

xmlShell.open();
SwtUtils.centerShell(xmlShell);
#$@text#$@
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Action
screateLocalVarScope
false
ssaveReturn
false
sdescriptors
xworker.lang.actions.Actions/@GroovyAction
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowThingXml/@name
sname
name
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowThingXml/@label
sname
label
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowThingXml/@delay
sname
delay
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowThingXml/@thingPath
sname
thingPath
sinputtype
dataSelector
sshowLabel
true
ssize
60
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseThingXml
sname
CloseThingXml
sdescriptors
xworker.lang.MetaDescriptor3/@thing
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
snotXmlAttribute
false
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseThingXml/@actions
sname
actions
sdescriptors
xworker.lang.MetaDescriptor3/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseThingXml/@actions/@run2
sname
run
schangeSelf
true
sselfVarName
data
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Self
sattributeTemplate
false
schildsAttributeTemplate
false
svarScope
Local
sisSynchronized
false
sthrowException
true
suseOtherAction
false
screateLocalVarScope
false
ssaveReturn
false
sdisableGlobalContext
false
sdescriptors
xworker.lang.actions.Actions/@ActionGroup
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseThingXml/@actions/@run2/@actions
sname
actions
sdescriptors
xworker.lang.actions.Begin/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseThingXml/@actions/@run2/@actions/@run1
sname
doAction
swidgetForDisplay
explorerShell
stype
sync
scancelTaskOnWidgetDisposed
false
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Self
sattributeTemplate
false
schildsAttributeTemplate
false
svarScope
Local
sisSynchronized
false
sthrowException
true
suseOtherAction
false
screateLocalVarScope
false
ssaveReturn
false
sdisableGlobalContext
false
sdescriptors
xworker.swt.actions.DisplayActions/@DisplayExec
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseThingXml/@actions/@run2/@actions/@run1/@actions
sname
actions
sdescriptors
xworker.swt.actions.DisplayActions/@DisplayExec/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseThingXml/@actions/@run2/@actions/@run1/@actions/@run
sname
doAction
sisSynchronized
false
sthrowException
true
suseOtherAction
false
svarScope
Local
sdisableGlobalContext
false
scode
xmlShell.setVisible(false);
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Action
screateLocalVarScope
false
ssaveReturn
false
sdescriptors
xworker.lang.actions.Actions/@GroovyAction
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@OpenShell
sname
OpenShell
sdescriptors
xworker.lang.MetaDescriptor3/@thing
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
snotXmlAttribute
false
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@OpenShell/@actions
sname
actions
sdescriptors
xworker.lang.MetaDescriptor3/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@OpenShell/@actions/@run2
sname
run
schangeSelf
true
sselfVarName
data
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Self
sattributeTemplate
false
schildsAttributeTemplate
false
svarScope
Local
sisSynchronized
false
sthrowException
true
suseOtherAction
false
screateLocalVarScope
false
ssaveReturn
false
sdisableGlobalContext
false
sdescriptors
xworker.lang.actions.Actions/@ActionGroup
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@OpenShell/@actions/@run2/@actions
sname
actions
sdescriptors
xworker.lang.actions.Begin/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@OpenShell/@actions/@run2/@actions/@run1
sname
doAction
swidgetForDisplay
explorerShell
stype
sync
svariables
data
scancelTaskOnWidgetDisposed
false
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Self
sattributeTemplate
false
schildsAttributeTemplate
false
svarScope
Local
sisSynchronized
false
sthrowException
true
suseOtherAction
false
screateLocalVarScope
false
ssaveReturn
false
sdisableGlobalContext
false
sdescriptors
xworker.swt.actions.DisplayActions/@DisplayExec
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@OpenShell/@actions/@run2/@actions/@run1/@actions
sname
actions
sdescriptors
xworker.swt.actions.DisplayActions/@DisplayExec/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@OpenShell/@actions/@run2/@actions/@run1/@actions/@run
sname
doAction
sisSynchronized
false
sthrowException
true
suseOtherAction
false
svarScope
Local
sdisableGlobalContext
false
Scode
#$@text#$@
import org.xmeta.ActionContext;

import xworker.swt.util.SwtUtils;

def acName = data.getString("actionContextName");
def ac = new ActionContext();
ac.put("parent", explorerShell);
def thing = world.getThing(data.getString("shellPath"));
def shell = thing.doAction("create", ac);
shell.open();
SwtUtils.centerShell(shell);

actionContext.getScope(0).put(acName, ac);
#$@text#$@
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Action
screateLocalVarScope
false
ssaveReturn
false
sdescriptors
xworker.lang.actions.Actions/@GroovyAction
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@OpenShell/@name
sname
name
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@OpenShell/@label
sname
label
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@OpenShell/@actionContext
sname
actionContextName
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@OpenShell/@shellPath
sname
shellPath
sinputtype
dataSelector
sshowLabel
true
ssize
60
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseShell
sname
CloseShell
sdescriptors
xworker.lang.MetaDescriptor3/@thing
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
snotXmlAttribute
false
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseShell/@actions
sname
actions
sdescriptors
xworker.lang.MetaDescriptor3/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseShell/@actions/@run2
sname
run
schangeSelf
true
sselfVarName
data
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Self
sattributeTemplate
false
schildsAttributeTemplate
false
svarScope
Local
sisSynchronized
false
sthrowException
true
suseOtherAction
false
screateLocalVarScope
false
ssaveReturn
false
sdisableGlobalContext
false
sdescriptors
xworker.lang.actions.Actions/@ActionGroup
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseShell/@actions/@run2/@actions
sname
actions
sdescriptors
xworker.lang.actions.Begin/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseShell/@actions/@run2/@actions/@run1
sname
doAction
swidgetForDisplay
explorerShell
stype
sync
svariables
data
scancelTaskOnWidgetDisposed
false
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Self
sattributeTemplate
false
schildsAttributeTemplate
false
svarScope
Local
sisSynchronized
false
sthrowException
true
suseOtherAction
false
screateLocalVarScope
false
ssaveReturn
false
sdisableGlobalContext
false
sdescriptors
xworker.swt.actions.DisplayActions/@DisplayExec
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseShell/@actions/@run2/@actions/@run1/@actions
sname
actions
sdescriptors
xworker.swt.actions.DisplayActions/@DisplayExec/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseShell/@actions/@run2/@actions/@run1/@actions/@run
sname
doAction
sisSynchronized
false
sthrowException
true
suseOtherAction
false
svarScope
Local
sdisableGlobalContext
false
Scode
#$@text#$@
import org.xmeta.ActionContext;

import xworker.swt.util.SwtUtils;

def acName = data.getString("actionContextName");
def shellName = data.getString("shellName");
def ac = actionContext.get(acName);
if(ac != null){
    def shell = ac.get(shellName);
    if(shell != null){
        shell.dispose();
    }
    actionContext.getScope(0).remove(acName);
}
#$@text#$@
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Action
screateLocalVarScope
false
ssaveReturn
false
sdescriptors
xworker.lang.actions.Actions/@GroovyAction
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseShell/@name
sname
name
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseShell/@label
sname
label
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseShell/@actionContext
sname
actionContextName
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseShell/@shellPath
sname
shellName
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowBrowser
sname
ShowBrowser
sdescriptors
xworker.lang.MetaDescriptor3/@thing
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
snotXmlAttribute
false
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowBrowser/@actions
sname
actions
schangeSelf
true
sselfVarName
data
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Self
sattributeTemplate
false
schildsAttributeTemplate
false
svarScope
Local
sisSynchronized
false
sthrowException
true
suseOtherAction
false
screateLocalVarScope
false
ssaveReturn
false
sdisableGlobalContext
false
sdescriptors
xworker.lang.MetaDescriptor3/@actions,xworker.lang.actions.Actions/@ActionGroup,xworker.lang.actions.Begin/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowBrowser/@actions/@run2
sname
run
schangeSelf
true
sselfVarName
data
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Self
sattributeTemplate
false
schildsAttributeTemplate
false
svarScope
Local
sisSynchronized
false
sthrowException
true
suseOtherAction
false
screateLocalVarScope
false
ssaveReturn
false
sdisableGlobalContext
false
sdescriptors
xworker.lang.actions.Actions/@ActionGroup
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowBrowser/@actions/@run2/@actions
sname
actions
sdescriptors
xworker.lang.actions.Begin/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowBrowser/@actions/@run2/@actions/@run1
sname
doAction
swidgetForDisplay
explorerShell
stype
sync
svariables
data
scancelTaskOnWidgetDisposed
false
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Self
sattributeTemplate
false
schildsAttributeTemplate
false
svarScope
Local
sisSynchronized
false
sthrowException
true
suseOtherAction
false
screateLocalVarScope
false
ssaveReturn
false
sdisableGlobalContext
false
sdescriptors
xworker.swt.actions.DisplayActions/@DisplayExec
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowBrowser/@actions/@run2/@actions/@run1/@actions
sname
actions
sdescriptors
xworker.swt.actions.DisplayActions/@DisplayExec/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowBrowser/@actions/@run2/@actions/@run1/@actions/@run
sname
doAction
sisSynchronized
false
sthrowException
true
suseOtherAction
false
svarScope
Local
sdisableGlobalContext
false
Scode
#$@text#$@
import xworker.swt.util.SwtUtils;

def browserShell = actionContext.get("browserShell");
if(browserShell == null || browserShell.isDisposed()){
    def thing = world.getThing("xworker.demo.introduce.shells.BrowserShell");
    browserShell = thing.doAction("create", actionContext);
}

def url = data.getString("url");
browser.setUrl(url);
browserShell.open();
SwtUtils.centerShell(browserShell);
#$@text#$@
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Action
screateLocalVarScope
false
ssaveReturn
false
sdescriptors
xworker.lang.actions.Actions/@GroovyAction
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowBrowser/@name
sname
name
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowBrowser/@label
sname
label
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ShowBrowser/@url
sname
url
sshowLabel
true
ssize
60
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseBrowser
sname
CloseBrowser
sdescriptors
xworker.lang.MetaDescriptor3/@thing
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
snotXmlAttribute
false
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseBrowser/@actions
sname
actions
sdescriptors
xworker.lang.MetaDescriptor3/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseBrowser/@actions/@run2
sname
run
schangeSelf
true
sselfVarName
data
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Self
sattributeTemplate
false
schildsAttributeTemplate
false
svarScope
Local
sisSynchronized
false
sthrowException
true
suseOtherAction
false
screateLocalVarScope
false
ssaveReturn
false
sdisableGlobalContext
false
sdescriptors
xworker.lang.actions.Actions/@ActionGroup
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseBrowser/@actions/@run2/@actions
sname
actions
sdescriptors
xworker.lang.actions.Begin/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseBrowser/@actions/@run2/@actions/@run1
sname
doAction
swidgetForDisplay
explorerShell
stype
sync
scancelTaskOnWidgetDisposed
false
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Self
sattributeTemplate
false
schildsAttributeTemplate
false
svarScope
Local
sisSynchronized
false
sthrowException
true
suseOtherAction
false
screateLocalVarScope
false
ssaveReturn
false
sdisableGlobalContext
false
sdescriptors
xworker.swt.actions.DisplayActions/@DisplayExec
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseBrowser/@actions/@run2/@actions/@run1/@actions
sname
actions
sdescriptors
xworker.swt.actions.DisplayActions/@DisplayExec/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@CloseBrowser/@actions/@run2/@actions/@run1/@actions/@run
sname
doAction
sisSynchronized
false
sthrowException
true
suseOtherAction
false
svarScope
Local
sdisableGlobalContext
false
scode
browserShell.setVisible(false);
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Action
screateLocalVarScope
false
ssaveReturn
false
sdescriptors
xworker.lang.actions.Actions/@GroovyAction
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@MoveShell
sname
MoveShell
sdescriptors
xworker.lang.MetaDescriptor3/@thing
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
snotXmlAttribute
false
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@MoveShell/@actions
sname
actions
sdescriptors
xworker.lang.MetaDescriptor3/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@MoveShell/@actions/@run2
sname
run
schangeSelf
true
sselfVarName
data
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Self
sattributeTemplate
false
schildsAttributeTemplate
false
svarScope
Local
sisSynchronized
false
sthrowException
true
suseOtherAction
false
screateLocalVarScope
false
ssaveReturn
false
sdisableGlobalContext
false
sdescriptors
xworker.lang.actions.Actions/@ActionGroup
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@MoveShell/@actions/@run2/@actions
sname
actions
sdescriptors
xworker.lang.actions.Begin/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@MoveShell/@actions/@run2/@actions/@run1
sname
doAction
swidgetForDisplay
explorerShell
stype
sync
svariables
data
scancelTaskOnWidgetDisposed
false
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Self
sattributeTemplate
false
schildsAttributeTemplate
false
svarScope
Local
sisSynchronized
false
sthrowException
true
suseOtherAction
false
screateLocalVarScope
false
ssaveReturn
false
sdisableGlobalContext
false
sdescriptors
xworker.swt.actions.DisplayActions/@DisplayExec
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@MoveShell/@actions/@run2/@actions/@run1/@actions
sname
actions
sdescriptors
xworker.swt.actions.DisplayActions/@DisplayExec/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@MoveShell/@actions/@run2/@actions/@run1/@actions/@run
sname
doAction
sisSynchronized
false
sthrowException
true
suseOtherAction
false
svarScope
Local
sdisableGlobalContext
false
Scode
#$@text#$@
import xworker.swt.util.SwtUtils;

def xmlShell = actionContext.get("xmlShell");
if(xmlShell == null || xmlShell.isDisposed()){
    def thing = world.getThing("xworker.demo.introduce.shells.XmlShell");
    xmlShell = thing.doAction("create", actionContext);
}

def thing = data;
def xml = thing.doAction("toXml", actionContext);
xmlText.setText(xml);
def location = xmlShell.getLocation();
xmlShell.setLocation(location.x + data.getInt("x"), location.y + data.getInt("y"));
xmlShell.open();
#$@text#$@
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Action
screateLocalVarScope
false
ssaveReturn
false
sdescriptors
xworker.lang.actions.Actions/@GroovyAction
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@MoveShell/@name
sname
name
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@MoveShell/@label
sname
label
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@MoveShell/@delay
sname
delay
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@MoveShell/@x
sname
x
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@MoveShell/@y
sname
y
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ResizeShell1
sname
ResizeShell
sdescriptors
xworker.lang.MetaDescriptor3/@thing
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
snotXmlAttribute
false
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ResizeShell1/@actions
sname
actions
sdescriptors
xworker.lang.MetaDescriptor3/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ResizeShell1/@actions/@run2
sname
run
schangeSelf
true
sselfVarName
data
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Self
sattributeTemplate
false
schildsAttributeTemplate
false
svarScope
Local
sisSynchronized
false
sthrowException
true
suseOtherAction
false
screateLocalVarScope
false
ssaveReturn
false
sdisableGlobalContext
false
sdescriptors
xworker.lang.actions.Actions/@ActionGroup
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ResizeShell1/@actions/@run2/@actions
sname
actions
sdescriptors
xworker.lang.actions.Begin/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ResizeShell1/@actions/@run2/@actions/@run1
sname
doAction
swidgetForDisplay
explorerShell
stype
sync
svariables
data
scancelTaskOnWidgetDisposed
false
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Self
sattributeTemplate
false
schildsAttributeTemplate
false
svarScope
Local
sisSynchronized
false
sthrowException
true
suseOtherAction
false
screateLocalVarScope
false
ssaveReturn
false
sdisableGlobalContext
false
sdescriptors
xworker.swt.actions.DisplayActions/@DisplayExec
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ResizeShell1/@actions/@run2/@actions/@run1/@actions
sname
actions
sdescriptors
xworker.swt.actions.DisplayActions/@DisplayExec/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ResizeShell1/@actions/@run2/@actions/@run1/@actions/@run
sname
doAction
sisSynchronized
false
sthrowException
true
suseOtherAction
false
svarScope
Local
sdisableGlobalContext
false
Scode
#$@text#$@
import xworker.swt.util.SwtUtils;

def xmlShell = actionContext.get("xmlShell");
if(xmlShell == null || xmlShell.isDisposed()){
    def thing = world.getThing("xworker.demo.introduce.shells.XmlShell");
    xmlShell = thing.doAction("create", actionContext);
}

def thing = data;
def xml = thing.doAction("toXml", actionContext);
xmlText.setText(xml);
def location = xmlShell.getSize();
xmlShell.setSize(location.x + data.getInt("x"), location.y + data.getInt("y"));
xmlShell.update();
xmlShell.open();
#$@text#$@
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Action
screateLocalVarScope
false
ssaveReturn
false
sdescriptors
xworker.lang.actions.Actions/@GroovyAction
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ResizeShell1/@name
sname
name
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ResizeShell1/@label
sname
label
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ResizeShell1/@delay
sname
delay
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ResizeShell1/@x
sname
x
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@ResizeShell1/@y
sname
y
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@OpenThing
sname
OpenThing
sdescriptors
xworker.lang.MetaDescriptor3/@thing
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
snotXmlAttribute
false
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@OpenThing/@actions
sname
actions
sdescriptors
xworker.lang.MetaDescriptor3/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@OpenThing/@actions/@run
sname
run
schangeSelf
true
sselfVarName
data
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Self
sattributeTemplate
false
schildsAttributeTemplate
false
svarScope
Local
sisSynchronized
false
sthrowException
true
suseOtherAction
false
screateLocalVarScope
false
ssaveReturn
false
sdisableGlobalContext
false
sdescriptors
xworker.lang.actions.Actions/@ActionGroup
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@OpenThing/@actions/@run/@actions
sname
actions
sdescriptors
xworker.lang.actions.Begin/@actions
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@OpenThing/@actions/@run/@actions/@OpenThing
sname
OpenThing
sthingPathVarName
data.thingPath
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Self
sattributeTemplate
false
schildsAttributeTemplate
false
svarScope
Local
sisSynchronized
false
sthrowException
true
suseOtherAction
false
screateLocalVarScope
false
ssaveReturn
false
sdisableGlobalContext
false
sdescriptors
xworker.ide.worldexplorer.actions.ExplorerActions/@OpenThing
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@OpenThing/@name
sname
name
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@OpenThing/@label
sname
label
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@OpenThing/@delay
sname
delay
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@OpenThing/@thingPath
sname
thingPath
sinputtype
dataSelector
sshowLabel
true
ssize
60
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@Break
sname
Break
sdescriptors
xworker.lang.MetaDescriptor3/@thing
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
snotXmlAttribute
false
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@sswtMenus
sname
sswtMenus
sdescriptors
xworker.lang.MetaDescriptor3/@swtMenus
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@sswtMenus/@menuDefine
sname
menuDefine
sdescriptors
xworker.lang.MetaDescriptor3/@swtMenus/@menuDefine
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@sswtMenus/@menuDefine/@demo
sname
demo
slabel
DEMO
sdescriptors
xworker.lang.ThingMenu/@menuDefine/@menu
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@sswtMenus/@demo
sname
demo
stype
data
smenuType
demo
sdescriptors
xworker.lang.MetaDescriptor3/@swtMenus/@menuSetting
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@sswtMenus/@demo/@run1
sname
run
slabel
执行
surl
xworker.demo.introduce.scripts.DemoScript/@actions/@GroovyAction
sisSplit
false
sattachParam
true
sdescriptors
xworker.lang.ThingMenu/@menuSetting/@menu
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
