^1649817846572
@
sname
shell
stext
label:xworker.ide.worldexplorer.swt.tools.CategoryIndexSelector/@resources/@I18nResource/@title
sNO_TRIM
false
sCLOSE
true
sTITLE
true
sMIN
true
sMAX
true
sBORDER
false
sRESIZE
true
sON_TOP
false
sTOOL
false
sNO_FOCUS
false
swidth
400
sheight
480
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
CategoryIndexSelector
scapture
false
senabled
true
sredraw
true
svisible
true
sdescriptors
xworker.swt.widgets.Shell
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
  @/@shellGridLayout
  sname
  shellGridLayout
  smakeColumnsEqualWidth
  false
  smarginWidth
  5
  smarginHeight
  5
  smarginLeft
  0
  smarginTop
  0
  smarginRight
  0
  smarginBottom
  0
  shorizontalSpacing
  5
  sverticalSpacing
  5
  sdescriptors
  xworker.swt.Layouts/@GridLayout
  sinheritDescription
  false
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_mark
  false
  sid
  shellGridLayout
  @/@resources
  sname
  resources
  sdescriptors
  xworker.swt.Widgets/@Resource
  sinheritDescription
  false
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_mark
  false
  sid
  resources
    @/@resources/@packageImage
    sname
    packageImage
    stype
    Image
    simageFile
    /xworker/ide/images/package.gif
    sdescriptors
    xworker.swt.util.Resource/@Image
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    packageImage
    @/@resources/@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
      @/@resources/@I18nResource/@title
      sname
      title
      slabel
      目录选择器
      sen_label
      Category Selector
      sdescriptors
      xworker.core.util.I18nResource/@resource
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      title
      @/@resources/@I18nResource/@projectItem
      sname
      projectItem
      slabel
      项目
      sen_label
      Projects
      sdescriptors
      xworker.core.util.I18nResource/@resource
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      projectItem
      @/@resources/@I18nResource/@thingLibItem
      sname
      thingLibItem
      slabel
      模型库
      sen_label
      Thing Libs
      sdescriptors
      xworker.core.util.I18nResource/@resource
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      thingLibItem
      @/@resources/@I18nResource/@okButton
      sname
      okButton
      slabel
      确定
      sen_label
      Ok
      sdescriptors
      xworker.core.util.I18nResource/@resource
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      okButton
      @/@resources/@I18nResource/@cancelButton
      sname
      cancelButton
      slabel
      取消
      sen_label
      Cancel
      sdescriptors
      xworker.core.util.I18nResource/@resource
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      cancelButton
      @/@resources/@I18nResource/@createCategoryButton
      sname
      createCategoryButton
      slabel
      创建目录
      sen_label
      Create Category
      sdescriptors
      xworker.core.util.I18nResource/@resource
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      createCategoryButton
      @/@resources/@I18nResource/@editLibButton
      sname
      editLibButton
      slabel
      编辑模型库
      sen_label
      Edit Thing Libs
      sdescriptors
      xworker.core.util.I18nResource/@resource
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      editLibButton
  @/@tabFolder
  sname
  tabFolder
  sstyle
  TOP
  sBORDER
  true
  sFLAT
  true
  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
  sinheritDescription
  false
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  tabFolder
    @/@tabFolder/@tabFolderGridData
    sname
    tabFolderGridData
    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
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    tabFolderGridData
    @/@tabFolder/@projectTabItem
    sname
    projectTabItem
    stext
    label:xworker.ide.worldexplorer.swt.tools.CategoryIndexSelector/@resources/@I18nResource/@projectItem
    sCLOSE
    false
    sdescriptors
    xworker.swt.custom.CTabFolder/@CTabItem
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    projectTabItem
      @/@tabFolder/@projectTabItem/@projectComposite
      sname
      projectComposite
      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
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      projectComposite
        @/@tabFolder/@projectTabItem/@projectComposite/@projectCompositeGridLayout
        sname
        projectCompositeGridLayout
        smakeColumnsEqualWidth
        false
        smarginWidth
        5
        smarginHeight
        5
        smarginLeft
        0
        smarginTop
        0
        smarginRight
        0
        smarginBottom
        0
        shorizontalSpacing
        5
        sverticalSpacing
        5
        sdescriptors
        xworker.swt.Layouts/@GridLayout
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_mark
        false
        sid
        projectCompositeGridLayout
        @/@tabFolder/@projectTabItem/@projectComposite/@tree
        sname
        tree
        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
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_mark
        false
        sid
        tree
          @/@tabFolder/@projectTabItem/@projectComposite/@tree/@treeGridData
          sname
          treeGridData
          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
          sinheritDescription
          false
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_mark
          false
          sid
          treeGridData
          @/@tabFolder/@projectTabItem/@projectComposite/@tree/@TreeModels
          sname
          TreeModels
          sdescriptors
          xworker.swt.widgets.Tree/@treeModels
          sinheritDescription
          false
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_mark
          false
          sid
          TreeModels
            @/@tabFolder/@projectTabItem/@projectComposite/@tree/@TreeModels/@XWorkerTreeModel
            sname
            XWorkerTreeModel
            srootIndexType
            thingManager
            sshowFile
            false
            sshowThingChild
            false
            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
          @/@tabFolder/@projectTabItem/@projectComposite/@tree/@Listeners
          sname
          Listeners
          sdescriptors
          xworker.swt.widgets.Widget/@Listeners
          sinheritDescription
          false
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_mark
          false
          sid
          Listeners
            @/@tabFolder/@projectTabItem/@projectComposite/@tree/@Listeners/@treeSelection
            sname
            treeSelection
            stype
            Selection
            sdescriptors
            xworker.swt.events.Listeners/@listeners/@Listener
            sinheritDescription
            false
            sth_createIndex
            false
            sth_registMyChilds
            false
            sth_mark
            false
            sid
            treeSelection
              @/@tabFolder/@projectTabItem/@projectComposite/@tree/@Listeners/@treeSelection/@GroovyAction
              sname
              GroovyAction
              sisSynchronized
              false
              sthrowException
              true
              suseOtherAction
              false
              svarScope
              Local
              sdisableGlobalContext
              false
              Scode
