^1652339940631
@
sname
DataObjectSelector
slabel
DataObjectSelector
sdescriptors
xworker.swt.widgets.Display
  @/@shell
  sname
  shell
  stext
  label:xworker.swt.ide.worldexplorer.swt.tools.ThingSelector/@shell/@Resource/@I18nResource/@titile
  sstyle
  PRIMARY_MODAL
  sNO_TRIM
  false
  sCLOSE
  true
  sTITLE
  true
  sMIN
  false
  sMAX
  false
  sBORDER
  false
  sRESIZE
  true
  sON_TOP
  false
  sTOOL
  false
  sNO_FOCUS
  false
  swidth
  600
  sheight
  600
  scenterScreen
  true
  spack
  false
  smaximized
  false
  sfullScreen
  false
  sdesign
  true
  sisIde
  false
  sdesignDefaultOpen
  false
  sexitOnDispose
  false
  sH_SCROLL
  false
  sV_SCROLL
  false
  sNO_BACKGROUND
  false
  sNO_MERGE_PAINTS
  false
  sNO_REDRAW_RESIZE
  false
  sNO_RADIO_GROUP
  false
  sEMBEDDED
  false
  sDOUBLE_BUFFERED
  false
  slabel
  shell
  scapture
  false
  senabled
  true
  sredraw
  true
  svisible
  true
  sdescriptors
  xworker.swt.widgets.Display/@Shell
  sid
  shell
    @/@shell/@shellGridLayout
    sname
    shellGridLayout
    smakeColumnsEqualWidth
    false
    smarginWidth
    5
    smarginHeight
    5
    smarginLeft
    0
    smarginTop
    0
    smarginRight
    0
    smarginBottom
    0
    shorizontalSpacing
    5
    sverticalSpacing
    5
    slabel
    shellGridLayout
    sdescriptors
    xworker.swt.Layouts/@GridLayout
    sid
    shellGridLayout
    @/@shell/@Resource
    sname
    resources
    slabel
    resources
    sdescriptors
    xworker.swt.Widgets/@Resource
    sid
    Resource
      @/@shell/@Resource/@projectImage
      sname
      projectImage
      slabel
      projectImage
      stype
      Image
      simageFile
      /xworker/ide/images/project.gif
      sdescriptors
      xworker.swt.util.Resource/@Image
      sid
      projectImage
      @/@shell/@Resource/@project1Image
      sname
      project1Image
      slabel
      project1Image
      stype
      Image
      simageFile
      /xworker/ide/images/project1.gif
      sdescriptors
      xworker.swt.util.Resource/@Image
      sid
      project1Image
      @/@shell/@Resource/@factoryImage
      sname
      factoryImage
      slabel
      factoryImage
      stype
      Image
      simageFile
      /xworker/ide/images/factory.gif
      sdescriptors
      xworker.swt.util.Resource/@Image
      sid
      factoryImage
      @/@shell/@Resource/@packageIamge
      sname
      packageImage
      slabel
      packageImage
      stype
      Image
      simageFile
      /xworker/ide/images/package.gif
      sdescriptors
      xworker.swt.util.Resource/@Image
      sid
      packageIamge
      @/@shell/@Resource/@dataObjectImage
      sname
      dataObjectImage
      slabel
      dataObjectImage
      stype
      Image
      simageFile
      /xworker/ide/images/dataObject.gif
      sdescriptors
      xworker.swt.util.Resource/@Image
      sid
      dataObjectImage
      @/@shell/@Resource/@dataObjectChildImage
      sname
      dataObjectChildImage
      slabel
      dataObjectChildImage
      stype
      Image
      simageFile
      /xworker/ide/images/dataObjectChild.gif
      sdescriptors
      xworker.swt.util.Resource/@Image
      sid
      dataObjectChildImage
      @/@shell/@Resource/@I18nResource
      sname
      I18nResource
      sdescriptors
      xworker.swt.util.Resource/@I18nResource
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      I18nResource
        @/@shell/@Resource/@I18nResource/@titile
        sname
        titile
        slabel
        模型选择器
        sen_label
        Model Selector
        sdescriptors
        xworker.core.util.I18nResource/@resource
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_mark
        false
        sid
        titile
        @/@shell/@Resource/@I18nResource/@pathLabel
        sname
        pathLabel
        slabel
        路径：
        sen_label
        Path:
        sdescriptors
        xworker.core.util.I18nResource/@resource
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_mark
        false
        sid
        pathLabel
        @/@shell/@Resource/@I18nResource/@okButton
        sname
        okButton
        slabel
        确定（&O）
        sen_label
        Ok(&O)
        sdescriptors
        xworker.core.util.I18nResource/@resource
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_mark
        false
        sid
        okButton
        @/@shell/@Resource/@I18nResource/@cancelButton
        sname
        cancelButton
        slabel
        取消（&C）
        sen_label
        Cancel(&C)
        sdescriptors
        xworker.core.util.I18nResource/@resource
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_mark
        false
        sid
        cancelButton
        @/@shell/@Resource/@I18nResource/@thingViewTabItem
        sname
        thingViewTabItem
        slabel
        模型浏览
        sen_label
        Model Viewer
        sdescriptors
        xworker.core.util.I18nResource/@resource
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_mark
        false
        sid
        thingViewTabItem
        @/@shell/@Resource/@I18nResource/@RelationTabItem
        sname
        RelationTabItem
        slabel
        关联模型
        sen_label
        Model Relation
        sdescriptors
        xworker.core.util.I18nResource/@resource
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_mark
        false
        sid
        RelationTabItem
        @/@shell/@Resource/@I18nResource/@thingRegistTabItem
        sname
        thingRegistTabItem
        slabel
        模型注册
        sen_label
        Model Regist
        sdescriptors
        xworker.core.util.I18nResource/@resource
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_mark
        false
        sid
        thingRegistTabItem
        @/@shell/@Resource/@I18nResource/@thingLabel
        sname
        thingLabel
        slabel
        模型：
        sen_label
        Model:
        sdescriptors
        xworker.core.util.I18nResource/@resource
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_mark
        false
        sid
        thingLabel
        @/@shell/@Resource/@I18nResource/@relationTypeLabel
        sname
        relationTypeLabel
        slabel
        关联类型：
        sen_label
        Relation Type:
        sdescriptors
        xworker.core.util.I18nResource/@resource
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_mark
        false
        sid
        relationTypeLabel
        @/@shell/@Resource/@I18nResource/@keywordsLabel
        sname
        keywordsLabel
        slabel
        关键字（如有多个用空格分开）：
        sen_label
        Key Words:
        sdescriptors
        xworker.core.util.I18nResource/@resource
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_mark
        false
        sid
        keywordsLabel
        @/@shell/@Resource/@I18nResource/@searchButton
        sname
        searchButton
        slabel
        查找
        sen_label
        Search
        sdescriptors
        xworker.core.util.I18nResource/@resource
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_mark
        false
        sid
        searchButton
        @/@shell/@Resource/@I18nResource/@returnButton
        sname
        returnButton
        slabel
        返回
        sen_label
        Return
        sdescriptors
        xworker.core.util.I18nResource/@resource
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_mark
        false
        sid
        returnButton
        @/@shell/@Resource/@I18nResource/@gointoButton
        sname
        gointoButton
        slabel
        进入
        sen_label
        Gointo
        sdescriptors
        xworker.core.util.I18nResource/@resource
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_mark
        false
        sid
        gointoButton
        @/@shell/@Resource/@I18nResource/@resetButton
        sname
        resetButton
        slabel
        重置
        sen_label
        Reset
        sdescriptors
        xworker.core.util.I18nResource/@resource
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_mark
        false
        sid
        resetButton
    @/@shell/@button2Cell
    sname
    button2Cell
    sBORDER
    false
    sH_SCROLL
    false
    sV_SCROLL
    false
    sNO_BACKGROUND
    false
    sNO_FOCUS
    false
    sNO_MERGE_PAINTS
    false
    sNO_REDRAW_RESIZE
    false
    sNO_RADIO_GROUP
    false
    sEMBEDDED
    false
    sDOUBLE_BUFFERED
    false
    slabel
    button2Cell
    sdescriptors
    xworker.swt.Widgets/@Composite
    sid
    button2Cell
      @/@shell/@button2Cell/@button2CellGridLayout
      sname
      button2CellGridLayout
      snumColumns
      5
      smakeColumnsEqualWidth
      false
      smarginWidth
      5
      smarginHeight
      5
      smarginLeft
      0
      smarginTop
      0
      smarginRight
      0
      smarginBottom
      0
      shorizontalSpacing
      5
      sverticalSpacing
      5
      slabel
      button2CellGridLayout
      sdescriptors
      xworker.swt.Layouts/@GridLayout
      sid
      button2CellGridLayout
      @/@shell/@button2Cell/@pathLabel
      sname
      pathLabel
      sBORDER
      false
      stype
      HORIZONTAL
      sshadow
      SHADOW_OUT
      salignment
      LEFT
      stext
      label:xworker.swt.ide.worldexplorer.swt.tools.ThingSelector/@shell/@Resource/@I18nResource/@pathLabel
      scapture
      false
      senabled
      true
      sredraw
      true
      svisible
      true
      slabel
      pathLabel
      sdescriptors
      xworker.swt.Widgets/@Label
      sid
      pathLabel
      @/@shell/@button2Cell/@pathText
      sname
      pathText
      sstyle
      SINGLE
      sH_SCROLL
      false
      sV_SCROLL
      false
      sWRAP
      false
      sREAD_ONLY
      false
      sPASSWORD
      false
      sSEARCH
      false
      sCANCEL
      false
      sBORDER
      true
      salign
      LEFT
      slabel
      pathText
      sdescriptors
      xworker.swt.Widgets/@Text
      sid
      pathText
        @/@shell/@button2Cell/@pathText/@pathTextGridData
        sname
        pathTextGridData
        shorizontalIndent
        0
        swidth
        300
        sheight
        -1
        shorizontalAlignment
        BEGINNING
        sverticalAlignment
        CENTER
        shorizontalSpan
        1
        sverticalSpan
        1
        sgrabExcessHorizontalSpace
        false
        sgrabExcessVerticalSpace
        false
        slabel
        pathTextGridData
        sdescriptors
        xworker.swt.Commons/@GridData
        sid
        pathTextGridData
      @/@shell/@button2Cell/@okButton
      sname
      okButton
      stext
      label:xworker.swt.ide.worldexplorer.swt.tools.ThingSelector/@shell/@Resource/@I18nResource/@okButton
      stype
      SWT.PUSH
      sflat
      false
      sborder
      false
      sselected
      false
      scapture
      false
      senabled
      true
      sredraw
      true
      svisible
      true
      slabel
      okButton
      sdescriptors
      xworker.swt.Widgets/@Button
      sid
      okButton
        @/@shell/@button2Cell/@okButton/@listeners
        sname
        listeners
        slabel
        listeners
        sdescriptors
        xworker.swt.events.Listeners/@listeners
        sid
        listeners
          @/@shell/@button2Cell/@okButton/@listeners/@okButtonSelection
          sname
          okButtonSelection
          stype
          Selection
          slabel
          okButtonSelection
          sdescriptors
          xworker.swt.events.Listeners/@listeners/@Listener
          sid
          okButtonSelection
            @/@shell/@button2Cell/@okButton/@listeners/@okButtonSelection/@GroovyAction
            sname
            GroovyAction
            slabel
            GroovyAction
            sisSynchronized
            false
            sthrowException
            false
            suseOtherAction
            false
            svarScope
            Global
            sdisableGlobalContext
            false
            Scode
