^1640696314648
@
sname
DataObjectManager
slabel
数据对象管理器
ssingleInstance
false
scloseable
true
suseRef
false
sdescriptors
xworker.swt.app.view.swt.app.workbentch.Editor
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
  @/@Control
  sname
  Control
  sdescriptors
  xworker.swt.app.view.swt.app.workbentch.Editor/@Control
  sinheritDescription
  false
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_mark
  false
  sid
  Control
    @/@Control/@mainComposite
    sname
    mainComposite
    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_mark
    false
    sid
    mainComposite
      @/@Control/@mainComposite/@mainCompoisteFillLayout
      sname
      mainCompoisteFillLayout
      stype
      SWT.HORIZONTAL
      sdescriptors
      xworker.swt.Layouts/@FillLayout
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      mainCompoisteFillLayout
      @/@Control/@mainComposite/@manSashForm
      sname
      manSashForm
      sstyle
      HORIZONTAL
      sSMOOTH
      false
      sweights
      30,70
      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/@SashForm
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      manSashForm
        @/@Control/@mainComposite/@manSashForm/@groupComposite
        sname
        groupComposite
        sBORDER
        true
        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_mark
        false
        sid
        groupComposite
          @/@Control/@mainComposite/@manSashForm/@groupComposite/@groupCompositeGridLayout
          sname
          groupCompositeGridLayout
          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
          groupCompositeGridLayout
          @/@Control/@mainComposite/@manSashForm/@groupComposite/@groupLabel
          sname
          groupLabel
          sBORDER
          false
          stype
          HORIZONTAL
          sshadow
          SHADOW_OUT
          salignment
          LEFT
          stext
          分组
          scapture
          false
          senabled
          true
          sredraw
          true
          svisible
          true
          sdescriptors
          xworker.swt.Widgets/@Label
          sinheritDescription
          false
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_mark
          false
          sid
          groupLabel
            @/@Control/@mainComposite/@manSashForm/@groupComposite/@groupLabel/@groupLabelGriddata
            sname
            groupLabelGriddata
            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
            sinheritDescription
            false
            sth_createIndex
            false
            sth_registMyChilds
            false
            sth_mark
            false
            sid
            groupLabelGriddata
          @/@Control/@mainComposite/@manSashForm/@groupComposite/@groupTree
          sname
          groupTree
          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
          groupTree
            @/@Control/@mainComposite/@manSashForm/@groupComposite/@groupTree/@TreeModels
            sname
            TreeModels
            sdescriptors
            xworker.swt.widgets.Tree/@treeModels
            sinheritDescription
            false
            sth_createIndex
            false
            sth_registMyChilds
            false
            sth_mark
            false
            sid
            TreeModels
              @/@Control/@mainComposite/@manSashForm/@groupComposite/@groupTree/@TreeModels/@StringListTreeModel
              sname
              groupTreeModel
              sdescriptors
              xworker.dataObject.app.model.tree.TreeModels/@StringListTreeModel
              sinheritDescription
              false
              sth_createIndex
              false
              sth_registMyChilds
              false
              sth_mark
              false
              sid
              StringListTreeModel
                @/@Control/@mainComposite/@manSashForm/@groupComposite/@groupTree/@TreeModels/@StringListTreeModel/@actions
                sname
                actions
                sdescriptors
                xworker.dataObject.app.model.tree.TreeModel/@13208
                sinheritDescription
                false
                sth_createIndex
                false
                sth_registMyChilds
                false
                sth_mark
                false
                sid
                actions
                  @/@Control/@mainComposite/@manSashForm/@groupComposite/@groupTree/@TreeModels/@StringListTreeModel/@actions/@getStringList
                  sname
                  getStringList
                  sisSynchronized
                  false
                  sthrowException
                  true
                  suseOtherAction
                  false
                  svarScope
                  Local
                  sdisableGlobalContext
                  false
                  Scode
#$@text#$@
//获取所有记录的数据对象
def thing = world.getThing("xworker.app.dataObject.dataobjects.DataObjects");
def dataObjects = thing.doAction("query", actionContext);

//返回数据对象的分组
def groups = [];
for(data in dataObjects){
    def gs = data.getString("groups");
    if(gs != null && gs != ""){
        def gss = gs.split("[,]");
       for(g in gss){
           if(g != null && g != ""){
               groups.add(g);
           }
       }
    }
}