#$@text#$@
import org.xmeta.Index;

//println event.item.getData().getSource();
def index = event.item.getData().getSource();//Index.getIndexById(event.item.getData().getId());
if(index.getType() == "thingManager" || index.getType() == "category"){
    okButton.setEnabled(true);
    createCategoryButton.setEnabled(true);
    actionContext.getScope(0).put("index", index);
}else{
    //log.info("index=" + index);
    okButton.setEnabled(false);
    actionContext.getScope(0).put("index", null);
    createCategoryButton.setEnabled(false);
}
#$@text#$@
              sinterpretationType
              Action
              screateLocalVarScope
              false
              ssaveReturn
              false
              sswitchResult
              false
              sdebugLog
              false
              sdescriptors
              xworker.lang.actions.Actions/@GroovyAction
              sinheritDescription
              false
              sth_createIndex
              false
              sth_registMyChilds
              false
              sth_mark
              false
              sid
              GroovyAction
            @/@tabFolder/@projectTabItem/@projectComposite/@tree/@Listeners/@treeDefaultSelection
            sname
            treeDefaultSelection
            stype
            DefaultSelection
            sdescriptors
            xworker.swt.events.Listeners/@listeners/@Listener
            sinheritDescription
            false
            sth_createIndex
            false
            sth_registMyChilds
            false
            sth_registDisabled
            false
            sth_mark
            false
            sid
            treeDefaultSelection
              @/@tabFolder/@projectTabItem/@projectComposite/@tree/@Listeners/@treeDefaultSelection/@GroovyAction
              sname
              GroovyAction
              sisSynchronized
              false
              sthrowException
              true
              suseOtherAction
              false
              svarScope
              Local
              sdisableGlobalContext
              false
              Scode
#$@text#$@
import org.xmeta.Index;