#$@text#$@
result = pathText.getText();

if(actionContext.get("parentThing") != null){
    parentThing.doAction("ok", parentContext, "thing", result);
}

shell.dispose();
#$@text#$@
            sinterpretationType
            Action
            screateLocalVarScope
            false
            ssaveReturn
            false
            sswitchResult
            false
            sdebugLog
            false
            sdescriptors
            xworker.lang.actions.Actions/@GroovyAction
            sid
            GroovyAction
      @/@shell/@button2Cell/@cancelButton
      sname
      cancelButton
      stext
      label:xworker.swt.ide.worldexplorer.swt.tools.ThingSelector/@shell/@Resource/@I18nResource/@cancelButton
      stype
      SWT.PUSH
      sflat
      false
      sborder
      false
      sselected
      false
      scapture
      false
      senabled
      true
      sredraw
      true
      svisible
      true
      slabel
      cancelButton
      sdescriptors
      xworker.swt.Widgets/@Button
      sid
      cancelButton
        @/@shell/@button2Cell/@cancelButton/@listeners
        sname
        listeners
        slabel
        listeners
        sdescriptors
        xworker.swt.events.Listeners/@listeners
        sid
        listeners
          @/@shell/@button2Cell/@cancelButton/@listeners/@cancelButtonSelection
          sname
          cancelButtonSelection
          stype
          Selection
          slabel
          cancelButtonSelection
          sdescriptors
          xworker.swt.events.Listeners/@listeners/@Listener
          sid
          cancelButtonSelection
            @/@shell/@button2Cell/@cancelButton/@listeners/@cancelButtonSelection/@GroovyAction
            sname
            GroovyAction
            slabel
            GroovyAction
            sisSynchronized
            false
            sthrowException
            false
            suseOtherAction
            false
            svarScope
            Global
            sdisableGlobalContext
            false
            Scode