return groups;
#$@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
                  getStringList
            @/@Control/@mainComposite/@manSashForm/@groupComposite/@groupTree/@Listeners
            sname
            Listeners
            sdescriptors
            xworker.swt.widgets.Widget/@Listeners
            sinheritDescription
            false
            sth_createIndex
            false
            sth_registMyChilds
            false
            sth_mark
            false
            sid
            Listeners
              @/@Control/@mainComposite/@manSashForm/@groupComposite/@groupTree/@Listeners/@Listener
              sname
              Listener
              stype
              Selection
              sdescriptors
              xworker.swt.events.Listeners/@listeners/@Listener
              sinheritDescription
              false
              sth_createIndex
              false
              sth_registMyChilds
              false
              sth_mark
              false
              sid
              Listener
                @/@Control/@mainComposite/@manSashForm/@groupComposite/@groupTree/@Listeners/@Listener/@groupTreeSelection
                sname
                groupTreeSelection
                sisSynchronized
                false
                sthrowException
                true
                suseOtherAction
                false
                svarScope
                Local
                sdisableGlobalContext
                false
                Scode
#$@text#$@
def node = event.item.getData();

def path = node.getText();
def parent = node.getParent();
while(parent.getParent() != null){
    path = parent.getText() + "." + path;
    parent = parent.getParent();
}

dataObjectsEditor.doAction("setQueryFormValues", actionContext, ["values":["groups": path]]);
dataObjectsEditor.doAction("doQuery", actionContext);
#$@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
                groupTreeSelection
            @/@Control/@mainComposite/@manSashForm/@groupComposite/@groupTree/@groupTreeGridData
            sname
            groupTreeGridData
            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
            groupTreeGridData
          @/@Control/@mainComposite/@manSashForm/@groupComposite/@17571
          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
          17571
            @/@Control/@mainComposite/@manSashForm/@groupComposite/@17571/@17572
            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
            17572
            @/@Control/@mainComposite/@manSashForm/@groupComposite/@17571/@17573
            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
            17573
            @/@Control/@mainComposite/@manSashForm/@groupComposite/@17571/@17574
            sname
            refreshButton
            stext
            刷新
            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
            17574
              @/@Control/@mainComposite/@manSashForm/@groupComposite/@17571/@17574/@17575
              sname
              RowData
              sexclude
              false
              swidth
              80
              sheight
              -1
              sdescriptors
              xworker.swt.layout.LayoutDatas/@RowData
              sth_createIndex
              false
              sid
              17575
              @/@Control/@mainComposite/@manSashForm/@groupComposite/@17571/@17574/@17576
              sname
              Listeners
              sdescriptors
              xworker.swt.widgets.Widget/@Listeners
              sth_createIndex
              false
              sid
              17576
                @/@Control/@mainComposite/@manSashForm/@groupComposite/@17571/@17574/@17576/@17577
                sname
                refreshButtonSelection
                stype
                Selection
                sdescriptors
                xworker.swt.events.Listeners/@listeners/@Listener
                sth_createIndex
                false
                sid
                17577
                  @/@Control/@mainComposite/@manSashForm/@groupComposite/@17571/@17574/@17576/@17577/@refresh
                  sname
                  refresh
                  sexpression
                  groupTreeModel.doAction("reload", actionContext)
                  sinterpretationType
                  Self
                  sattributeTemplate
                  false
                  schildsAttributeTemplate
                  false
                  svarScope
                  Local
                  sisSynchronized
                  false
                  sthrowException
                  true
                  suseOtherAction
                  false
                  screateLocalVarScope
                  false
                  ssaveReturn
                  false
                  sdisableGlobalContext
                  false
                  sdebugLog
                  false
                  sdescriptors
                  xworker.lang.actions.Actions/@Ongl
                  sinheritDescription
                  false
                  sth_createIndex
                  false
                  sth_registMyChilds
                  false
                  sth_mark
                  false
                  sid
                  refresh
        @/@Control/@mainComposite/@manSashForm/@rightSashForm
        sname
        rightSashForm
        sstyle
        VERTICAL
        sSMOOTH
        false
        sweights
        55,45
        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/@SashForm
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_mark
        false
        sid
        rightSashForm
          @/@Control/@mainComposite/@manSashForm/@rightSashForm/@dataObjectsEditor
          sname
          dataObjectsEditor
          sdataObject
          xworker.app.dataObject.dataobjects.DataObjects
          squeryButton
          true
          snewButton
          true
          seditButton
          true
          seditBatchButton
          false
          sdeleteButton
          true
          sselectAllButton
          false
          sselectRerverseButton
          false
          spagingToolbar
          true
          sactionContext
          dataObjectContext
          stableCheck
          false
          sdebug
          false
          sdescriptors
          xworker.swt.app.view.swt.Items/@DataObjectEditCompoiste
          sinheritDescription
          false
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_mark
          false
          sid
          dataObjectsEditor
            @/@Control/@mainComposite/@manSashForm/@rightSashForm/@dataObjectsEditor/@actions
            sname
            actions
            sdescriptors
            xworker.swt.app.view.swt.widgets.DataObjectEditCompoiste/@actions1
            sinheritDescription
            false
            sth_createIndex
            false
            sth_registMyChilds
            false
            sth_mark
            false
            sid
            actions
              @/@Control/@mainComposite/@manSashForm/@rightSashForm/@dataObjectsEditor/@actions/@tableSelection
              sname
              tableSelection
              sisSynchronized
              false
              sthrowException
              true
              suseOtherAction
              false
              svarScope
              Local
              sdisableGlobalContext
              false
              Scode
