^1650857335414
@
sname
Functions
slabel
Functions
sdescriptors
xworker.lang.MetaDescriptor3
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
sicon
icons/folder_user.png
Sdescription
#$@text#$@
<p>功能设置，功能设置下的节点将显示在菜单栏里。子节点要显示需要继承FunctionsRelation。</p>

<p><strong>节点排序规则</strong></p>

<ol>
	<li>首先是按节点创建的顺序。</li>
	<li>其次按beforeNodeId插入前。</li>
	<li>最后按afterNodeId插入后。</li>
</ol>
#$@text#$@
snotXmlAttribute
false
sjson_isArray
false
  @/@node
  sname
  node
  slabel
  Node
  sdescriptors
  xworker.lang.MetaDescriptor3
  sextends
  xworker.lang.util.Functions,xworker.lang.util.FunctionsRelation
  smany
  true
  seditCols
  2
  sinitialization
  false
  smodifier
  public
  sinheritDescription
  false
  sicon
  icons/folder.png
  snotXmlAttribute
  false
  sjson_isArray
  false
  szh_label
  节点
  sen_label
  Node
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_noThingRegistViewer
  false
  sth_fileMonitor
  false
  sth_deprecated
  false
  sth_mark
  false
  sth_registQueryOnlySelf
  false
  sid
  node
    @/@node/@name
    sname
    name
    slabel
    Name
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    szh_label
    名称
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    name
    @/@node/@label
    sname
    label
    slabel
    Label
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    szh_label
    标签
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    label
    @/@node/@en_label1
    sname
    en_label
    slabel
    Label_en
    sshowLabel
    true
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    snotXmlAttribute
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    en_label1
    @/@node/@disabled
    sname
    disabled
    sinputtype
    truefalse
    sshowLabel
    true
    sreadOnly
    false
    sdefault
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    disabled
    @/@node/@description
    sname
    description
    slabel
    描述
    sinputtype
    html
    scolspan
    2
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    description
  @/@function
  sname
  Script
  slabel
  Script
  sisSynchronized
  false
  sthrowException
  true
  sdescriptors
  xworker.groovy.GroovyAction,xworker.lang.MetaDescriptor3
  sextends
  xworker.groovy.GroovyAction,xworker.lang.util.FunctionsRelation
  sinheritDescription
  false
  szh_label
  执行脚本
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  function
    @/@function/@actions
    sname
    actions
    sdescriptors
    xworker.lang.MetaThing/@actions
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    actions
      @/@function/@actions/@runAction
      sname
      runAction
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      svarScope
      Local
      sdisableGlobalContext
      false
      Scode
#$@text#$@
try{
    def result = world.runAction(self.getMetadata().getPath(), actionContext);
    
    if(self.getBoolean("showResult")){
        showObject(actionContext, "object", result);
    }else if(result != null){
        println result;
    }
}catch(Exception e){
    showException(actionContext, "e", e);
}
#$@text#$@
      sinterpretationType
      Action
      screateLocalVarScope
      false
      ssaveReturn
      false
      sswitchResult
      false
      sdebugLog
      false
      sdescriptors
      xworker.lang.actions.Actions/@GroovyAction
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      runAction
        @/@function/@actions/@runAction/@ActionDefined
        sname
        ActionDefined
        sdescriptors
        xworker.lang.actions.Inout/@ActionDefined
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_noThingRegistViewer
        false
        sth_fileMonitor
        false
        sth_mark
        false
        sth_registQueryOnlySelf
        false
        snotXmlAttribute
        false
        sjson_isArray
        false
        sid
        ActionDefined
          @/@function/@actions/@runAction/@ActionDefined/@showObject
          sname
          showObject
          stitle
          lang:d=执行结果&en=Execute Result
          sobject
          var:object
          sinterpretationType
          Self
          sattributeTemplate
          false
          schildsAttributeTemplate
          false
          svarScope
          Local
          sisSynchronized
          false
          sthrowException
          true
          suseOtherAction
          false
          screateLocalVarScope
          false
          ssaveReturn
          false
          sswitchResult
          false
          sdisableGlobalContext
          false
          sdebugLog
          false
          sdescriptors
          xworker.lang.workbench.WorkbenchActions/@ShowObjectDialog
          sinheritDescription
          false
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_registDisabled
          false
          sth_noThingRegistViewer
          false
          sth_fileMonitor
          false
          sth_mark
          false
          sth_registQueryOnlySelf
          false
          snotXmlAttribute
          false
          sjson_isArray
          false
          sid
          showObject
          @/@function/@actions/@runAction/@ActionDefined/@showException
          sname
          showException
          sthrowable
          var:e
          sinterpretationType
          Self
          sattributeTemplate
          false
          schildsAttributeTemplate
          false
          svarScope
          Local
          sisSynchronized
          false
          sthrowException
          true
          suseOtherAction
          false
          screateLocalVarScope
          false
          ssaveReturn
          false
          sswitchResult
          false
          sdisableGlobalContext
          false
          sdebugLog
          false
          sdescriptors
          xworker.lang.workbench.WorkbenchActions/@ShowExceptionDialog
          sinheritDescription
          false
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_registDisabled
          false
          sth_noThingRegistViewer
          false
          sth_fileMonitor
          false
          sth_mark
          false
          sth_registQueryOnlySelf
          false
          snotXmlAttribute
          false
          sjson_isArray
          false
          sid
          showException
    @/@function/@name
    sname
    name
    slabel
    Name
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    szh_label
    名称
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    name
    @/@function/@label
    sname
    label
    slabel
    Label
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    szh_label
    标签
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    label
    @/@function/@en_label1
    sname
    en_label
    slabel
    Label_en
    sshowLabel
    true
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    snotXmlAttribute
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    en_label1
    @/@function/@label1
    sname
    showResult
    sinputtype
    truefalse
    sshowLabel
    true
    slabelAlign
    right
    slabelVAlign
    baseline
    smodifier
    public
    sreadOnly
    false
    sdefault
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    snotXmlAttribute
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_noThingRegistViewer
    false
    sth_fileMonitor
    false
    sth_deprecated
    false
    sth_mark
    false
    sth_registQueryOnlySelf
    false
    sjson_isArray
    false
    sid
    label1
  @/@ExecuteThingAction
  sname
  ExecuteThingAction
  slabel
  执行模型动作
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  xworker.lang.util.FunctionsRelation
  smany
  true
  seditCols
  2
  sformNoLabel
  false
  sinitialization
  false
  smodifier
  public
  sinheritDescription
  false
  snotXmlAttribute
  false
  sjson_isArray
  false
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_mark
  false
  sid
  ExecuteThingAction
    @/@ExecuteThingAction/@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
    sid
    name
    @/@ExecuteThingAction/@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
    sid
    label
    @/@ExecuteThingAction/@en_label1
    sname
    en_label
    slabel
    Label_en
    sshowLabel
    true
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    snotXmlAttribute
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    en_label1
    @/@ExecuteThingAction/@thingPath
    sname
    thingPath
    sinputtype
    dataSelector
    ssize
    60
    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
    sid
    thingPath
    @/@ExecuteThingAction/@actionName
    sname
    actionName
    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
    sid
    actionName
    @/@ExecuteThingAction/@actions
    sname
    actions
    sdescriptors
    xworker.lang.MetaThing/@actions
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    actions
      @/@ExecuteThingAction/@actions/@runAction
      sname
      runAction
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      svarScope
      Local
      sdisableGlobalContext
      false
      Scode