#$@text#$@
if(actionContext.get("parentThing") != null){
    parentThing.doAction("cancel", parentContext, "thing", result);
}


shell.dispose();
#$@text#$@
            sinterpretationType
            Action
            screateLocalVarScope
            false
            ssaveReturn
            false
            sswitchResult
            false
            sdebugLog
            false
            sdescriptors
            xworker.lang.actions.Actions/@GroovyAction
            sid
            GroovyAction
    @/@shell/@tabFolder
    sname
    tabFolder
    sstyle
    TOP
    sBORDER
    false
    sFLAT
    false
    sCLOSE
    false
    sSINGLE
    false
    sMRUVisible
    false
    ssimple
    false
    sH_SCROLL
    false
    sV_SCROLL
    false
    sNO_BACKGROUND
    false
    sNO_FOCUS
    false
    sNO_MERGE_PAINTS
    false
    sNO_REDRAW_RESIZE
    false
    sNO_RADIO_GROUP
    false
    sEMBEDDED
    false
    sDOUBLE_BUFFERED
    false
    scapture
    false
    senabled
    true
    sredraw
    true
    svisible
    true
    sdescriptors
    xworker.swt.Widgets/@CTabFolder
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    tabFolder
      @/@shell/@tabFolder/@dataTreeTabItem
      sname
      dataTreeTabItem
      stext
      label:xworker.swt.ide.worldexplorer.swt.tools.ThingSelector/@shell/@Resource/@I18nResource/@thingViewTabItem
      sCLOSE
      false
      sdescriptors
      xworker.swt.custom.CTabFolder/@CTabItem
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      dataTreeTabItem
        @/@shell/@tabFolder/@dataTreeTabItem/@dataTree
        sname
        dataTree
        sselectStyle
        SINGLE
        sV_SCROLL
        true
        sH_SCROLL
        true
        sCHECK
        false
        sFULL_SELECTION
        false
        sHIDE_SELECTION
        false
        sBORDER
        false
        slineVisible
        false
        smultipleColumns
        false
        sheaderVisible
        false
        ssortIndicator
        false
        smoveableColumns
        false
        sheadImages
        false
        ssubImages
        false
        scheckSelection
        false
        scapture
        false
        senabled
        true
        sredraw
        true
        svisible
        true
        sdescriptors
        xworker.swt.Widgets/@Tree
        sth_createIndex
        false
        sth_mark
        false
        sid
        dataTree
          @/@shell/@tabFolder/@dataTreeTabItem/@dataTree/@TreeModels
          sname
          TreeModels
          sdescriptors
          xworker.swt.widgets.Tree/@treeModels
          sth_createIndex
          false
          sth_mark
          false
          sid
          TreeModels
            @/@shell/@tabFolder/@dataTreeTabItem/@dataTree/@TreeModels/@XWorkerTreeModel
            sname
            XWorkerTreeModel
            srootIndexType
            category
            sshowFile
            false
            sshowThing
            true
            sshowThingChild
            true
            srootVisible
            true
            sbindToParent
            true
            sloadBackground
            false
            sdelayLoad
            true
            sdescriptors
            xworker.dataObject.app.model.tree.TreeModels/@XWorkerTreeModel
            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
            XWorkerTreeModel
          @/@shell/@tabFolder/@dataTreeTabItem/@dataTree/@Listeners
          sname
          Listeners
          sdescriptors
          xworker.swt.widgets.Widget/@Listeners
          sth_createIndex
          false
          sth_mark
          false
          sid
          Listeners
            @/@shell/@tabFolder/@dataTreeTabItem/@dataTree/@Listeners/@treeSelection
            sname
            treeSelection
            stype
            Selection
            sdescriptors
            xworker.swt.events.Listeners/@listeners/@Listener
            sth_createIndex
            false
            sth_mark
            false
            sid
            treeSelection
              @/@shell/@tabFolder/@dataTreeTabItem/@dataTree/@Listeners/@treeSelection/@GroovyAction
              sname
              GroovyAction
              sisSynchronized
              false
              sthrowException
              true
              suseOtherAction
              false
              svarScope
              Local
              sdisableGlobalContext
              false
              Scode