#$@text#$@
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.MessageBox;

def data = dataObjectContext.get("dataTable").getSelection()[0].getData();

def dataObject = world.getThing(data.get("path"));
if(dataObject != null){
    dataObjectEditorBase.doAction("setDataObject", actionContext, ["dataObject": dataObject]);
}

editTingButton.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_mark
              false
              sid
              tableSelection
              @/@Control/@mainComposite/@manSashForm/@rightSashForm/@dataObjectsEditor/@actions/@onStoreLoaded
              sname
              onStoreLoaded
              sisSynchronized
              false
              sthrowException
              true
              suseOtherAction
              false
              svarScope
              Local
              sdisableGlobalContext
              false
              Scode
#$@text#$@
def editTingButton = editTingButton;
editTingButton.display.asyncExec({
    editTingButton.setEnabled(false);
});
#$@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
              onStoreLoaded
              @/@Control/@mainComposite/@manSashForm/@rightSashForm/@dataObjectsEditor/@actions/@tableDeleted
              sname
              tableDeleted
              sisSynchronized
              false
              sthrowException
              true
              suseOtherAction
              false
              svarScope
              Local
              sdisableGlobalContext
              false
              scode
              editTingButton.setEnabled(false);
              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
              tableDeleted
            @/@Control/@mainComposite/@manSashForm/@rightSashForm/@dataObjectsEditor/@Buttons
            sname
            Buttons
            sdescriptors
            xworker.swt.app.view.swt.widgets.DataObjectEditCompoiste/@Buttons
            sinheritDescription
            false
            sth_createIndex
            false
            sth_registMyChilds
            false
            sth_mark
            false
            sid
            Buttons
              @/@Control/@mainComposite/@manSashForm/@rightSashForm/@dataObjectsEditor/@Buttons/@editTingButton
              sname
              editTingButton
              stext
              编辑事物
              stype
              SWT.PUSH
              sflat
              false
              sborder
              false
              sselected
              false
              scapture
              false
              senabled
              false
              sredraw
              true
              svisible
              true
              sdescriptors
              xworker.swt.app.view.swt.widgets.DataObjectEditCompoiste/@Buttons/@Button
              sinheritDescription
              false
              sth_createIndex
              false
              sth_registMyChilds
              false
              sth_mark
              false
              sid
              editTingButton
                @/@Control/@mainComposite/@manSashForm/@rightSashForm/@dataObjectsEditor/@Buttons/@editTingButton/@editTihngButtonRowLayout
                sname
                editTihngButtonRowLayout
                sexclude
                false
                swidth
                80
                sheight
                -1
                sdescriptors
                xworker.swt.layout.LayoutDatas/@RowData
                sinheritDescription
                false
                sth_createIndex
                false
                sth_registMyChilds
                false
                sth_mark
                false
                sid
                editTihngButtonRowLayout
                @/@Control/@mainComposite/@manSashForm/@rightSashForm/@dataObjectsEditor/@Buttons/@editTingButton/@Listeners
                sname
                Listeners
                sdescriptors
                xworker.swt.widgets.Widget/@Listeners
                sinheritDescription
                false
                sth_createIndex
                false
                sth_registMyChilds
                false
                sth_mark
                false
                sid
                Listeners
                  @/@Control/@mainComposite/@manSashForm/@rightSashForm/@dataObjectsEditor/@Buttons/@editTingButton/@Listeners/@editThingButtonSelection
                  sname
                  editThingButtonSelection
                  stype
                  Selection
                  sdescriptors
                  xworker.swt.events.Listeners/@listeners/@Listener
                  sinheritDescription
                  false
                  sth_createIndex
                  false
                  sth_registMyChilds
                  false
                  sth_mark
                  false
                  sid
                  editThingButtonSelection
                    @/@Control/@mainComposite/@manSashForm/@rightSashForm/@dataObjectsEditor/@Buttons/@editTingButton/@Listeners/@editThingButtonSelection/@openThing
                    sname
                    openThing
                    sthingPathVarName
                    dataObjectContext.dataTable.getSelection()[0].getData().path
                    screateIfNotExists
                    false
                    sinterpretationType
                    Self
                    sattributeTemplate
                    false
                    schildsAttributeTemplate
                    false
                    svarScope
                    Local
                    sisSynchronized
                    false
                    sthrowException
                    true
                    suseOtherAction
                    false
                    screateLocalVarScope
                    false
                    ssaveReturn
                    false
                    sdisableGlobalContext
                    false
                    sdebugLog
                    false
                    sdescriptors
                    xworker.ide.worldexplorer.actions.ExplorerActions/@OpenThing
                    sinheritDescription
                    false
                    sth_createIndex
                    false
                    sth_registMyChilds
                    false
                    sth_mark
                    false
                    sid
                    openThing
              @/@Control/@mainComposite/@manSashForm/@rightSashForm/@dataObjectsEditor/@Buttons/@importDataObjectsButton
              sname
              importDataObjectsButton
              stext
              导入注册数据对象
              stype
              SWT.PUSH
              sflat
              false
              sborder
              false
              sselected
              false
              scapture
              false
              senabled
              true
              sredraw
              true
              svisible
              true
              sdescriptors
              xworker.swt.app.view.swt.widgets.DataObjectEditCompoiste/@Buttons/@Button
              sinheritDescription
              false
              sth_createIndex
              false
              sth_registMyChilds
              false
              sth_mark
              false
              sid
              importDataObjectsButton
                @/@Control/@mainComposite/@manSashForm/@rightSashForm/@dataObjectsEditor/@Buttons/@importDataObjectsButton/@Listeners
                sname
                Listeners
                sdescriptors
                xworker.swt.widgets.Widget/@Listeners
                sinheritDescription
                false
                sth_createIndex
                false
                sth_registMyChilds
                false
                sth_mark
                false
                sid
                Listeners
                  @/@Control/@mainComposite/@manSashForm/@rightSashForm/@dataObjectsEditor/@Buttons/@importDataObjectsButton/@Listeners/@importRegistedDataObjects
                  sname
                  importRegistedDataObjects
                  stype
                  Selection
                  sdescriptors
                  xworker.swt.events.Listeners/@listeners/@Listener
                  sinheritDescription
                  false
                  sth_createIndex
                  false
                  sth_registMyChilds
                  false
                  sth_mark
                  false
                  sid
                  importRegistedDataObjects
                    @/@Control/@mainComposite/@manSashForm/@rightSashForm/@dataObjectsEditor/@Buttons/@importDataObjectsButton/@Listeners/@importRegistedDataObjects/@importALlDataObjects
                    sname
                    importALlDataObjects
                    sasync
                    true
                    sprogressAble
                    true
                    sinterpretationType
                    Self
                    sattributeTemplate
                    false
                    schildsAttributeTemplate
                    false
                    svarScope
                    Local
                    sisSynchronized
                    false
                    sthrowException
                    true
                    suseOtherAction
                    false
                    screateLocalVarScope
                    false
                    ssaveReturn
                    false
                    sdisableGlobalContext
                    false
                    sdebugLog
                    false
                    sdescriptors
                    xworker.ide.task.actions.UserTask
                    sinheritDescription
                    false
                    sth_createIndex
                    false
                    sth_registMyChilds
                    false
                    sth_mark
                    false
                    sid
                    importALlDataObjects
                      @/@Control/@mainComposite/@manSashForm/@rightSashForm/@dataObjectsEditor/@Buttons/@importDataObjectsButton/@Listeners/@importRegistedDataObjects/@importALlDataObjects/@actions
                      sname
                      actions
                      sdescriptors
                      xworker.ide.task.actions.UserTask/@actions1
                      sinheritDescription
                      false
                      sth_createIndex
                      false
                      sth_registMyChilds
                      false
                      sth_mark
                      false
                      sid
                      actions
                        @/@Control/@mainComposite/@manSashForm/@rightSashForm/@dataObjectsEditor/@Buttons/@importDataObjectsButton/@Listeners/@importRegistedDataObjects/@importALlDataObjects/@actions/@doTask
                        sname
                        doTask
                        sisSynchronized
                        false
                        sthrowException
                        true
                        suseOtherAction
                        false
                        svarScope
                        Local
                        sdisableGlobalContext
                        false
                        Scode