def index = Index.getIndexById(event.item.getData().getId());
if(index.getType() == "thingManager" || index.getType() == "category"){
    okButton.setEnabled(true);
    createCategoryButton.setEnabled(true);
    actionContext.getScope(0).put("index", index);
    
    actionContext.getScope(0).put("result", index);
    shell.dispose();
}else{
    okButton.setEnabled(false);
    actionContext.getScope(0).put("index", null);
    createCategoryButton.setEnabled(false);
}
#$@text#$@
              sinterpretationType
              Action
              screateLocalVarScope
              false
              ssaveReturn
              false
              sswitchResult
              false
              sdebugLog
              false
              sdescriptors
              xworker.lang.actions.Actions/@GroovyAction
              sinheritDescription
              false
              sth_createIndex
              false
              sth_registMyChilds
              false
              sth_mark
              false
              sid
              GroovyAction
        @/@tabFolder/@projectTabItem/@projectComposite/@17578
        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
        17578
          @/@tabFolder/@projectTabItem/@projectComposite/@17578/@17579
          sname
          buttonCompositeGridData
          sstyle
          FILL_HORIZONTAL
          shorizontalIndent
          0
          swidth
          -1
          sheight
          -1
          shorizontalAlignment
          END
          sverticalAlignment
          CENTER
          shorizontalSpan
          1
          sverticalSpan
          1
          sgrabExcessHorizontalSpace
          false
          sgrabExcessVerticalSpace
          false
          sdescriptors
          xworker.swt.layout.LayoutDatas/@GridData
          sid
          17579
          @/@tabFolder/@projectTabItem/@projectComposite/@17578/@17580
          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
          17580
          @/@tabFolder/@projectTabItem/@projectComposite/@17578/@5153
          sname
          createCategoryButton
          stext
          label:xworker.ide.worldexplorer.swt.tools.CategoryIndexSelector/@resources/@I18nResource/@createCategoryButton
          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
          5153
            @/@tabFolder/@projectTabItem/@projectComposite/@17578/@5153/@5155
            sname
            Listeners
            sdescriptors
            xworker.swt.widgets.Widget/@Listeners
            sth_createIndex
            false
            sid
            5155
              @/@tabFolder/@projectTabItem/@projectComposite/@17578/@5153/@5155/@5156
              sname
              createCategoryButtonSelection
              stype
              Selection
              sdescriptors
              xworker.swt.events.Listeners/@listeners/@Listener
              sth_createIndex
              false
              sid
              5156
                @/@tabFolder/@projectTabItem/@projectComposite/@17578/@5153/@5155/@5156/@Prompt
                sname
                Prompt
                stitle
                lang:d=创建目录&en=Create Category
                smessage
                lang:d=请输入目录名&en=Please input category name
                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.swt.actions.MessageBoxActions/@Prompt
                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
                Prompt
                  @/@tabFolder/@projectTabItem/@projectComposite/@17578/@5153/@5155/@5156/@Prompt/@actions
                  sname
                  actions
                  sdescriptors
                  xworker.swt.actions.MessageBoxActions/@Prompt/@actions1
                  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
                  actions
                    @/@tabFolder/@projectTabItem/@projectComposite/@17578/@5153/@5155/@5156/@Prompt/@actions/@ok
                    sname
                    ok
                    sisSynchronized
                    false
                    sthrowException
                    true
                    suseOtherAction
                    false
                    svarScope
                    Local
                    sdisableGlobalContext
                    false
                    Scode
#$@text#$@
import org.xmeta.Index;

//树节点上选中的节点
def index = tree.getSelection()[0].getData().getSource();

//选中的目录或
def thingManager = null;
def categoryName = null;
if(index.getType() == Index.TYPE_THINGMANAGER){
    thingManager = index.getIndexObject();
    categoryName = text;
}else if(index.getType() == Index.TYPE_CATEGORY){
    def category = index.getIndexObject();
    thingManager = category.getThingManager();
    categoryName = category.getName() + "." + text;
}