#$@text#$@
import org.xmeta.Index;

def index = event.item.getData().getSource();

if(index.getType() == Index.TYPE_CATEGORY){
    def category = index.getIndexObject();
    def thingManager = category.getThingManager();
    pathText.setText(thingManager.getName() + "|" + index.getPath());
}else{
    pathText.setText(index.getPath());
}
#$@text#$@
              sinterpretationType
              Action
              screateLocalVarScope
              false
              ssaveReturn
              false
              sswitchResult
              false
              sdebugLog
              false
              sdescriptors
              xworker.lang.actions.Actions/@GroovyAction
              sth_createIndex
              false
              sth_mark
              false
              sid
              GroovyAction
      @/@shell/@tabFolder/@registTabItem
      sname
      registTabItem
      stext
      label:xworker.swt.ide.worldexplorer.swt.tools.ThingSelector/@shell/@Resource/@I18nResource/@RelationTabItem
      stoolTipText
      通过事物之间的关联查看事物
      sCLOSE
      false
      sdescriptors
      xworker.swt.custom.CTabFolder/@CTabItem
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      registTabItem
        @/@shell/@tabFolder/@registTabItem/@reigstThingComposite
        sname
        reigstThingComposite
        sBORDER
        false
        sH_SCROLL
        false
        sV_SCROLL
        false
        sNO_BACKGROUND
        false
        sNO_FOCUS
        false
        sNO_MERGE_PAINTS
        false
        sNO_REDRAW_RESIZE
        false
        sNO_RADIO_GROUP
        false
        sEMBEDDED
        false
        sDOUBLE_BUFFERED
        false
        slabel
        reigstThingComposite
        scapture
        false
        senabled
        true
        sredraw
        true
        svisible
        true
        sdescriptors
        xworker.swt.Widgets/@Composite
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_mark
        false
        sid
        reigstThingComposite
          @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@shellGridLayout
          sname
          reigstThingComposite
          snumColumns
          2
          smakeColumnsEqualWidth
          false
          smarginWidth
          5
          smarginHeight
          5
          smarginLeft
          0
          smarginTop
          0
          smarginRight
          0
          smarginBottom
          0
          shorizontalSpacing
          5
          sverticalSpacing
          5
          sdescriptors
          xworker.swt.Layouts/@GridLayout
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_mark
          false
          sid
          shellGridLayout
          @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@thingLabel
          sname
          thingLabel
          sBORDER
          false
          stype
          HORIZONTAL
          sshadow
          SHADOW_OUT
          salignment
          LEFT
          stext
          label:xworker.swt.ide.worldexplorer.swt.tools.ThingSelector/@shell/@Resource/@I18nResource/@thingLabel
          scapture
          false
          senabled
          true
          sredraw
          true
          svisible
          true
          sdescriptors
          xworker.swt.Widgets/@Label
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_mark
          false
          sid
          thingLabel
          @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@thingText
          sname
          thingText
          sstyle
          SINGLE
          sH_SCROLL
          false
          sV_SCROLL
          false
          sWRAP
          false
          sREAD_ONLY
          false
          sPASSWORD
          false
          sSEARCH
          false
          sCANCEL
          false
          sBORDER
          true
          salign
          LEFT
          scapture
          false
          senabled
          true
          sredraw
          true
          svisible
          true
          sdescriptors
          xworker.swt.Widgets/@Text
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_mark
          false
          sid
          thingText
            @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@thingText/@thingTextGridData
            sname
            thingTextGridData
            sstyle
            FILL_HORIZONTAL
            shorizontalIndent
            0
            swidth
            -1
            sheight
            -1
            shorizontalAlignment
            BEGINNING
            sverticalAlignment
            CENTER
            shorizontalSpan
            1
            sverticalSpan
            1
            sgrabExcessHorizontalSpace
            false
            sgrabExcessVerticalSpace
            false
            sdescriptors
            xworker.swt.layout.LayoutDatas/@GridData
            sth_createIndex
            false
            sth_registMyChilds
            false
            sth_mark
            false
            sid
            thingTextGridData
          @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@registTypeLabel
          sname
          registTypeLabel
          sBORDER
          false
          stype
          HORIZONTAL
          sshadow
          SHADOW_OUT
          salignment
          LEFT
          stext
          label:xworker.swt.ide.worldexplorer.swt.tools.ThingSelector/@shell/@Resource/@I18nResource/@relationTypeLabel
          scapture
          false
          senabled
          true
          sredraw
          true
          svisible
          true
          sdescriptors
          xworker.swt.Widgets/@Label
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_mark
          false
          sid
          registTypeLabel
          @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@registTypeCombo
          sname
          registTypeCombo
          sREAD_ONLY
          false
          sBORDER
          true
          sFLAT
          false
          slistVisible
          false
          sH_SCROLL
          false
          sV_SCROLL
          false
          sNO_BACKGROUND
          false
          sNO_FOCUS
          false
          sNO_MERGE_PAINTS
          false
          sNO_REDRAW_RESIZE
          false
          sNO_RADIO_GROUP
          false
          sEMBEDDED
          false
          sDOUBLE_BUFFERED
          false
          scapture
          false
          senabled
          true
          sredraw
          true
          svisible
          true
          sdescriptors
          xworker.swt.Widgets/@CCombo
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_mark
          false
          sid
          registTypeCombo
          @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@keysLabel
          sname
          keysLabel
          sBORDER
          false
          stype
          HORIZONTAL
          sshadow
          SHADOW_OUT
          salignment
          LEFT
          stext
          label:xworker.swt.ide.worldexplorer.swt.tools.ThingSelector/@shell/@Resource/@I18nResource/@keywordsLabel
          scapture
          false
          senabled
          true
          sredraw
          true
          svisible
          true
          sdescriptors
          xworker.swt.Widgets/@Label
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_mark
          false
          sid
          keysLabel
          @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@keysText
          sname
          keysText
          sstyle
          SINGLE
          sH_SCROLL
          false
          sV_SCROLL
          false
          sWRAP
          false
          sREAD_ONLY
          false
          sPASSWORD
          false
          sSEARCH
          false
          sCANCEL
          false
          sBORDER
          true
          salign
          LEFT
          scapture
          false
          senabled
          true
          sredraw
          true
          svisible
          true
          sdescriptors
          xworker.swt.Widgets/@Text
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_mark
          false
          sid
          keysText
            @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@keysText/@kyesTextGridData
            sname
            kyesTextGridData
            sstyle
            FILL_HORIZONTAL
            shorizontalIndent
            0
            swidth
            -1
            sheight
            -1
            shorizontalAlignment
            BEGINNING
            sverticalAlignment
            CENTER
            shorizontalSpan
            1
            sverticalSpan
            1
            sgrabExcessHorizontalSpace
            false
            sgrabExcessVerticalSpace
            false
            sdescriptors
            xworker.swt.layout.LayoutDatas/@GridData
            sth_createIndex
            false
            sth_registMyChilds
            false
            sth_mark
            false
            sid
            kyesTextGridData
          @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@12691
          sname
          buttonComposite
          sBORDER
          false
          sH_SCROLL
          false
          sV_SCROLL
          false
          sNO_BACKGROUND
          false
          sNO_FOCUS
          false
          sNO_MERGE_PAINTS
          false
          sNO_REDRAW_RESIZE
          false
          sNO_RADIO_GROUP
          false
          sEMBEDDED
          false
          sDOUBLE_BUFFERED
          false
          scapture
          false
          senabled
          true
          sredraw
          true
          svisible
          true
          sdescriptors
          xworker.swt.Widgets/@Composite
          sid
          12691
            @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@12691/@12692
            sname
            buttonCompositeGridData
            sstyle
            FILL_HORIZONTAL
            shorizontalIndent
            0
            swidth
            -1
            sheight
            -1
            shorizontalAlignment
            BEGINNING
            sverticalAlignment
            CENTER
            shorizontalSpan
            2
            sverticalSpan
            1
            sgrabExcessHorizontalSpace
            false
            sgrabExcessVerticalSpace
            false
            sdescriptors
            xworker.swt.layout.LayoutDatas/@GridData
            sid
            12692
            @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@12691/@12693
            sname
            buttonCompositeRowLayout
            sfill
            false
            sjustify
            false
            smarginWidth
            0
            smarginHeight
            0
            smarginLeft
            3
            smarginTop
            3
            smarginRight
            3
            smarginBottom
            3
            spack
            true
            sspacing
            3
            stype
            SWT.HORIZONTAL
            swrap
            true
            sdescriptors
            xworker.swt.Layouts/@RowLayout
            sid
            12693
            @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@12691/@12694
            sname
            serachButton
            stext
            label:xworker.swt.ide.worldexplorer.swt.tools.ThingSelector/@shell/@Resource/@I18nResource/@searchButton
            stype
            SWT.PUSH
            sflat
            false
            sborder
            false
            sselected
            false
            scapture
            false
            senabled
            true
            sredraw
            true
            svisible
            true
            sdescriptors
            xworker.swt.Widgets/@Button
            sth_createIndex
            false
            sid
            12694
              @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@12691/@12694/@12695
              sname
              RowData
              sexclude
              false
              swidth
              80
              sheight
              -1
              sdescriptors
              xworker.swt.layout.LayoutDatas/@RowData
              sth_createIndex
              false
              sid
              12695
              @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@12691/@12694/@12696
              sname
              Listeners
              sdescriptors
              xworker.swt.widgets.Widget/@Listeners
              sth_createIndex
              false
              sid
              12696
                @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@12691/@12694/@12696/@12697
                sname
                serachButtonSelection
                stype
                Selection
                sref
                xworker.ide.data.ThingIndexViewer/@actions/@search
                sdescriptors
                xworker.swt.events.Listeners/@listeners/@Listener
                sth_createIndex
                false
                sid
                12697
            @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@12691/@12698
            sname
            returnParentButton
            stext
            label:xworker.swt.ide.worldexplorer.swt.tools.ThingSelector/@shell/@Resource/@I18nResource/@returnButton
            stype
            SWT.PUSH
            sflat
            false
            sborder
            false
            sselected
            false
            scapture
            false
            senabled
            false
            sredraw
            true
            svisible
            true
            sdescriptors
            xworker.swt.Widgets/@Button
            sth_createIndex
            false
            sid
            12698
              @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@12691/@12698/@12699
              sname
              RowData
              sexclude
              false
              swidth
              80
              sheight
              -1
              sdescriptors
              xworker.swt.layout.LayoutDatas/@RowData
              sth_createIndex
              false
              sid
              12699
              @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@12691/@12698/@12700
              sname
              Listeners
              sdescriptors
              xworker.swt.widgets.Widget/@Listeners
              sth_createIndex
              false
              sid
              12700
                @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@12691/@12698/@12700/@12701
                sname
                returnParentButtonSelection
                stype
                Selection
                sdescriptors
                xworker.swt.events.Listeners/@listeners/@Listener
                sth_createIndex
                false
                sid
                12701
                  @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@12691/@12698/@12700/@12701/@GroovyAction
                  sname
                  GroovyAction
                  sisSynchronized
                  false
                  sthrowException
                  true
                  suseOtherAction
                  false
                  svarScope
                  Local
                  sdisableGlobalContext
                  false
                  Scode