#$@text#$@
def thing = world.getThing(self.thingPath);
if(thing != null){
    try{
        def result = thing.doAction(self.actionName, actionContext);
        
        if(self.getBoolean("showResult")){
            showObject(actionContext, "object", result);
        }else if(result != null){
            println result;
        }
    }catch(Exception e){
        showException(actionContext, "e", e);
    }
}else{
    showMessage(actionContext, "message", "Thing not found, thing=" + self.thingPath);
}
#$@text#$@
      sinterpretationType
      Action
      screateLocalVarScope
      false
      ssaveReturn
      false
      sswitchResult
      false
      sdebugLog
      false
      sdescriptors
      xworker.lang.actions.Actions/@GroovyAction
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      runAction
        @/@ExecuteThingAction/@actions/@runAction/@ActionDefined
        sname
        ActionDefined
        sdescriptors
        xworker.lang.actions.Inout/@ActionDefined
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_noThingRegistViewer
        false
        sth_fileMonitor
        false
        sth_mark
        false
        sth_registQueryOnlySelf
        false
        snotXmlAttribute
        false
        sjson_isArray
        false
        sid
        ActionDefined
          @/@ExecuteThingAction/@actions/@runAction/@ActionDefined/@showObject
          sname
          showObject
          stitle
          lang:d=执行结果&en=Execute Result
          sobject
          var:object
          sinterpretationType
          Self
          sattributeTemplate
          false
          schildsAttributeTemplate
          false
          svarScope
          Local
          sisSynchronized
          false
          sthrowException
          true
          suseOtherAction
          false
          screateLocalVarScope
          false
          ssaveReturn
          false
          sswitchResult
          false
          sdisableGlobalContext
          false
          sdebugLog
          false
          sdescriptors
          xworker.lang.workbench.WorkbenchActions/@ShowObjectDialog
          sinheritDescription
          false
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_registDisabled
          false
          sth_noThingRegistViewer
          false
          sth_fileMonitor
          false
          sth_mark
          false
          sth_registQueryOnlySelf
          false
          snotXmlAttribute
          false
          sjson_isArray
          false
          sid
          showObject
          @/@ExecuteThingAction/@actions/@runAction/@ActionDefined/@showException
          sname
          showException
          sthrowable
          var:e
          sinterpretationType
          Self
          sattributeTemplate
          false
          schildsAttributeTemplate
          false
          svarScope
          Local
          sisSynchronized
          false
          sthrowException
          true
          suseOtherAction
          false
          screateLocalVarScope
          false
          ssaveReturn
          false
          sswitchResult
          false
          sdisableGlobalContext
          false
          sdebugLog
          false
          sdescriptors
          xworker.lang.workbench.WorkbenchActions/@ShowExceptionDialog
          sinheritDescription
          false
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_registDisabled
          false
          sth_noThingRegistViewer
          false
          sth_fileMonitor
          false
          sth_mark
          false
          sth_registQueryOnlySelf
          false
          snotXmlAttribute
          false
          sjson_isArray
          false
          sid
          showException
          @/@ExecuteThingAction/@actions/@runAction/@ActionDefined/@showMessage
          sname
          showMessage
          stitle
          lang:d=执行模型&en=Execute Model
          sicon
          ICON_INFORMATION
          sbuttons
          BUTTON_OK
          scontent
          var:message
          sinterpretationType
          Self
          sattributeTemplate
          false
          schildsAttributeTemplate
          false
          svarScope
          Local
          sisSynchronized
          false
          sthrowException
          true
          suseOtherAction
          false
          screateLocalVarScope
          false
          ssaveReturn
          false
          sswitchResult
          false
          sdisableGlobalContext
          false
          sdebugLog
          false
          sdescriptors
          xworker.lang.workbench.WorkbenchActions/@ShowMessageDialog
          sinheritDescription
          false
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_registDisabled
          false
          sth_noThingRegistViewer
          false
          sth_fileMonitor
          false
          sth_mark
          false
          sth_registQueryOnlySelf
          false
          snotXmlAttribute
          false
          sjson_isArray
          false
          sid
          showMessage
  @/@openDataObject
  sname
  openDataObject
  slabel
  Open Thing
  sdescriptors
  xworker.lang.MetaDescriptor3
  sextends
  xworker.lang.util.FunctionsRelation
  smany
  true
  seditCols
  2
  sinitialization
  false
  smodifier
  public
  sinheritDescription
  false
  sicon
  icons/folder_page.png
  snotXmlAttribute
  false
  sjson_isArray
  false
  szh_label
  打开模型
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_noThingRegistViewer
  false
  sth_fileMonitor
  false
  sth_deprecated
  false
  sth_mark
  false
  sth_registQueryOnlySelf
  false
  sid
  openDataObject
    @/@openDataObject/@actions
    sname
    actions
    sdescriptors
    xworker.lang.MetaThing/@actions
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    actions
      @/@openDataObject/@actions/@runAction
      sname
      runAction
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      svarScope
      Local
      sdisableGlobalContext
      false
      Scode