if(thingManager.getCategory(categoryName) != null){
    //目录已经存在
    exists(actionContext);
    return;
}else{
    thingManager.createCategory(categoryName);
        
    //刷新
    index.refresh();
    tree.getSelection()[0].getData().refresh();
}
#$@text#$@
                    sinterpretationType
                    Action
                    screateLocalVarScope
                    false
                    ssaveReturn
                    false
                    sswitchResult
                    false
                    sdebugLog
                    false
                    sdescriptors
                    xworker.groovy.GroovyAction
                    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
                    ok
                      @/@tabFolder/@projectTabItem/@projectComposite/@17578/@5153/@5155/@5156/@Prompt/@actions/@ok/@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
                        @/@tabFolder/@projectTabItem/@projectComposite/@17578/@5153/@5155/@5156/@Prompt/@actions/@ok/@ActionDefined/@exists
                        sname
                        exists
                        sshell
                        ongl:tree.getShell()
                        sicon
                        ICON_ERROR
                        sbuttons
                        OK
                        stitle
                        lang:d=创建目录&en=Create Category
                        smessage
                        lang:d=目录已存在，不能创建目录!&en=Category already exists, can not create category!
                        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.swt.actions.MessageBoxActions/@MessageBox
                        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
                        exists
                      @/@tabFolder/@projectTabItem/@projectComposite/@17578/@5153/@5155/@5156/@Prompt/@actions/@ok/@3155
                      sname
                      VariablesDescs
                      sdescriptors
                      xworker.lang.MetaThing/@VariablesDesc
                      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
                      3155
                        @/@tabFolder/@projectTabItem/@projectComposite/@17578/@5153/@5155/@5156/@Prompt/@actions/@ok/@3155/@3156
                        sname
                        thingManager
                        svarName
                        thingManager
                        spassive
                        false
                        sscope
                        0
                        stype
                        object
                        sclassName
                        org.xmeta.ThingManager
                        sstaticClass
                        false
                        sdescriptors
                        xworker.lang.MetaThing/@VariablesDesc/@Object
                        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
                        3156
    @/@tabFolder/@thingLibTabItem
    sname
    thingLibTabItem
    stext
    label:xworker.ide.worldexplorer.swt.tools.CategoryIndexSelector/@resources/@I18nResource/@thingLibItem
    sCLOSE
    false
    sdescriptors
    xworker.swt.custom.CTabFolder/@CTabItem
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    thingLibTabItem
      @/@tabFolder/@thingLibTabItem/@libComposite
      sname
      libComposite
      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
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      libComposite
        @/@tabFolder/@thingLibTabItem/@libComposite/@libCompositeGridLayout
        sname
        libCompositeGridLayout
        smakeColumnsEqualWidth
        false
        smarginWidth
        5
        smarginHeight
        5
        smarginLeft
        0
        smarginTop
        0
        smarginRight
        0
        smarginBottom
        0
        shorizontalSpacing
        5
        sverticalSpacing
        5
        sdescriptors
        xworker.swt.Layouts/@GridLayout
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_mark
        false
        sid
        libCompositeGridLayout
        @/@tabFolder/@thingLibTabItem/@libComposite/@libTable
        sname
        libTable
        sselectStyle
        SINGLE
        sV_SCROLL
        true
        sH_SCROLL
        true
        sCHECK
        false
        sFULL_SELECTION
        true
        sHIDE_SELECTION
        true
        sBORDER
        false
        slineVisible
        true
        smultipleColumns
        false
        sheaderVisible
        false
        ssortIndicator
        true
        smoveableColumns
        true
        sheadImages
        false
        ssubImages
        false
        sVIRTUAL
        false
        scapture
        false
        senabled
        true
        sredraw
        true
        spack
        false
        svisible
        true
        sdescriptors
        xworker.swt.Widgets/@Table
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_mark
        false
        sid
        libTable
          @/@tabFolder/@thingLibTabItem/@libComposite/@libTable/@DataStore
          sname
          DataStore
          sattachToParent
          true
          sloadBackground
          true
          sautoLoad
          false
          sautoSave
          false
          spaging
          extend
          spageSize
          50
          sstoreSortField
          _extend
          sstoreSortDir
          ASC
          seditable
          extend
          seditmethod
          extend
          sdescriptors
          xworker.swt.widgets.Table/@DataStore
          sinheritDescription
          false
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_registDisabled
          false
          sth_mark
          false
          sid
          DataStore
            @/@tabFolder/@thingLibTabItem/@libComposite/@libTable/@DataStore/@dataObjects
            sname
            dataObjects
            sdescriptors
            xworker.swt.app.view.swt.data.DataStore/@DataObjects
            sinheritDescription
            false
            sth_createIndex
            false
            sth_registMyChilds
            false
            sth_registDisabled
            false
            sth_mark
            false
            sid
            dataObjects
              @/@tabFolder/@thingLibTabItem/@libComposite/@libTable/@DataStore/@dataObjects/@AbstractDataObject
              sname
              AbstractDataObject
              seditCols
              2
              spaging
              false
              sreadUrl
              do?sc=xworker.web.app.view.extjs.server.DataObjectStore/@read
              screateUrl
              do?sc=xworker.web.app.view.extjs.server.DataObjectStore/@create
              supdateUrl
              do?sc=xworker.web.app.view.extjs.server.DataObjectStore/@update
              sdestroyUrl
              do?sc=xworker.web.app.view.extjs.server.DataObjectStore/@destroy
              LstoreAutoDestroy
              false
              sstoreAutoLoad
              false
              LstoreAutoSave
              true
              LstoreBatch
              true
              LstorePruneModifiedRecords
              false
              LstoreRemoteSort
              false
              LstoreRestful
              false
              sstoreRoot
              'rows'
              sstoreSuccessProperty
              'success'
              sstoreTotalProperty
              'totalCount'
              sstoreMessageProperty
              'msg'
              sgridEditable
              false
              sgridEditType
              cell
              sformReadUrl
              do?sc=xworker.web.app.view.extjs.server.DataObjectForm/@read
              sformCreateUrl
              do?sc=xworker.web.app.view.extjs.server.DataObjectForm/@create
              sformUpdateUrl
              do?sc=xworker.web.app.view.extjs.server.DataObjectForm/@update
              sformDestroyUrl
              do?sc=xworker.web.app.view.extjs.server.DataObjectForm/@delete
              spaging_afterPageText
              页 共
              spaging_beforePageText
              第
              Lpaging_displayInfo
              false
              spaging_displayMsg
              第{0}-第{1}条，共{2}条
              spaging_emptyMsg
              没有数据
              spaging_firstText
              首页
              spaging_lastText
              最后一页
              spaging_nextText
              下一页
              Lpaging_prependButtons
              false
              spaging_prevText
              上一页
              spaging_refreshText
              刷新
              sgridColumnLocking
              false
              sgridLockText
              '锁定'
              sgridUnlockText
              '解锁'
              scolumnGroup
              false
              sgridCheckable
              false
              sgridRowNumber
              false
              sgridGrouping
              false
              sgridGroupTextTpl
              '{text} ({[values.rs.length]} 条)'
              sgridRowExpander
              false
              sautoGenerateId
              false
              sidGenerateType
              action
              sidAction
              generateId
              sstoreSortDir
              ASC
              sautoInit
              false
              sautoInitAction
              beforeCreate
              scacheRelation
              false
              scacheRelationMaxSize
              1000
              scacheRelationReadnone
              false
              safterCreated
              false
              sonLoaded
              false
              sbeforeUpdate
              false
              safterUpdated
              false
              sbeforeDelete
              false
              safterDeleted
              false
              safterQueryed
              false
              sdescriptors
              xworker.dataObject.DataObjects/@AbstractDataObject
              sinheritDescription
              false
              sth_createIndex
              false
              sth_registMyChilds
              false
              sth_registDisabled
              false
              sth_mark
              false
              sid
              AbstractDataObject
                @/@tabFolder/@thingLibTabItem/@libComposite/@libTable/@DataStore/@dataObjects/@AbstractDataObject/@name
                sname
                name
                slabel
                事物库名
                stype
                string
                soptional
                true
                skey
                false
                sdataField
                true
                sviewField
                true
                sreadField
                true
                screateEditor
                true
                seditEditor
                true
                sviewEditor
                true
                sgridEditor
                true
                squeryEditor
                true
                sreadOnly
                false
                seditable
                true
                sdisabled
                false
                sshowLabel
                true
                slabelAlign
                right
                slabelVAlign
                baseline
                svalidateAllowBlank
                true
                LvalidateOnBlur
                true
                LallowDecimals
                true
                LallowNegative
                true
                sshowInTable
                true
                sgridWidth
                350
                sdisplayRelationLabel
                false
                sgridFixed
                false
                sgridHidden
                false
                sgridHideable
                true
                sgridSortable
                false
                scolumnLocked
                false
                sgridGroupable
                true
                sgridMenuDisabled
                false
                sgridResizable
                true
                sen_label
                Name
                sdescriptors
                xworker.dataObject.AbstractDataObject/@attribute
                sinheritDescription
                false
                sth_createIndex
                false
                sth_registMyChilds
                false
                sth_registDisabled
                false
                sth_mark
                false
                sid
                name
          @/@tabFolder/@thingLibTabItem/@libComposite/@libTable/@Listeners
          sname
          Listeners
          sdescriptors
          xworker.swt.widgets.Widget/@Listeners
          sinheritDescription
          false
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_registDisabled
          false
          sth_mark
          false
          sid
          Listeners
            @/@tabFolder/@thingLibTabItem/@libComposite/@libTable/@Listeners/@libTableSelection
            sname
            libTableSelection
            stype
            Selection
            sdescriptors
            xworker.swt.events.Listeners/@listeners/@Listener
            sinheritDescription
            false
            sth_createIndex
            false
            sth_registMyChilds
            false
            sth_registDisabled
            false
            sth_mark
            false
            sid
            libTableSelection
              @/@tabFolder/@thingLibTabItem/@libComposite/@libTable/@Listeners/@libTableSelection/@GroovyAction
              sname
              GroovyAction
              sisSynchronized
              false
              sthrowException
              true
              suseOtherAction
              false
              svarScope
              Local
              sdisableGlobalContext
              false
              Scode