#$@text#$@
if(historys.size() > 1){
    thingText.setText(historys.get(historys.size() - 2));
    historys.remove(historys.size() - 1);
    actions.doAction("search", actionContext);
}
#$@text#$@
                  sinterpretationType
                  Action
                  screateLocalVarScope
                  false
                  ssaveReturn
                  false
                  sdescriptors
                  xworker.lang.actions.Actions/@GroovyAction
                  sth_createIndex
                  false
                  sth_registMyChilds
                  false
                  sth_mark
                  false
                  sid
                  GroovyAction
            @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@12691/@126941
            sname
            intoChildButton
            stext
            label:xworker.swt.ide.worldexplorer.swt.tools.ThingSelector/@shell/@Resource/@I18nResource/@gointoButton
            stype
            SWT.PUSH
            sflat
            false
            sborder
            false
            sselected
            false
            scapture
            false
            senabled
            false
            sredraw
            true
            svisible
            true
            sdescriptors
            xworker.swt.Widgets/@Button
            sth_createIndex
            false
            sid
            126941
              @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@12691/@126941/@12695
              sname
              RowData
              sexclude
              false
              swidth
              80
              sheight
              -1
              sdescriptors
              xworker.swt.layout.LayoutDatas/@RowData
              sth_createIndex
              false
              sid
              12695
              @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@12691/@126941/@12696
              sname
              Listeners
              sdescriptors
              xworker.swt.widgets.Widget/@Listeners
              sth_createIndex
              false
              sid
              12696
                @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@12691/@126941/@12696/@12697
                sname
                serachButtonSelection
                stype
                Selection
                sdescriptors
                xworker.swt.events.Listeners/@listeners/@Listener
                sth_createIndex
                false
                sid
                12697
                  @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@12691/@126941/@12696/@12697/@GroovyAction
                  sname
                  GroovyAction
                  sisSynchronized
                  false
                  sthrowException
                  true
                  suseOtherAction
                  false
                  svarScope
                  Local
                  sdisableGlobalContext
                  false
                  Scode