#$@text#$@
import xworker.lang.util.XWorkerUtils;

def thing = world.getThing(self.path);
if(thing == null){
    showMessage(actionContext, "message", "Thing not found, thing=" + self.path);
    return;
}else{
    XWorkerUtils.ideOpenThing(thing);
}
#$@text#$@
      sinterpretationType
      Action
      screateLocalVarScope
      false
      ssaveReturn
      false
      sswitchResult
      false
      sdebugLog
      false
      sdescriptors
      xworker.lang.actions.Actions/@GroovyAction
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      runAction
        @/@openDataObject/@actions/@runAction/@ActionDefined
        sname
        ActionDefined
        sdescriptors
        xworker.lang.actions.Inout/@ActionDefined
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_noThingRegistViewer
        false
        sth_fileMonitor
        false
        sth_mark
        false
        sth_registQueryOnlySelf
        false
        snotXmlAttribute
        false
        sjson_isArray
        false
        sid
        ActionDefined
          @/@openDataObject/@actions/@runAction/@ActionDefined/@showMessage
          sname
          showMessage
          stitle
          lang:d=执行模型&en=Execute Model
          sicon
          ICON_INFORMATION
          sbuttons
          BUTTON_OK
          scontent
          var:message
          sinterpretationType
          Self
          sattributeTemplate
          false
          schildsAttributeTemplate
          false
          svarScope
          Local
          sisSynchronized
          false
          sthrowException
          true
          suseOtherAction
          false
          screateLocalVarScope
          false
          ssaveReturn
          false
          sswitchResult
          false
          sdisableGlobalContext
          false
          sdebugLog
          false
          sdescriptors
          xworker.lang.workbench.WorkbenchActions/@ShowMessageDialog
          sinheritDescription
          false
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_registDisabled
          false
          sth_noThingRegistViewer
          false
          sth_fileMonitor
          false
          sth_mark
          false
          sth_registQueryOnlySelf
          false
          snotXmlAttribute
          false
          sjson_isArray
          false
          sid
          showMessage
    @/@openDataObject/@name
    sname
    name
    slabel
    Name
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    szh_label
    名称
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    name
    @/@openDataObject/@label
    sname
    label
    slabel
    Label
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    szh_label
    标签
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    label
    @/@openDataObject/@en_label1
    sname
    en_label
    slabel
    Label_en
    sshowLabel
    true
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    snotXmlAttribute
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    en_label1
    @/@openDataObject/@path
    sname
    path
    slabel
    Thing Path
    sinputtype
    dataSelector
    ssize
    60
    scolspan
    2
    sinheritDescription
    false
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    snotXmlAttribute
    false
    szh_label
    模型路径
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_noThingRegistViewer
    false
    sth_fileMonitor
    false
    sth_deprecated
    false
    sth_mark
    false
    sth_registQueryOnlySelf
    false
    sjson_isArray
    false
    sid
    path
    @/@openDataObject/@disabled
    sname
    disabled
    sinputtype
    truefalse
    sshowLabel
    true
    sreadOnly
    false
    sdefault
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    disabled
    @/@openDataObject/@description
    sname
    description
    slabel
    描述
    sinputtype
    html
    scolspan
    2
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    description
  @/@OpenThingTab
  sname
  OpenThingTab
  slabel
  打开模型Tab
  sdescriptors
  xworker.lang.MetaDescriptor3
  sextends
  xworker.lang.util.FunctionsRelation
  smany
  true
  seditCols
  2
  sformNoLabel
  false
  sinitialization
  false
  smodifier
  public
  sinheritDescription
  false
  sicon
  icons/application.png
  snotXmlAttribute
  false
  sjson_isArray
  false
  szh_label
  打开事物Tab
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  OpenThingTab
    @/@OpenThingTab/@actions
    sname
    actions
    sdescriptors
    xworker.lang.MetaThing/@actions
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    actions
      @/@OpenThingTab/@actions/@runAction
      sname
      runAction
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      svarScope
      Local
      sdisableGlobalContext
      false
      Scode
