^1682594986968
@
sname
ThingGuide
slabel
ThingGuide
sdescriptors
xworker.lang.MetaDescriptor3
sextends
xworker.core.util.ThingGuideNodes
smany
true
seditCols
2
sformNoLabel
false
sinitialization
false
smodifier
public
sinheritDescription
false
sicon
icons/report_user.png
Sdescription
#$@text#$@
<p>模型编辑向导，可以通过向导一步一步的编辑修改模型。</p>

<p><strong>模型编辑器</strong></p>

<p>&nbsp;&nbsp;&nbsp; 目前模型编辑向导只能在模型编辑器中使用。</p>

<p><span style="color: rgb(255, 0, 0);"><strong>没有Redo和Undo</strong></span></p>

<p>&nbsp;&nbsp;&nbsp; 模型向导会直接修改并保存模型，且没有撤回的操作等。在向导过程中修改的模型，即使向导撤销了对模型的修改也不会撤销。</p>

<p><strong>变量和常用方法</strong></p>

<ul>
	<li><strong>thingGuide: xworker.swt.ide.utils.ThingGuide</strong><br />
	在子节点中可以使用的变量。<br />
	&nbsp;</li>
	<li><strong>ActionContext thingGuide.getActionContext()</strong><br />
	获取正在编辑的模型所在变量上下文，如模型编辑器的上下文。一般是创建thingGuide时的变量上下文。<br />
	&nbsp;</li>
	<li><strong>Thing thingGuide.getEditThing()</strong><br />
	获取正在编辑的模型。<br />
	&nbsp;</li>
	<li><strong>void thingGuide.setData(String key , Object value)</strong><br />
	设置数据。可以用来在节点之前传递数据。<br />
	&nbsp;</li>
	<li><strong>Object thingGuide.getData(String key)</strong><br />
	获取数据。</li>
</ul>

<p><strong>节点</strong></p>

<p>&nbsp;&nbsp;&nbsp; 可以参看<a href="do?sc=xworker.ide.worldexplorer.swt.http.ThingDoc/@desc&amp;thing=xworker.core.util.ThingGuideNode">节点文档</a>。</p>

<p>&nbsp;&nbsp;&nbsp; 从节点中主动结束节点或进去其它节点的方法：</p>

<ul>
	<li><strong>thingGuiide.setNextNode(Thing node)</strong><br />
	进入下一个节点。<br />
	&nbsp;</li>
	<li><strong>thingGuide.callNode(Thing node)</strong><br />
	调用一个节点，该节点完成后会回到当前节点。<br />
	&nbsp;</li>
	<li><strong>thingGuide.callThingGuide(Thing thingGuide)</strong><br />
	调用一个模型向导，该模型向导结束后会回到当前节点。<br />
	&nbsp;</li>
	<li><strong>thingGuide.finishNode(Thing node)</strong><br />
	结束节点，node一般是当前节点，当前节点需要自己。</li>
</ul>

<p>&nbsp;</p>

<p>&nbsp;</p>
#$@text#$@
snotXmlAttribute
false
sjson_isArray
false
sjson_attribute
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_noThingRegistViewer
false
sth_fileMonitor
false
sth_deprecated
false
Sen_description
#$@text#$@
<p>Model editing wizard, you can edit and modify the model step by step through the wizard. </p>

<p><strong>Model Editor</strong></p>

<p>&nbsp;&nbsp;&nbsp; Currently, the model editing wizard can only be used in the model editor. </p>

<p><strong>No Redo and Undo</strong></p>

<p>&nbsp;&nbsp;&nbsp; The model wizard will modify and save the model directly, and there will be no undo operations, etc. </p>

<p><strong>Variables and common methods</strong></p>

<ul>
<li><strong>thingGuide: xworker.swt.ide.utils.ThingGuide</strong><br />
Variables that can be used in child nodes. <br />
&nbsp;</li>
<li><strong>ActionContext thingGuide.getActionContext()</strong><br />
Get the variable context of the model being edited, such as the context of the model editor. Generally, it is the variable context when the thingGuide is created. <br />
&nbsp;</li>
<li><strong>Thing thingGuide.getEditThing()</strong><br />
Get the model being edited. <br />
&nbsp;</li>
<li><strong>void thingGuide.setData(String key, Object value)</strong><br />
Set the data. Can be used to pass data before the node. <br />
&nbsp;</li>
<li><strong>Object thingGuide.getData(String key)</strong><br />
	retrieve data. </li>
</ul>

<p><strong>Node</strong></p>

<p>&nbsp;&nbsp;&nbsp; can refer to <a href="do?sc=xworker.ide.worldexplorer.swt.http.ThingDoc/@desc&amp;thing=xworker.core.util.ThingGuideNode">node documentation</a> a>. </p>

<p>&nbsp;</p>