#$@text#$@
def thing = thingRegistViewer.doAction("getThing", null);
if(thing != null){
    thingText.setText(thing.getMetadata().getPath());
    historys.add(thing.getMetadata().getPath());
    actions.doAction("search", actionContext);    
}
#$@text#$@
                  sinterpretationType
                  Action
                  screateLocalVarScope
                  false
                  ssaveReturn
                  false
                  sdescriptors
                  xworker.lang.actions.Actions/@GroovyAction
                  sth_createIndex
                  false
                  sth_registMyChilds
                  false
                  sth_mark
                  false
                  sid
                  GroovyAction
            @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@12691/@12702
            sname
            returnRottButton
            stext
            label:xworker.swt.ide.worldexplorer.swt.tools.ThingSelector/@shell/@Resource/@I18nResource/@resetButton
            stype
            SWT.PUSH
            sflat
            false
            sborder
            false
            sselected
            false
            scapture
            false
            senabled
            true
            sredraw
            true
            svisible
            true
            sdescriptors
            xworker.swt.Widgets/@Button
            sth_createIndex
            false
            sid
            12702
              @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@12691/@12702/@12703
              sname
              RowData
              sexclude
              false
              swidth
              80
              sheight
              -1
              sdescriptors
              xworker.swt.layout.LayoutDatas/@RowData
              sth_createIndex
              false
              sid
              12703
              @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@12691/@12702/@12704
              sname
              Listeners
              sdescriptors
              xworker.swt.widgets.Widget/@Listeners
              sth_createIndex
              false
              sid
              12704
                @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@12691/@12702/@12704/@12705
                sname
                returnRottButtonSelection
                stype
                Selection
                sdescriptors
                xworker.swt.events.Listeners/@listeners/@Listener
                sth_createIndex
                false
                sid
                12705
                  @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@12691/@12702/@12704/@12705/@GroovyAction
                  sname
                  GroovyAction
                  sisSynchronized
                  false
                  sthrowException
                  true
                  suseOtherAction
                  false
                  svarScope
                  Local
                  sdisableGlobalContext
                  false
                  Scode