#$@text#$@
import xworker.lang.util.XWorkerUtils;

def thing = world.getThing(self.path);
if(thing == null){
    showMessage(actionContext, "message", "Thing not found, thing=" + self.path);
    return;
}else{
    XWorkerUtils.ideOpenThingTab(thing);
}
#$@text#$@
      sinterpretationType
      Action
      screateLocalVarScope
      false
      ssaveReturn
      false
      sswitchResult
      false
      sdebugLog
      false
      sdescriptors
      xworker.lang.actions.Actions/@GroovyAction
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      runAction
        @/@OpenThingTab/@actions/@runAction/@ActionDefined
        sname
        ActionDefined
        sdescriptors
        xworker.lang.actions.Inout/@ActionDefined
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_noThingRegistViewer
        false
        sth_fileMonitor
        false
        sth_mark
        false
        sth_registQueryOnlySelf
        false
        snotXmlAttribute
        false
        sjson_isArray
        false
        sid
        ActionDefined
          @/@OpenThingTab/@actions/@runAction/@ActionDefined/@showMessage
          sname
          showMessage
          stitle
          lang:d=执行模型&en=Execute Model
          sicon
          ICON_INFORMATION
          sbuttons
          BUTTON_OK
          scontent
          var:message
          sinterpretationType
          Self
          sattributeTemplate
          false
          schildsAttributeTemplate
          false
          svarScope
          Local
          sisSynchronized
          false
          sthrowException
          true
          suseOtherAction
          false
          screateLocalVarScope
          false
          ssaveReturn
          false
          sswitchResult
          false
          sdisableGlobalContext
          false
          sdebugLog
          false
          sdescriptors
          xworker.lang.workbench.WorkbenchActions/@ShowMessageDialog
          sinheritDescription
          false
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_registDisabled
          false
          sth_noThingRegistViewer
          false
          sth_fileMonitor
          false
          sth_mark
          false
          sth_registQueryOnlySelf
          false
          snotXmlAttribute
          false
          sjson_isArray
          false
          sid
          showMessage
    @/@OpenThingTab/@name
    sname
    name
    slabel
    Name
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    szh_label
    名称
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    name
    @/@OpenThingTab/@label
    sname
    label
    slabel
    Label
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    szh_label
    标签
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    label
    @/@OpenThingTab/@en_label1
    sname
    en_label
    slabel
    Label_en
    sshowLabel
    true
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    snotXmlAttribute
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    en_label1
    @/@OpenThingTab/@path
    sname
    path
    slabel
    Thing Path
    sinputtype
    dataSelector
    ssize
    60
    scolspan
    2
    sinheritDescription
    false
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    snotXmlAttribute
    false
    szh_label
    模型路径
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_noThingRegistViewer
    false
    sth_fileMonitor
    false
    sth_deprecated
    false
    sth_mark
    false
    sth_registQueryOnlySelf
    false
    sjson_isArray
    false
    sid
    path
    @/@OpenThingTab/@disabled
    sname
    disabled
    sinputtype
    truefalse
    sshowLabel
    true
    sreadOnly
    false
    sdefault
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    disabled
    @/@OpenThingTab/@description
    sname
    description
    slabel
    描述
    sinputtype
    html
    scolspan
    2
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    description
  @/@openComposite
  sname
  openComposite
  slabel
  Open SWT Composite
  sdescriptors
  xworker.lang.MetaDescriptor3
  sextends
  xworker.lang.util.FunctionsRelation
  smany
  true
  seditCols
  2
  sinitialization
  false
  smodifier
  public
  sinheritDescription
  false
  sicon
  icons/application.png
  snotXmlAttribute
  false
  sjson_isArray
  false
  szh_label
  打开SWT_Composite
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_mark
  false
  sid
  openComposite
    @/@openComposite/@actions
    sname
    actions
    sdescriptors
    xworker.lang.MetaThing/@actions
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    actions
      @/@openComposite/@actions/@runAction
      sname
      runAction
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      svarScope
      Local
      sdisableGlobalContext
      false
      Scode