#$@text#$@
import xworker.ide.utils.ThingRegistUtils;

import xworker.dataObject.DataObject;
import xworker.dataObject.utils.DataObjectUtil;

task.setCurrentLabel("查询注册的数据对象列表");
def dataObjects = ThingRegistUtils.getAllRegists("xworker.dataObject.DataObjectIns", "child", actionContext);

task.setDetail("Import dataobjects, total " + dataObjects.size());
def total = dataObjects.size();
def icnt = 0;
def ocnt = 0;
for(data in dataObjects){
    //检查是否已经存在
    def ds  = DataObjectUtil.query("xworker.app.dataObject.dataobjects.DataObjects", 
        ["path": data.getMetadata().getPath()], actionContext);
    if(ds.size() == 0){
        //不存在，插入
        def obj = new DataObject("xworker.app.dataObject.dataobjects.DataObjects");
        obj.put("name", data.getMetadata().getName());
        obj.put("label", data.getMetadata().getLabel());
        obj.put("groups", data.getString("group"));
        obj.put("path", data.getMetadata().getPath());
        obj.create(actionContext);
        icnt ++;
    }else{
        //println(ds);
        ocnt ++;
    }
    //println(data.getMetadata().getPath());
    task.setCurrentLabel("插入" + icnt + "条记录，已存在" + ocnt + "条记录，总共要处理" + total + "条记录");
    task.setProgress((int) ((icnt + ocnt) * 100 / total));
    //Thread.sleep(1000);
}