#$@text#$@
def lib = event.item.getData();
def index = lib.getTodayIndex();
actionContext.getScope(0).put("index", index);

okButton.setEnabled(true);
#$@text#$@
              sinterpretationType
              Action
              screateLocalVarScope
              false
              ssaveReturn
              false
              sdebugLog
              false
              sdescriptors
              xworker.lang.actions.Actions/@GroovyAction
              sinheritDescription
              false
              sth_createIndex
              false
              sth_registMyChilds
              false
              sth_registDisabled
              false
              sth_mark
              false
              sid
              GroovyAction
            @/@tabFolder/@thingLibTabItem/@libComposite/@libTable/@Listeners/@libTableDefaultSeleciton
            sname
            libTableDefaultSeleciton
            stype
            DefaultSelection
            sdescriptors
            xworker.swt.events.Listeners/@listeners/@Listener
            sinheritDescription
            false
            sth_createIndex
            false
            sth_registMyChilds
            false
            sth_registDisabled
            false
            sth_mark
            false
            sid
            libTableDefaultSeleciton
              @/@tabFolder/@thingLibTabItem/@libComposite/@libTable/@Listeners/@libTableDefaultSeleciton/@GroovyAction
              sname
              GroovyAction
              sisSynchronized
              false
              sthrowException
              true
              suseOtherAction
              false
              svarScope
              Local
              sdisableGlobalContext
              false
              Scode