#$@text#$@
import xworker.lang.util.XWorkerUtils;

def thing = world.getThing(self.path);
if(thing == null){
    showMessage(actionContext, "message", "Thing not found, thing=" + self.path);
    return;
}else{
    XWorkerUtils.ideOpenComposite(thing);
}
#$@text#$@
      sinterpretationType
      Action
      screateLocalVarScope
      false
      ssaveReturn
      false
      sswitchResult
      false
      sdebugLog
      false
      sdescriptors
      xworker.lang.actions.Actions/@GroovyAction
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      runAction
        @/@openComposite/@actions/@runAction/@ActionDefined
        sname
        ActionDefined
        sdescriptors
        xworker.lang.actions.Inout/@ActionDefined
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_noThingRegistViewer
        false
        sth_fileMonitor
        false
        sth_mark
        false
        sth_registQueryOnlySelf
        false
        snotXmlAttribute
        false
        sjson_isArray
        false
        sid
        ActionDefined
          @/@openComposite/@actions/@runAction/@ActionDefined/@showMessage
          sname
          showMessage
          stitle
          lang:d=执行模型&en=Execute Model
          sicon
          ICON_INFORMATION
          sbuttons
          BUTTON_OK
          scontent
          var:message
          sinterpretationType
          Self
          sattributeTemplate
          false
          schildsAttributeTemplate
          false
          svarScope
          Local
          sisSynchronized
          false
          sthrowException
          true
          suseOtherAction
          false
          screateLocalVarScope
          false
          ssaveReturn
          false
          sswitchResult
          false
          sdisableGlobalContext
          false
          sdebugLog
          false
          sdescriptors
          xworker.lang.workbench.WorkbenchActions/@ShowMessageDialog
          sinheritDescription
          false
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_registDisabled
          false
          sth_noThingRegistViewer
          false
          sth_fileMonitor
          false
          sth_mark
          false
          sth_registQueryOnlySelf
          false
          snotXmlAttribute
          false
          sjson_isArray
          false
          sid
          showMessage
    @/@openComposite/@name
    sname
    name
    slabel
    Name
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    szh_label
    名称
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    name
    @/@openComposite/@label
    sname
    label
    slabel
    Label
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    szh_label
    标签
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    label
    @/@openComposite/@en_label1
    sname
    en_label
    slabel
    Label_en
    sshowLabel
    true
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    snotXmlAttribute
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    en_label1
    @/@openComposite/@path
    sname
    path
    slabel
    Composite Path
    sinputtype
    dataSelector
    ssize
    60
    scolspan
    2
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    szh_label
    Composite路径
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    path
    @/@openComposite/@disabled
    sname
    disabled
    sinputtype
    truefalse
    sshowLabel
    true
    sreadOnly
    false
    sdefault
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    disabled
    @/@openComposite/@description
    sname
    description
    slabel
    描述
    sinputtype
    html
    scolspan
    2
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    description
  @/@openSwtShell
  sname
  openSwtShell
  slabel
  Open SWT Shell
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing,xworker.lang.MetaDescriptor3
  sextends
  xworker.lang.util.FunctionsRelation
  smany
  true
  seditCols
  2
  sinitialization
  false
  smodifier
  public
  sinheritDescription
  false
  sicon
  icons/application_double.png
  snotXmlAttribute
  false
  sjson_isArray
  false
  szh_label
  打开SWT_Shell
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_mark
  false
  sid
  openSwtShell
    @/@openSwtShell/@actions
    sname
    actions
    sdescriptors
    xworker.lang.MetaThing/@actions
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    actions
      @/@openSwtShell/@actions/@runAction
      sname
      runAction
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      svarScope
      Local
      sdisableGlobalContext
      false
      Scode
#$@text#$@
import java.lang.ref.WeakReference;

import xworker.lang.util.XWorkerUtils;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Display;

import org.xmeta.ActionContext;