task.finished();
#$@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
                        doTask
          @/@Control/@mainComposite/@manSashForm/@rightSashForm/@editorTabFolder
          sname
          editorTabFolder
          sstyle
          TOP
          sBORDER
          true
          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
          sinheritDescription
          false
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_mark
          false
          sid
          editorTabFolder
            @/@Control/@mainComposite/@manSashForm/@rightSashForm/@editorTabFolder/@editorTabItem
            sname
            editorTabItem
            stext
            编辑数据
            sCLOSE
            false
            sdescriptors
            xworker.swt.custom.CTabFolder/@CTabItem
            sinheritDescription
            false
            sth_createIndex
            false
            sth_registMyChilds
            false
            sth_mark
            false
            sid
            editorTabItem
              @/@Control/@mainComposite/@manSashForm/@rightSashForm/@editorTabFolder/@editorTabItem/@dataObjectEditor
              sname
              dataObjectEditorBase
              squeryButton
              true
              snewButton
              true
              seditButton
              true
              seditBatchButton
              false
              sdeleteButton
              true
              sselectAllButton
              false
              sselectRerverseButton
              false
              spagingToolbar
              true
              sactionContext
              dataObjectContextBase
              stableCheck
              false
              sdebug
              false
              sdescriptors
              xworker.swt.app.view.swt.Items/@DataObjectEditCompoiste
              sinheritDescription
              false
              sth_createIndex
              false
              sth_registMyChilds
              false
              sth_mark
              false
              sid
              dataObjectEditor