#$@text#$@
def lib = event.item.getData();
def index = lib.getTodayIndex();
actionContext.getScope(0).put("index", index);

okButton.setEnabled(true);

actionContext.getScope(0).put("result", index);
shell.dispose();
#$@text#$@
              sinterpretationType
              Action
              screateLocalVarScope
              false
              ssaveReturn
              false
              sdebugLog
              false
              sdescriptors
              xworker.lang.actions.Actions/@GroovyAction
              sinheritDescription
              false
              sth_createIndex
              false
              sth_registMyChilds
              false
              sth_registDisabled
              false
              sth_mark
              false
              sid
              GroovyAction
          @/@tabFolder/@thingLibTabItem/@libComposite/@libTable/@libTableGriddata
          sname
          libTableGriddata
          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
          sinheritDescription
          false
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_registDisabled
          false
          sth_mark
          false
          sid
          libTableGriddata
        @/@tabFolder/@thingLibTabItem/@libComposite/@5387
        sname
        libButtonComposite
        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
        5387
          @/@tabFolder/@thingLibTabItem/@libComposite/@5387/@5388
          sname
          buttonCompositeGridData
          sstyle
          FILL_HORIZONTAL
          shorizontalIndent
          0
          swidth
          -1
          sheight
          -1
          shorizontalAlignment
          END
          sverticalAlignment
          CENTER
          shorizontalSpan
          1
          sverticalSpan
          1
          sgrabExcessHorizontalSpace
          false
          sgrabExcessVerticalSpace
          false
          sdescriptors
          xworker.swt.layout.LayoutDatas/@GridData
          sid
          5388
          @/@tabFolder/@thingLibTabItem/@libComposite/@5387/@5389
          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
          5389
          @/@tabFolder/@thingLibTabItem/@libComposite/@5387/@5390
          sname
          editLibButton
          stext
          label:xworker.ide.worldexplorer.swt.tools.CategoryIndexSelector/@resources/@I18nResource/@editLibButton
          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
          5390
            @/@tabFolder/@thingLibTabItem/@libComposite/@5387/@5390/@5392
            sname
            Listeners
            sdescriptors
            xworker.swt.widgets.Widget/@Listeners
            sth_createIndex
            false
            sid
            5392
              @/@tabFolder/@thingLibTabItem/@libComposite/@5387/@5390/@5392/@5393
              sname
              editLibButtonSelection
              stype
              Selection
              sdescriptors
              xworker.swt.events.Listeners/@listeners/@Listener
              sth_createIndex
              false
              sid
              5393
                @/@tabFolder/@thingLibTabItem/@libComposite/@5387/@5390/@5392/@5393/@GroovyAction
                sname
                GroovyAction
                sisSynchronized
                false
                sthrowException
                true
                suseOtherAction
                false
                svarScope
                Local
                sdisableGlobalContext
                false
                Scode