def viewObject = world.getThing(self.path);
def dataObj = self;
if(viewObject == null){
    showMessage(actionContext, "message", "Thing not found, thing=" + self.path);
    return;
}else{
    if(dataObj.getBoolean("singleInstance")){
        def shellref = world.getData("functions_shell_" + viewObject.metadata.path); 
        if(shellref != null && shellref.get() != null && !shellref.get().isDisposed()){
            def shell = shellref.get();
            shell.getDisplay().asyncExec([
                run : {
                    shell.setVisible(true);
                    shell.setActive();
                }] as Runnable);                
            return;
        }
    }
           
    if(!dataObj.getBoolean("anotherThread")){
        ActionContext ac = new ActionContext(actionContext);
        ac.put("parent", Display.getCurrent().getActiveShell());
        def shell = viewObject.doAction("create", ac);
        
        if(dataObj.getBoolean("singleInstance")){
            def wr = new WeakReference(shell);
            world.setData("functions_shell_" + viewObject.metadata.path, wr); 
        }
        shell.open();
    } else{
       def currentActionContext = actionContext;
       def world = world;
        new Thread([
            run : {
                ActionContext ac = new ActionContext(currentActionContext);
                Display display = new Display ();
                ac.put("parent", display);
                def shell = viewObject.doAction("create", ac);
                if(dataObj.getBoolean("singleInstance")){
                    def wr = new WeakReference(shell);
                    world.setData("functions_shell_" + viewObject.metadata.path, wr); 
                }
                shell.open ();
        	    while (!shell.isDisposed ()) {
        	        try{
        	            if (!display.readAndDispatch ()) display.sleep ();
        	        }catch(Exception e){
        	            e.printStackTrace();
        	        }
        	    }
        	    display.dispose ();
            }] as Runnable).start();
    }      
}
#$@text#$@
      sinterpretationType
      Action
      screateLocalVarScope
      false
      ssaveReturn
      false
      sswitchResult
      false
      sdebugLog
      false
      sdescriptors
      xworker.lang.actions.Actions/@GroovyAction
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      runAction
        @/@openSwtShell/@actions/@runAction/@ActionDefined
        sname
        ActionDefined
        sdescriptors
        xworker.lang.actions.Inout/@ActionDefined
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_noThingRegistViewer
        false
        sth_fileMonitor
        false
        sth_mark
        false
        sth_registQueryOnlySelf
        false
        snotXmlAttribute
        false
        sjson_isArray
        false
        sid
        ActionDefined
          @/@openSwtShell/@actions/@runAction/@ActionDefined/@showMessage
          sname
          showMessage
          stitle
          lang:d=执行模型&en=Execute Model
          sicon
          ICON_INFORMATION
          sbuttons
          BUTTON_OK
          scontent
          var:message
          sinterpretationType
          Self
          sattributeTemplate
          false
          schildsAttributeTemplate
          false
          svarScope
          Local
          sisSynchronized
          false
          sthrowException
          true
          suseOtherAction
          false
          screateLocalVarScope
          false
          ssaveReturn
          false
          sswitchResult
          false
          sdisableGlobalContext
          false
          sdebugLog
          false
          sdescriptors
          xworker.lang.workbench.WorkbenchActions/@ShowMessageDialog
          sinheritDescription
          false
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_registDisabled
          false
          sth_noThingRegistViewer
          false
          sth_fileMonitor
          false
          sth_mark
          false
          sth_registQueryOnlySelf
          false
          snotXmlAttribute
          false
          sjson_isArray
          false
          sid
          showMessage
    @/@openSwtShell/@name
    sname
    name
    slabel
    Name
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    szh_label
    名称
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    name
    @/@openSwtShell/@label
    sname
    label
    slabel
    Label
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    szh_label
    标签
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    label
    @/@openSwtShell/@en_label1
    sname
    en_label
    slabel
    Label_en
    sshowLabel
    true
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    snotXmlAttribute
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    en_label1
    @/@openSwtShell/@singleInstance
    sname
    singleInstance
    slabel
    Single Instance
    sinputtype
    truefalse
    sdefault
    true
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    szh_label
    单实例
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    singleInstance
    @/@openSwtShell/@anotherThread
    sname
    anotherThread
    slabel
    Create Thread
    sinputtype
    truefalse
    sdefault
    true
    sdescription
    <p>是否运行于另一个线程，如果false那么在当前的线程中运行。</p>
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    szh_label
    独立线程
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    anotherThread
    @/@openSwtShell/@path
    sname
    path
    slabel
    Shell Path
    sinputtype
    dataSelector
    ssize
    60
    scolspan
    2
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    szh_label
    Shell路径
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    path
    @/@openSwtShell/@disabled
    sname
    disabled
    sinputtype
    truefalse
    sshowLabel
    true
    sreadOnly
    false
    sdefault
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    disabled
    @/@openSwtShell/@description
    sname
    description
    slabel
    描述
    sinputtype
    html
    scolspan
    2
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    description
  @/@htmlUrl
  sname
  htmlUrl
  slabel
  Html Url
  sdescriptors
  xworker.lang.MetaDescriptor3
  sextends
  xworker.lang.util.FunctionsRelation
  smany
  true
  seditCols
  2
  sinitialization
  false
  smodifier
  public
  sinheritDescription
  false
  sicon
  icons/world.png
  snotXmlAttribute
  false
  sjson_isArray
  false
  szh_label
  Html地址
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_mark
  false
  sid
  htmlUrl
    @/@htmlUrl/@actions
    sname
    actions
    sdescriptors
    xworker.lang.MetaThing/@actions
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    actions
      @/@htmlUrl/@actions/@runAction
      sname
      runAction
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      svarScope
      Local
      sdisableGlobalContext
      false
      Scode
#$@text#$@
import xworker.lang.util.XWorkerUtils;

