^1640696295925
@
sname
SwtNavigationTreeAction
slabel
SwtNavigationTreeAction
sdescriptors
xworker.lang.MetaDescriptor3
sextends
xworker.lang.actions.SelfAction
smany
true
seditCols
2
sinitialization
false
sgroup
xworker.app_swt.workbentch
smodifier
public
sinheritDescription
false
Sdescription
#$@text#$@
<p>一个用于SWT导航树选择事件的动作，主要通过数节点的类型执行不同的动作。</p>

<p>子事物TypeAction的run行为定义可执行的动作，可以使用预置的类型动作也可以自定义。</p>

<p>所有子节点都被当作是TypeAction。</p>

<p><strong>也可以接受树节点的getData()的url字段</strong></p>

<ul>
	<li><strong>editor:xxx开头</strong><br />
	打开编辑器xxx。</li>
	<li><strong>view:xx开头</strong><br />
	打开视图xxx。</li>
	<li><strong>其他</strong><br />
	执行动作，使用的是工作台的变量上下文。</li>
</ul>
#$@text#$@
snotXmlAttribute
false
sth_createIndex
true
sth_registThing
child|xworker.lang.actions.Actions
  @/@actions
  sname
  actions
  sdescriptors
  xworker.lang.MetaDescriptor3/@actions
  sth_createIndex
  false
  sid
  actions
    @/@actions/@run
    sname
    run
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    souterClassName
    xworker.swt.app.view.swt.app.workbentch.actions.SwtNavigationTreeActionCreator
    smethodName
    run
    sdisableGlobalContext
    false
    sdescriptors
    xworker.lang.actions.JavaAction
    sth_createIndex
    false
    sid
    run
  @/@name
  sname
  name
  sinheritDescription
  false
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sid
  name
  @/@label
  sname
  label
  sinheritDescription
  false
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sid
  label
  @/@TypeAction
  sname
  TypeAction
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  smany
  true
  seditCols
  2
  sinitialization
  false
  smodifier
  public
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p>本TypeAction是否执行是根据type（类型）的，如果类型等于本事物的名称，那么执行，否则不执行。</p>
<p>类型的获取方法是先判断typeSource：</p>
<ul>
    <li>itemData<br />
    树节点的item.getData(&lt;typeName&gt;)的值为type。<br />
    &nbsp;</li>
    <li>data<br />
    Ognl.getValue(&lt;typeName&gt;, item.getData())的值为type。</li>
</ul>
<p>&nbsp;&nbsp;&nbsp; 注：其中typeName为本事物的typeName属性值，其中type==self.name则此TypeAction执行。</p>
<p>符合条件后执行TypeAction的run方法，可以重载run方法。</p>
#$@text#$@
  sth_createIndex
  false
  sid
  TypeAction
    @/@TypeAction/@actions
    sname
    actions
    sdescriptors
    xworker.lang.MetaDescriptor3/@actions
    sth_createIndex
    false
    sid
    actions
      @/@TypeAction/@actions/@run
      sname
      run
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      suseOuterJava
      true
      souterClassName
      xworker.swt.app.view.swt.app.workbentch.actions.SwtNavigationTreeActionTypeActionCreator
      smethodName
      run
      sdisableGlobalContext
      false
      sdescriptors
      xworker.lang.actions.JavaAction
      sth_createIndex
      false
      sid
      run
    @/@TypeAction/@name
    sname
    name
    sinheritDescription
    false
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    name
    @/@TypeAction/@label
    sname
    label
    sinheritDescription
    false
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    label
    @/@TypeAction/@typeSource
    sname
    typeSource
    sinputtype
    select
    sreadOnly
    false
    sdefault
    data
    sinheritDescription
    false
    Sdescription
#$@text#$@
<p>当点击树形菜单的一个节点时，需要树的节点的数据来匹配TypeAciton，typeSource和typeName分别指定数据从哪里来和要匹配数据的那个属性。</p>
<p>数据来源。</p>
<ul>
    <li>itemData<br />
    通过TreeItem.getData(&lt;<span style="color: #ff0000">typeName</span>&gt;)取类型值。<br />
    如果有子模型，通常子模型的模型标识的变量名是_modelId。<br />
    &nbsp;</li>
    <li>data<br />
    通过TreeItem.getData().&lt;<span style="color: #ff0000">typeName</span>&gt;取类型值。</li>
</ul>
<p>使用Ognl取值，值是和<span style="color: #ff0000"><strong>本事物的名称</strong></span>做等于比对。</p>
#$@text#$@
    svalidateAllowBlank
    true
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    typeSource
      @/@TypeAction/@typeSource/@itemData
      sname
      itemData
      slabel
      itemData
      svalue
      itemData
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute/@value
      sth_createIndex
      false
      sid
      itemData
      @/@TypeAction/@typeSource/@data
      sname
      data
      slabel
      data
      svalue
      data
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute/@value
      sth_createIndex
      false
      sid
      data
    @/@TypeAction/@typeName
    sname
    typeName
    sreadOnly
    false
    sdefault
    tabId
    sinheritDescription
    false
    sdescription
    <p>对应导航菜单中的名称。</p>
    svalidateAllowBlank
    true
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    typeName
    @/@TypeAction/@type
    sname
    method
    sinputtype
    select
    sdefault
    openEditor
    sinheritDescription
    false
    Sdescription
#$@text#$@
<p>执行方法：</p>
<ul>
    <li>openEditor<br />
    打开一个编辑器，value是编辑器的名称。<br />
    &nbsp;</li>
    <li>action<br />
    执行动作，action为动作的事物路径。</li>
</ul>
#$@text#$@
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    type
      @/@TypeAction/@type/@openEditor
      sname
      openEditor
      slabel
      openEditor
      svalue
      openEditor
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute/@value
      sth_createIndex
      false
      sid
      openEditor
      @/@TypeAction/@type/@action
      sname
      action
      slabel
      action
      svalue
      action
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute/@value
      sth_createIndex
      false
      sid
      action
    @/@TypeAction/@value
    sname
    value
    ssize
    60
    scolspan
    2
    sinheritDescription
    false
    Sdescription
#$@text#$@
<p>一个常量值，TypeAction可能会需要。</p>
<p>如当type=openEditor时，value就是editor的名称。</p>
#$@text#$@
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    value
    @/@TypeAction/@actions1
    sname
    actions
    slabel
    Actions
    sdescriptors
    xworker.lang.MetaDescriptor2/@thing
    sextends
    xworker.lang.actions.Actions
    szh_label
    动作
    sid
    actions1
      @/@TypeAction/@actions1/@name
      sname
      name
      sdescriptors
      xworker.lang.MetaDescriptor2/@attribute
      sid
      name