#$@text#$@
import org.xmeta.util.UtilThing;
import xworker.lang.util.XWorkerUtils;

def libConfig = UtilThing.getThingIfNotExistsCreate("_local.xworker.config.ThingLib", "_local", "xworker.ide.config.ThingLib");

XWorkerUtils.ideOpenThing(libConfig);
#$@text#$@
                sinterpretationType
                Action
                screateLocalVarScope
                false
                ssaveReturn
                false
                sdebugLog
                false
                sdescriptors
                xworker.lang.actions.Actions/@GroovyAction
                sinheritDescription
                false
                sth_createIndex
                false
                sth_registMyChilds
                false
                sth_registDisabled
                false
                sth_mark
                false
                sid
                GroovyAction
  @/@17578
  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
  17578
    @/@17578/@17579
    sname
    buttonCompositeGridData
    sstyle
    FILL_HORIZONTAL
    shorizontalIndent
    0
    swidth
    -1
    sheight
    -1
    shorizontalAlignment
    END
    sverticalAlignment
    CENTER
    shorizontalSpan
    1
    sverticalSpan
    1
    sgrabExcessHorizontalSpace
    false
    sgrabExcessVerticalSpace
    false
    sdescriptors
    xworker.swt.layout.LayoutDatas/@GridData
    sid
    17579
    @/@17578/@17580
    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
    17580
    @/@17578/@17581
    sname
    okButton
    stext
    label:xworker.ide.worldexplorer.swt.tools.CategoryIndexSelector/@resources/@I18nResource/@okButton
    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
    17581
      @/@17578/@17581/@17582
      sname
      RowData
      sexclude
      false
      swidth
      80
      sheight
      -1
      sdescriptors
      xworker.swt.layout.LayoutDatas/@RowData
      sth_createIndex
      false
      sid
      17582
      @/@17578/@17581/@17583
      sname
      Listeners
      sdescriptors
      xworker.swt.widgets.Widget/@Listeners
      sth_createIndex
      false
      sid
      17583
        @/@17578/@17581/@17583/@17584
        sname
        okButtonSelection
        stype
        Selection
        sdescriptors
        xworker.swt.events.Listeners/@listeners/@Listener
        sth_createIndex
        false
        sid
        17584
          @/@17578/@17581/@17583/@17584/@GroovyAction
          sname
          GroovyAction
          sisSynchronized
          false
          sthrowException
          true
          suseOtherAction
          false
          svarScope
          Local
          sdisableGlobalContext
          false
          Scode