XWorkerUtils.ideOpenUrl(self.getString("url"));
#$@text#$@
      sinterpretationType
      Action
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdescriptors
      xworker.lang.actions.Actions/@GroovyAction
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      runAction
    @/@htmlUrl/@name
    sname
    name
    slabel
    Name
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    szh_label
    名称
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    name
    @/@htmlUrl/@label
    sname
    label
    slabel
    Label
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    szh_label
    标签
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    label
    @/@htmlUrl/@en_label1
    sname
    en_label
    slabel
    Label_en
    sshowLabel
    true
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    snotXmlAttribute
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    en_label1
    @/@htmlUrl/@url
    sname
    url
    slabel
    Url
    ssize
    60
    scolspan
    2
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    url
    @/@htmlUrl/@disabled
    sname
    disabled
    sinputtype
    truefalse
    sshowLabel
    true
    sreadOnly
    false
    sdefault
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    disabled
    @/@htmlUrl/@description
    sname
    description
    slabel
    描述
    sinputtype
    html
    scolspan
    2
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    description
  @/@OpenThingDoc
  sname
  OpenThingDoc
  slabel
  打开模型文档
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  xworker.lang.util.FunctionsRelation
  smany
  true
  seditCols
  2
  sformNoLabel
  false
  sinitialization
  false
  smodifier
  public
  sinheritDescription
  false
  sicon
  icons/world.png
  sdescription
  <p>实际上是打开事物的description属性的文档。</p>
  snotXmlAttribute
  false
  sjson_isArray
  false
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_mark
  false
  sid
  OpenThingDoc
    @/@OpenThingDoc/@actions
    sname
    actions
    sdescriptors
    xworker.lang.MetaDescriptor3/@actions
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    actions
      @/@OpenThingDoc/@actions/@runAction
      sname
      runAction
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      svarScope
      Local
      sdisableGlobalContext
      false
      Scode
#$@text#$@
import xworker.lang.util.XWorkerUtils;

XWorkerUtils.ideOpenUrl(XWorkerUtils.getThingDescUrl(self.getString("thingPath")));
#$@text#$@
      sinterpretationType
      Action
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdescriptors
      xworker.lang.actions.Actions/@GroovyAction
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      runAction
    @/@OpenThingDoc/@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
    sid
    name
    @/@OpenThingDoc/@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
    sid
    label
    @/@OpenThingDoc/@en_label1
    sname
    en_label
    slabel
    Label_en
    sshowLabel
    true
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    snotXmlAttribute
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    en_label1
    @/@OpenThingDoc/@thingPath
    sname
    thingPath
    sinputtype
    dataSelector
    ssize
    60
    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
    sid
    thingPath
  @/@WebControl
  sname
  WebControl
  slabel
  WebControl
  sdescriptors
  xworker.lang.MetaDescriptor3
  sextends
  xworker.lang.util.FunctionsRelation
  smany
  true
  seditCols
  2
  sinitialization
  false
  smodifier
  public
  sinheritDescription
  false
  sicon
  icons/world_edit.png
  snotXmlAttribute
  false
  sjson_isArray
  false
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_mark
  false
  sid
  WebControl
    @/@WebControl/@actions
    sname
    actions
    sdescriptors
    xworker.lang.MetaThing/@actions
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    actions
      @/@WebControl/@actions/@runAction
      sname
      runAction
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      svarScope
      Local
      sdisableGlobalContext
      false
      Scode
#$@text#$@
import xworker.lang.util.XWorkerUtils;
import xworker.lang.workbench.IWorkbench;
import org.eclipse.swt.SWT;

def thing = world.getThing(self.path);
if(thing == null){
    showMessage(actionContext, "message", "Thing not found, thing=" + self.path);
    return;
}else{
    XWorkerUtils.ideOpenWebControl(thing);
}
#$@text#$@
      sinterpretationType
      Action
      screateLocalVarScope
      false
      ssaveReturn
      false
      sswitchResult
      false
      sdebugLog
      false
      sdescriptors
      xworker.lang.actions.Actions/@GroovyAction
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      runAction
        @/@WebControl/@actions/@runAction/@ActionDefined
        sname
        ActionDefined
        sdescriptors
        xworker.lang.actions.Inout/@ActionDefined
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_noThingRegistViewer
        false
        sth_fileMonitor
        false
        sth_mark
        false
        sth_registQueryOnlySelf
        false
        snotXmlAttribute
        false
        sjson_isArray
        false
        sid
        ActionDefined
          @/@WebControl/@actions/@runAction/@ActionDefined/@showMessage
          sname
          showMessage
          stitle
          lang:d=执行模型&en=Execute Model
          sicon
          ICON_INFORMATION
          sbuttons
          BUTTON_OK
          scontent
          var:message
          sinterpretationType
          Self
          sattributeTemplate
          false
          schildsAttributeTemplate
          false
          svarScope
          Local
          sisSynchronized
          false
          sthrowException
          true
          suseOtherAction
          false
          screateLocalVarScope
          false
          ssaveReturn
          false
          sswitchResult
          false
          sdisableGlobalContext
          false
          sdebugLog
          false
          sdescriptors
          xworker.lang.workbench.WorkbenchActions/@ShowMessageDialog
          sinheritDescription
          false
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_registDisabled
          false
          sth_noThingRegistViewer
          false
          sth_fileMonitor
          false
          sth_mark
          false
          sth_registQueryOnlySelf
          false
          snotXmlAttribute
          false
          sjson_isArray
          false
          sid
          showMessage
    @/@WebControl/@name
    sname
    name
    slabel
    Name
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    szh_label
    名称
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    name
    @/@WebControl/@label
    sname
    label
    slabel
    Label
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    szh_label
    标签
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    label
    @/@WebControl/@en_label1
    sname
    en_label
    slabel
    Label_en
    sshowLabel
    true
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    snotXmlAttribute
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    en_label1
    @/@WebControl/@path
    sname
    path
    slabel
    Path
    sinputtype
    dataSelector
    ssize
    60
    scolspan
    2
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    szh_label
    路径
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    path
    @/@WebControl/@disabled
    sname
    disabled
    sinputtype
    truefalse
    sshowLabel
    true
    sreadOnly
    false
    sdefault
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    disabled
    @/@WebControl/@description
    sname
    description
    slabel
    描述
    sinputtype
    html
    scolspan
    2
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    description
  @/@CreateNewThing
  sname
  CreateNewThing
  slabel
  创建新模型
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  xworker.lang.util.FunctionsRelation
  smany
  true
  seditCols
  2
  sformNoLabel
  false
  sinitialization
  false
  smodifier
  public
  sinheritDescription
  false
  snotXmlAttribute
  false
  sjson_isArray
  false
  szh_label
  Create New Model
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_noThingRegistViewer
  false
  sth_fileMonitor
  false
  sth_deprecated
  false
  sth_mark
  false
  sth_registQueryOnlySelf
  false
  sid
  CreateNewThing
    @/@CreateNewThing/@actions
    sname
    actions
    sdescriptors
    xworker.lang.MetaDescriptor3/@actions
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    actions
      @/@CreateNewThing/@actions/@runAction
      sname
      runAction
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      svarScope
      Local
      sdisableGlobalContext
      false
      Scode