#$@text#$@
thingText.setText(historys.get(0));
while(historys.size() > 1){
    historys.remove(historys.size() - 1);
}
keysText.setText("");
registTypeCombo.select(0);
actions.doAction("search", actionContext);
#$@text#$@
                  sinterpretationType
                  Action
                  screateLocalVarScope
                  false
                  ssaveReturn
                  false
                  sdescriptors
                  xworker.lang.actions.Actions/@GroovyAction
                  sth_createIndex
                  false
                  sth_registMyChilds
                  false
                  sth_mark
                  false
                  sid
                  GroovyAction
          @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@thingRegistViewer
          sname
          thingRegistViewer
          sthing
          xworker.lang.util.ThingIndex
          sregistType
          child
          sparent
          false
          ssearchByKeywords
          false
          sshowContent
          true
          scontentDisplayType
          Composite
          scontentDefaultOpenMethod
          thingDescBrowser
          sforceUseDefaultOpenMethod
          true
          sshowDescBrowser
          true
          sdescBrowserRight
          true
          sautoLoad
          false
          scache
          false
          scheck
          false
          sdescritporForNewThing
          xworker.lang.MetaDescriptor3
          sdescritporChilds
          false
          sdescriptors
          xworker.swt.Widgets/@ThingRegistSelector
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_mark
          false
          sid
          thingRegistViewer
            @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@thingRegistViewer/@thingRegistViewerGRidDAta
            sname
            thingRegistViewerGRidDAta
            sstyle
            FILL_BOTH
            shorizontalIndent
            0
            swidth
            -1
            sheight
            -1
            shorizontalAlignment
            BEGINNING
            sverticalAlignment
            CENTER
            shorizontalSpan
            2
            sverticalSpan
            1
            sgrabExcessHorizontalSpace
            false
            sgrabExcessVerticalSpace
            false
            sdescriptors
            xworker.swt.layout.LayoutDatas/@GridData
            sth_createIndex
            false
            sth_registMyChilds
            false
            sth_mark
            false
            sid
            thingRegistViewerGRidDAta
            @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@thingRegistViewer/@actions
            sname
            actions
            sdescriptors
            xworker.swt.xworker.ThingRegistSelector/@actions1
            sth_createIndex
            false
            sth_registMyChilds
            false
            sth_mark
            false
            sid
            actions
              @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@thingRegistViewer/@actions/@selected
              sname
              selected
              sisSynchronized
              false
              sthrowException
              true
              suseOtherAction
              false
              svarScope
              Local
              sdisableGlobalContext
              false
              Scode
#$@text#$@
if(thing != null){
    intoChildButton.setEnabled(true);
    
    pathText.setText(thing.getMetadata().getPath());
    okButton.setEnabled(true);
}else{
    intoChildButton.setEnabled(false);
}
#$@text#$@
              sinterpretationType
              Action
              screateLocalVarScope
              false
              ssaveReturn
              false
              sdescriptors
              xworker.lang.actions.Actions/@GroovyAction
              sth_createIndex
              false
              sth_registMyChilds
              false
              sth_mark
              false
              sid
              selected
              @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@thingRegistViewer/@actions/@defaultSelected
              sname
              defaultSelected
              sisSynchronized
              false
              sthrowException
              true
              suseOtherAction
              false
              svarScope
              Local
              sdisableGlobalContext
              false
              Scode
#$@text#$@
if(thing != null){
    thingText.setText(thing.getMetadata().getPath());
    historys.add(thing.getMetadata().getPath());
    actions.doAction("search", actionContext);    
}
#$@text#$@
              sinterpretationType
              Action
              screateLocalVarScope
              false
              ssaveReturn
              false
              sdescriptors
              xworker.lang.actions.Actions/@GroovyAction
              sth_createIndex
              false
              sth_registMyChilds
              false
              sth_mark
              false
              sid
              defaultSelected
          @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@actions
          sname
          actions
          sdescriptors
          xworker.swt.Widgets/@actions
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_mark
          false
          sid
          actions
            @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@actions/@search
            sname
            search
            sisSynchronized
            false
            sthrowException
            true
            suseOtherAction
            false
            svarScope
            Local
            sdisableGlobalContext
            false
            Scode
#$@text#$@
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.MessageBox;