#$@text#$@
import org.xmeta.Index;

actionContext.getScope(0).put("result", index);
shell.dispose();
#$@text#$@
          sinterpretationType
          Action
          screateLocalVarScope
          false
          ssaveReturn
          false
          sdebugLog
          false
          sdescriptors
          xworker.lang.actions.Actions/@GroovyAction
          sinheritDescription
          false
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_mark
          false
          sid
          GroovyAction
    @/@17578/@17585
    sname
    cancelButton
    stext
    label:xworker.ide.worldexplorer.swt.tools.CategoryIndexSelector/@resources/@I18nResource/@cancelButton
    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
    17585
      @/@17578/@17585/@17586
      sname
      RowData
      sexclude
      false
      swidth
      80
      sheight
      -1
      sdescriptors
      xworker.swt.layout.LayoutDatas/@RowData
      sth_createIndex
      false
      sid
      17586
      @/@17578/@17585/@17587
      sname
      Listeners
      sdescriptors
      xworker.swt.widgets.Widget/@Listeners
      sth_createIndex
      false
      sid
      17587
        @/@17578/@17585/@17587/@17588
        sname
        cancelButtonSelection
        stype
        Selection
        sdescriptors
        xworker.swt.events.Listeners/@listeners/@Listener
        sth_createIndex
        false
        sid
        17588
          @/@17578/@17585/@17587/@17588/@GroovyAction
          sname
          GroovyAction
          sisSynchronized
          false
          sthrowException
          true
          suseOtherAction
          false
          svarScope
          Local
          sdisableGlobalContext
          false
          Scode
#$@text#$@
import org.xmeta.Index;

actionContext.getScope(0).put("result", null);
shell.dispose();
#$@text#$@
          sinterpretationType
          Action
          screateLocalVarScope
          false
          ssaveReturn
          false
          sdebugLog
          false
          sdescriptors
          xworker.lang.actions.Actions/@GroovyAction
          sinheritDescription
          false
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_mark
          false
          sid
          GroovyAction
  @/@init
  sname
  init
  sisSynchronized
  false
  sthrowException
  true
  suseOtherAction
  false
  svarScope
  Local
  sdisableGlobalContext
  false
  Scode
#$@text#$@
import xworker.core.config.ThingLibs;

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

def libs = ThingLibs.getAllLibs();
for(lib in libs){
    def item = new TableItem(libTable, SWT.NONE);
    item.setText(lib.label);
    item.setData(lib);
}
#$@text#$@
  sinterpretationType
  Action
  screateLocalVarScope
  false
  ssaveReturn
  false
  sswitchResult
  false
  sdebugLog
  false
  sdescriptors
  xworker.swt.widgets.Widget/@Code
  sinheritDescription
  false
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  init