#$@text#$@
import org.xmeta.Thing;

def thing = new Thing("xworker.ide.worldexplorer.actions.ExplorerActions/@OpenCreateThingDialog");
thing.initDefaultValue();
thing.set("descriptor", self.getString("descriptorPath"));
thing.doAction("run", actionContext);
#$@text#$@
      sinterpretationType
      Action
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdescriptors
      xworker.lang.actions.Actions/@GroovyAction
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      runAction
    @/@CreateNewThing/@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
    sid
    name
    @/@CreateNewThing/@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
    sid
    label
    @/@CreateNewThing/@descriptorPath
    sname
    descriptorPath
    sinputtype
    dataSelector
    ssize
    60
    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
    sid
    descriptorPath
  @/@startThingProcess
  sname
  startThingProcess
  slabel
  启动模型进程
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  xworker.lang.util.FunctionsRelation
  smany
  true
  seditCols
  2
  sformNoLabel
  false
  sinitialization
  false
  smodifier
  public
  sinheritDescription
  false
  sdescription
  <p>以进程的方式执行一个模型的动作。</p>
  snotXmlAttribute
  false
  sjson_isArray
  false
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_mark
  false
  sid
  startThingProcess
    @/@startThingProcess/@actions
    sname
    actions
    sdescriptors
    xworker.lang.MetaDescriptor3/@actions
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    actions
      @/@startThingProcess/@actions/@runAction
      sname
      runAction
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      suseOuterJava
      true
      suseInnerJava
      false
      souterClassName
      xworker.core.actions.ExecuteXWorkerProcess
      smethodName
      run
      sdisableGlobalContext
      false
      sattributeTemplate
      false
      sinterpretationType
      Action
      svarScope
      Global
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdebugLog
      false
      sdescriptors
      xworker.lang.actions.Actions/@JavaAction
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      runAction
    @/@startThingProcess/@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
    sid
    name
    @/@startThingProcess/@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
    sid
    label
    @/@startThingProcess/@path
    sname
    thingPath
    sinputtype
    dataSelector
    ssize
    60
    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
    sid
    path
    @/@startThingProcess/@action
    sname
    action
    sshowLabel
    true
    sreadOnly
    false
    sdefault
    run
    sinheritDescription
    false
    sdescription
    <p>需要执行的动作。</p>
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    snotXmlAttribute
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    action
    @/@startThingProcess/@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
    sid
    description
  @/@name
  sname
  name
  slabel
  名称
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sen_label
  Name
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sid
  name
  @/@label
  sname
  label
  slabel
  标签
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sen_label
  Label
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sid
  label
  @/@description
  sname
  description
  slabel
  描述
  sinputtype
  html
  scolspan
  2
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sen_label
  Description
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sid
  description
  @/@Seperator
  sname
  Seperator
  slabel
  分隔符
  sdescriptors
  xworker.lang.MetaDescriptor3
  sextends
  xworker.lang.util.FunctionsRelation
  smany
  true
  seditCols
  2
  sinitialization
  false
  smodifier
  public
  sinheritDescription
  false
  snotXmlAttribute
  false
  sjson_isArray
  false
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_mark
  false
  sid
  Seperator
    @/@Seperator/@accelerator
    sname
    accelerator
    sgroup
    Menu
    sshowLabel
    true
    sreadOnly
    false
    sinheritDescription
    false
    sdescription
    <p>如Ctrl+S等。</p>
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    snotXmlAttribute
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    accelerator