<p>&nbsp;</p>
#$@text#$@
sth_mark
false
sth_registQueryOnlySelf
false
  @/@actions
  sname
  actions
  sdescriptors
  xworker.lang.MetaDescriptor3/@actions
  sinheritDescription
  false
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  actions
    @/@actions/@create
    sname
    create
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    suseInnerJava
    false
    souterClassName
    xworker.swt.ide.utils.ThingGuideActions
    smethodName
    create
    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_registDisabled
    false
    sth_mark
    false
    sid
    create
    @/@actions/@getNextNode
    sname
    getNextNode
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    suseInnerJava
    false
    souterClassName
    xworker.swt.ide.utils.ThingGuideActions
    smethodName
    thingGuideGetNextNode
    sdisableGlobalContext
    false
    Scode
#$@text#$@
def node = world.getThing(self.getStringBlankAsNull("startNode"));
if(node == null){
    def nodes = self.getChilds("ThingGuideNode");
    if(nodes.size() > 0){
        node = nodes.get(0);
    }
}

return node;
#$@text#$@
    sattributeTemplate
    false
    sinterpretationType
    Action
    svarScope
    Local
    screateLocalVarScope
    false
    ssaveReturn
    false
    sswitchResult
    false
    sdebugLog
    false
    sdescriptors
    xworker.lang.actions.Actions/@JavaAction
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_noThingRegistViewer
    false
    sth_fileMonitor
    false
    sth_deprecated
    false
    sth_mark
    false
    sth_registQueryOnlySelf
    false
    snotXmlAttribute
    false
    sjson_isArray
    false
    sid
    getNextNode
    @/@actions/@init
    sname
    init
    sunimplementedException
    false
    sdescriptors
    xworker.lang.actions.Actions/@NOOP
    Sdescription
#$@text#$@
<p>创建后的初始化。</p>
#$@text#$@
    sinterpretationType
    Self
    sattributeTemplate
    false
    schildsAttributeTemplate
    false
    svarScope
    Local
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    screateLocalVarScope
    false
    ssaveReturn
    false
    sswitchResult
    false
    sdisableGlobalContext
    false
    sdebugLog
    false
    susage
    event
    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
    sgroupDescriptor
    false
    sid
    init
      @/@actions/@init/@ins
      sisValidate
      false
      sname
      ins
      sdescriptors
      xworker.lang.actions.Inout/@ins
      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
      sgroupDescriptor
      false
      sid
      ins
        @/@actions/@init/@ins/@thingGuide
        sname
        thingGuide
        stype
        xworker.swt.ide.utils.ThingGuide
        stypeCheck
        false
        soptional
        true
        scheck
        false
        scheckLevel
        exception
        sdescriptors
        xworker.lang.actions.Inout/@ins/@param
        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
        sgroupDescriptor
        false
        sid
        thingGuide
  @/@VariablesDescs
  sname
  VariablesDescs
  sdescriptors
  xworker.lang.MetaThing/@VariablesDesc
  sinheritDescription
  false
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_fileMonitor
  false
  sth_mark
  false
  sid
  VariablesDescs
    @/@VariablesDescs/@thingGuide
    sname
    thingGuide
    svarName
    thingGuide
    spassive
    false
    stype
    object
    sclassName
    xworker.swt.ide.utils.ThingGuide
    sdescriptors
    xworker.lang.MetaThing/@VariablesDesc/@Object
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_fileMonitor
    false
    sth_mark
    false
    sid
    thingGuide
  @/@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_registDisabled
  false
  sth_mark
  false
  sid
  name
  @/@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_registDisabled
  false
  sth_mark
  false
  sid
  label
  @/@startNode
  sname
  startNode
  sinputtype
  dataSelector
  ssize
  60
  sshowLabel
  true
  slabelAlign
  right
  slabelVAlign
  baseline
  smodifier
  private
  sreadOnly
  false
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p>启动应该总是第一个GuideNode节点。此属性鸡肋，故先屏蔽。</p>
#$@text#$@
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  snotXmlAttribute
  false
  sxmlJsonIncludeDefault
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  startNode
  @/@autoExecute
  sname
  autoExecute
  sinputtype
  truefalse
  sgroup
  AutoSelector
  sshowLabel
  true
  sreadOnly
  false
  sinheritDescription
  false
  sdescription
  <p>自动向导选择器中需要的属性，如果为true，那么可以被自动选择器所选择。</p>
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  snotXmlAttribute
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  autoExecute
  @/@group
  sname
  group
  ssize
  50
  sshowLabel
  true
  slabelAlign
  right
  slabelVAlign
  baseline
  smodifier
  public
  sreadOnly
  false
  sinheritDescription
  false
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  snotXmlAttribute
  false
  sxmlJsonIncludeDefault
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_noThingRegistViewer
  false
  sth_fileMonitor
  false
  sth_mark
  false
  sth_registQueryOnlySelf
  false
  sjson_isArray
  false
  sid
  group
  @/@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_registDisabled
  false
  sth_mark
  false
  sid
  description
  @/@actions1
  sname
  actions
  slabel
  动作
  sdescriptors
  xworker.lang.MetaDescriptor2/@thing
  sextends
  xworker.lang.actions.Actions
  smany
  true
  seditCols
  2
  smodifier
  public
  szh_label
  动作
  sen_label
  Actions
  sinheritDescription
  true
  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
  actions1
    @/@actions1/@name
    sname
    name
    sdescriptors
    xworker.lang.MetaDescriptor2/@attribute
    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
    name