def thing = world.getThing(thingText.getText());
if(thing == null){
    def box = new MessageBox(thingText.getShell(), SWT.ICON_WARNING | SWT.OK);
    box.setText("查找注册事物");
    box.setMessage("事物" + thingText.getText() + "不存在！");
    box.open();
    
    return;
}

def keywords = keysText.getText().trim();
def typeIndex = registTypeCombo.getSelectionIndex();
def type = "child";
if(typeIndex >= 0){
    type = registTypes.get(typeIndex).get("value");
}

//执行查询
thingRegistViewer.doAction("init", null, ["thing": thing, "type": type, "keywords": keywords]);
thingRegistViewer.doAction("search", null);

intoChildButton.setEnabled(false);
//openButton.setEnabled(false);
if(historys.size() == 1){
    returnParentButton.setEnabled(false);
}else{
    returnParentButton.setEnabled(true);
}
#$@text#$@
            sinterpretationType
            Action
            screateLocalVarScope
            false
            ssaveReturn
            false
            sdebugLog
            false
            sdescriptors
            xworker.lang.actions.Actions/@GroovyAction
            sth_createIndex
            false
            sth_registMyChilds
            false
            sth_mark
            false
            sid
            search
          @/@shell/@tabFolder/@registTabItem/@reigstThingComposite/@init
          sname
          init
          sisSynchronized
          false
          sthrowException
          true
          suseOtherAction
          false
          svarScope
          Local
          sdisableGlobalContext
          false
          Scode
#$@text#$@
//默认的注册事物
thingText.setText("xworker.lang.util.ThingIndex");

actionContext.getScope(0).put("historys", ["xworker.lang.util.ThingIndex"]);

//初始化注册类型
def registTypes = world.getThing("xworker.lang.MetaThing/@th_registThing").getChilds("value");
actionContext.getScope(0).put("registTypes", registTypes);

for(value in registTypes){
    registTypeCombo.add(value.getMetadata().getLabel());
}
registTypeCombo.select(0);

actions.doAction("search", actionContext);
#$@text#$@
          sinterpretationType
          Action
          screateLocalVarScope
          false
          ssaveReturn
          false
          sdescriptors
          xworker.swt.Widgets/@Code
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_mark
          false
          sid
          init
      @/@shell/@tabFolder/@dataTreeGridData
      sname
      dataTreeGridData
      sstyle
      FILL_BOTH
      shorizontalIndent
      0
      swidth
      -1
      sheight
      -1
      shorizontalAlignment
      BEGINNING
      sverticalAlignment
      CENTER
      shorizontalSpan
      1
      sverticalSpan
      1
      sgrabExcessHorizontalSpace
      false
      sgrabExcessVerticalSpace
      false
      sdescriptors
      xworker.swt.layout.LayoutDatas/@GridData
      sth_createIndex
      false
      sth_mark
      false
      sid
      dataTreeGridData
    @/@shell/@Code
    sname
    Code
    slabel
    Code
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    svarScope
    Local
    sdisableGlobalContext
    false
    Scode
#$@text#$@
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.TreeItem;

import org.xmeta.Index;

//okButton.setEnabled(false);

if(actionContext.get("selectType") == null){
    selectType = "thing";
}

structures = "";

def path = "";
if(actionContext.get("text") != null){
    pathText.setText(text.getText());
    path = text.getText();
}

//选择路径
def paths = path.split("[:]");
def currentItem = dataTree.getItems()[0];

//项目
currentItem = selectItem(dataTree, paths[0], currentItem, treeSelection);

//事物管理器
if(currentItem != null && paths.length >=2 ){
    currentItem = selectItem(dataTree, paths[0] + ":" + paths[1], currentItem, treeSelection);
}

//目录
if(currentItem != null && paths.length >=3 ){
    def category = paths[2];
    def cats = category.split("[.]");
    def catPath = paths[0] + ":" + paths[1] + ":";
    //log.info("category=" + category);
    for(cat in cats){
        if(cat != ""){
            catPath = catPath + cat;
            //log.info("catPath=" + catPath);
            currentItem = selectItem(dataTree, catPath, currentItem, treeSelection);
            //log.info("currentItem=" + currentItem);
            if(currentItem == null){
                 break;
            }else{
                catPath = catPath + ".";
            }
        }
    }
}

//子事物
if(currentItem != null && paths.length >=4 ){
    def category = paths[3];
    def cats = category.split("[/]");
    def catPath = paths[0] + ":" + paths[1] + ":" + paths[2] + ":/";
    //log.info("category=" + category);
    for(cat in cats){
        if(cat != ""){
            catPath = catPath + cat;
            //log.info("catPath=" + catPath);
            currentItem = selectItem(dataTree, catPath, currentItem, treeSelection);
            //log.info("currentItem=" + currentItem);
            if(currentItem == null){
                 break;
            }else{
                catPath = catPath + "/";
            }
        }
    }
}

def selectItem(dataTree, path, treeItem, treeSelection){
    for(item in treeItem.items){   
        def dpath = item.getData().path;
        //if(item.getData().getPath() == path){
        if(dpath == path){
            dataTree.select(item);
            treeSelection.handleEvent(null);
            return item;
        }
    }
}
#$@text#$@
    sinterpretationType
    Action
    screateLocalVarScope
    false
    ssaveReturn
    false
    sdebugLog
    false
    sdescriptors
    xworker.swt.Widgets/@Code
    sid
    Code
