^1640696313523
@
sname
FeatureComposite
slabel
FeatureComposite
sdescriptors
xworker.swt.widgets.Display
sid
FeatureComposite
  @/@shell
  sname
  shell
  stext
  使用特征
  sNO_TRIM
  false
  sCLOSE
  true
  sTITLE
  true
  sMIN
  true
  sMAX
  true
  sBORDER
  false
  sRESIZE
  true
  sON_TOP
  false
  sTOOL
  false
  sNO_FOCUS
  false
  swidth
  640
  sheight
  480
  scenterScreen
  true
  spack
  false
  smaximized
  false
  sfullScreen
  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
  scapture
  false
  senabled
  true
  sredraw
  true
  svisible
  true
  sdescriptors
  xworker.swt.widgets.Display/@Shell
  sid
  shell
    @/@shell/@FillLayout
    sname
    FillLayout
    stype
    SWT.HORIZONTAL
    slabel
    FillLayout
    sdescriptors
    xworker.swt.Layouts/@FillLayout
    sid
    FillLayout
    @/@shell/@mainComposite
    sname
    mainComposite
    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
    sid
    mainComposite
      @/@shell/@mainComposite/@listComposite
      sname
      listComposite
      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
      listComposite
        @/@shell/@mainComposite/@listComposite/@listCompositeGridLayout
        sname
        listCompositeGridLayout
        smakeColumnsEqualWidth
        false
        smarginWidth
        5
        smarginHeight
        5
        smarginLeft
        0
        smarginTop
        0
        smarginRight
        0
        smarginBottom
        0
        shorizontalSpacing
        5
        sverticalSpacing
        5
        slabel
        listCompositeGridLayout
        sdescriptors
        xworker.swt.Layouts/@GridLayout
        sid
        listCompositeGridLayout
        @/@shell/@mainComposite/@listComposite/@tableFolder
        sname
        tableFolder
        sstyle
        TOP
        sBORDER
        false
        sFLAT
        false
        sCLOSE
        false
        sSINGLE
        false
        sMRUVisible
        false
        ssimple
        false
        sH_SCROLL
        false
        sV_SCROLL
        false
        sNO_BACKGROUND
        false
        sNO_FOCUS
        false
        sNO_MERGE_PAINTS
        false
        sNO_REDRAW_RESIZE
        false
        sNO_RADIO_GROUP
        false
        sEMBEDDED
        false
        sDOUBLE_BUFFERED
        false
        scapture
        false
        senabled
        true
        sredraw
        true
        svisible
        true
        sdescriptors
        xworker.swt.Widgets/@CTabFolder
        sid
        tableFolder
          @/@shell/@mainComposite/@listComposite/@tableFolder/@registTabItem
          sname
          registTabItem
          stext
          label:xworker.swt.ide.worldexplorer.swt.i18n.I18nResource/@featuresComposite/@fratureList
          sCLOSE
          false
          slabel
          registTabItem
          sdescriptors
          xworker.swt.custom.CTabFolder/@CTabItem
          sid
          registTabItem
            @/@shell/@mainComposite/@listComposite/@tableFolder/@registTabItem/@listSashFrom
            sname
            listSashFrom
            sstyle
            VERTICAL
            sSMOOTH
            false
            sweights
            50,50
            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
            sid
            listSashFrom
              @/@shell/@mainComposite/@listComposite/@tableFolder/@registTabItem/@listSashFrom/@registsComposite
              sname
              registsComposite
              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
              registsComposite
                @/@shell/@mainComposite/@listComposite/@tableFolder/@registTabItem/@listSashFrom/@registsComposite/@registsCompositeGridLayout
                sname
                registsCompositeGridLayout
                snumColumns
                2
                smakeColumnsEqualWidth
                false
                smarginWidth
                5
                smarginHeight
                5
                smarginLeft
                0
                smarginTop
                0
                smarginRight
                0
                smarginBottom
                0
                shorizontalSpacing
                5
                sverticalSpacing
                5
                slabel
                registsCompositeGridLayout
                sdescriptors
                xworker.swt.Layouts/@GridLayout
                sid
                registsCompositeGridLayout
                @/@shell/@mainComposite/@listComposite/@tableFolder/@registTabItem/@listSashFrom/@registsComposite/@searchText
                sname
                searchText
                sstyle
                SINGLE
                sH_SCROLL
                false
                sV_SCROLL
                false
                sWRAP
                false
                sREAD_ONLY
                false
                sPASSWORD
                false
                sSEARCH
                true
                sCANCEL
                false
                sBORDER
                true
                salign
                LEFT
                scapture
                false
                senabled
                true
                sredraw
                true
                svisible
                true
                slabel
                searchText
                sdescriptors
                xworker.swt.Widgets/@Text
                sid
                searchText
                  @/@shell/@mainComposite/@listComposite/@tableFolder/@registTabItem/@listSashFrom/@registsComposite/@searchText/@searchTextGridData
                  sname
                  searchTextGridData
                  sstyle
                  FILL_HORIZONTAL
                  shorizontalIndent
                  0
                  swidth
                  -1
                  sheight
                  -1
                  shorizontalAlignment
                  BEGINNING
                  sverticalAlignment
                  CENTER
                  shorizontalSpan
                  1
                  sverticalSpan
                  1
                  sgrabExcessHorizontalSpace
                  false
                  sgrabExcessVerticalSpace
                  false
                  slabel
                  searchTextGridData
                  sdescriptors
                  xworker.swt.layout.LayoutDatas/@GridData
                  sid
                  searchTextGridData
                @/@shell/@mainComposite/@listComposite/@tableFolder/@registTabItem/@listSashFrom/@registsComposite/@searchButton
                sname
                searchButton
                stext
                label:xworker.swt.ide.worldexplorer.swt.i18n.I18nResource/@buttons/@searchButton
                stype
                SWT.PUSH
                sflat
                false
                sborder
                false
                sselected
                false
                scapture
                false
                senabled
                true
                sredraw
                true
                svisible
                true
                slabel
                searchButton
                sdescriptors
                xworker.swt.Widgets/@Button
                sid
                searchButton
                  @/@shell/@mainComposite/@listComposite/@tableFolder/@registTabItem/@listSashFrom/@registsComposite/@searchButton/@Listeners
                  sname
                  Listeners
                  slabel
                  Listeners
                  sdescriptors
                  xworker.swt.widgets.Widget/@Listeners
                  sid
                  Listeners
                    @/@shell/@mainComposite/@listComposite/@tableFolder/@registTabItem/@listSashFrom/@registsComposite/@searchButton/@Listeners/@searchButtonSelection
                    sname
                    searchButtonSelection
                    stype
                    Selection
                    slabel
                    searchButtonSelection
                    sdescriptors
                    xworker.swt.events.Listeners/@listeners/@Listener
                    sid
                    searchButtonSelection
                      @/@shell/@mainComposite/@listComposite/@tableFolder/@registTabItem/@listSashFrom/@registsComposite/@searchButton/@Listeners/@searchButtonSelection/@GroovyAction
                      sname
                      GroovyAction
                      sisSynchronized
                      false
                      sthrowException
                      true
                      suseOtherAction
                      false
                      svarScope
                      Global
                      sdisableGlobalContext
                      false
                      Scode
#$@text#$@
def keywords = searchText.getText().toLowerCase().trim();
if(keywords == ""){
    keywords = null;
}
store.doAction("load", actionContext, ["params":[
    "registType":"feature",
    "keywords":keywords,
    "thing":thing]
]);
#$@text#$@
                      sdescriptors
                      xworker.lang.actions.Actions/@GroovyAction
                      sid
                      GroovyAction
                @/@shell/@mainComposite/@listComposite/@tableFolder/@registTabItem/@listSashFrom/@registsComposite/@registTable
                sname
                registTable
                sselectStyle
                SINGLE
                sV_SCROLL
                true
                sH_SCROLL
                true
                sCHECK
                false
                sFULL_SELECTION
                true
                sHIDE_SELECTION
                true
                sBORDER
                false
                slineVisible
                true
                smultipleColumns
                true
                sheaderVisible
                true
                ssortIndicator
                true
                smoveableColumns
                true
                sheadImages
                false
                ssubImages
                false
                sVIRTUAL
                false
                slabel
                registTable
                sdescriptors
                xworker.swt.Widgets/@Table
                sid
                registTable
                  @/@shell/@mainComposite/@listComposite/@tableFolder/@registTabItem/@listSashFrom/@registsComposite/@registTable/@registTableGridData
                  sname
                  registTableGridData
                  sstyle
                  FILL_BOTH
                  shorizontalIndent
                  0
                  swidth
                  -1
                  sheight
                  -1
                  shorizontalAlignment
                  BEGINNING
                  sverticalAlignment
                  CENTER
                  shorizontalSpan
                  2
                  sverticalSpan
                  1
                  sgrabExcessHorizontalSpace
                  false
                  sgrabExcessVerticalSpace
                  false
                  slabel
                  registTableGridData
                  sdescriptors
                  xworker.swt.Commons/@GridData
                  sid
                  registTableGridData
                  @/@shell/@mainComposite/@listComposite/@tableFolder/@registTabItem/@listSashFrom/@registsComposite/@registTable/@store
                  sname
                  store
                  sattachToParent
                  true
                  sloadBackground
                  true
                  sautoLoad
                  false
                  sautoSave
                  false
                  sdataObject
                  xworker.ide.db.dbindex.app.dataObject.RegistsByThing
                  slabel
                  store
                  sdescriptors
                  xworker.swt.Commons/@DataStore
                  sid
                  store
                  @/@shell/@mainComposite/@listComposite/@tableFolder/@registTabItem/@listSashFrom/@registsComposite/@registTable/@listeners
                  sname
                  listeners
                  slabel
                  listeners
                  sdescriptors
                  xworker.swt.events.Listeners/@listeners
                  sid
                  listeners
                    @/@shell/@mainComposite/@listComposite/@tableFolder/@registTabItem/@listSashFrom/@registsComposite/@registTable/@listeners/@registTableSelection
                    sname
                    registTableSelection
                    stype
                    Selection
                    slabel
                    registTableSelection
                    sdescriptors
                    xworker.swt.events.Listeners/@listeners/@Listener
                    sid
                    registTableSelection
                      @/@shell/@mainComposite/@listComposite/@tableFolder/@registTabItem/@listSashFrom/@registsComposite/@registTable/@listeners/@registTableSelection/@GroovyAction
                      sname
                      GroovyAction
                      sisSynchronized
                      false
                      sthrowException
                      true
                      suseOtherAction
                      false
                      svarScope
                      Global
                      sdisableGlobalContext
                      false
                      Scode
#$@text#$@
import org.xmeta.ActionContext;
import org.xmeta.Thing;

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

descTree.removeAll();

def data = registTable.getSelection()[0].getData();
def thing = world.getThing(data.path);
if(thing != null){
    openUrl("do?sc=xworker.ide.worldexplorer.swt.http.ThingDoc/@desc&thing=" + thing.metadata.path, false);
        
    initDescTree(thing, descTree, [:]);
}

leditButton.setEnabled(true);
if(thing != null && thing.getBoolean("isNode")){
    useButton.setEnabled(false);
}else{
    useButton.setEnabled(true);
}

def initDescTree(thing, item, context){
    if(context.get(thing) != null){
        return;
    }
    
    context.put(thing, thing);
    def treeItem = new TreeItem(item, SWT.NONE);
    treeItem.setText(thing.metadata.label + " (" + thing.getThingName() + ")");
    treeItem.setData(thing);
    
    for(child in thing.getAllChilds()){
        initDescTree(child, treeItem, context);
    }
    treeItem.expanded = true;
}
   
def openUrl(url, isOuterUrl){
    //log.info(url);
    if(isOuterUrl){
        browser.setUrl(url);
    }else{
        def globalCfg = world.getThing("_local.xworker.config.GlobalConfig");
        descBrowser.setUrl(globalCfg.webUrl + url);
    }
}
#$@text#$@
                      sdescriptors
                      xworker.lang.actions.Actions/@GroovyAction
                      sid
                      GroovyAction
                @/@shell/@mainComposite/@listComposite/@tableFolder/@registTabItem/@listSashFrom/@registsComposite/@pageToolbar
                sname
                pageToolbar
                sbeforePageText
                第
                safterPageText
                页 共{0}页
                sdisplayInfo
                true
                sdisplayMsg
                第{0}-第{1}条，共{2}条
                semptyMsg
                没有数据
                sfirstText
                首页
                slastText
                最后一页
                sstore
                store
                sdescriptors
                xworker.swt.app.view.swt.Items/@PagingToolbar
                sid
                pageToolbar
                  @/@shell/@mainComposite/@listComposite/@tableFolder/@registTabItem/@listSashFrom/@registsComposite/@pageToolbar/@pageToolbarGridData
                  sname
                  pageToolbarGridData
                  sstyle
                  FILL_HORIZONTAL
                  shorizontalIndent
                  0
                  swidth
                  -1
                  sheight
                  -1
                  shorizontalAlignment
                  BEGINNING
                  sverticalAlignment
                  CENTER
                  shorizontalSpan
                  1
                  sverticalSpan
                  1
                  sgrabExcessHorizontalSpace
                  false
                  sgrabExcessVerticalSpace
                  false
                  slabel
                  pageToolbarGridData
                  sdescriptors
                  xworker.swt.Commons/@GridData
                  sid
                  pageToolbarGridData
              @/@shell/@mainComposite/@listComposite/@tableFolder/@registTabItem/@listSashFrom/@descSashFrom
              sname
              descSashFrom
              sstyle
              HORIZONTAL
              sSMOOTH
              false
              sweights
              50,50
              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
              sid
              descSashFrom
                @/@shell/@mainComposite/@listComposite/@tableFolder/@registTabItem/@listSashFrom/@descSashFrom/@descBrowser
                sname
                descBrowser
                sMOZILLA
                false
                slabel
                descBrowser
                sdescriptors
                xworker.swt.Widgets/@Browser
                sid
                descBrowser
                @/@shell/@mainComposite/@listComposite/@tableFolder/@registTabItem/@listSashFrom/@descSashFrom/@descTree
                sname
                descTree
                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
                slabel
                descTree
                sdescriptors
                xworker.swt.Widgets/@Tree
                sid
                descTree
                  @/@shell/@mainComposite/@listComposite/@tableFolder/@registTabItem/@listSashFrom/@descSashFrom/@descTree/@listeners
                  sname
                  listeners
                  slabel
                  listeners
                  sdescriptors
                  xworker.swt.events.Listeners/@listeners
                  sid
                  listeners
                    @/@shell/@mainComposite/@listComposite/@tableFolder/@registTabItem/@listSashFrom/@descSashFrom/@descTree/@listeners/@descTreeSelection
                    sname
                    descTreeDefaultSelection
                    stype
                    DefaultSelection
                    slabel
                    descTreeDefaultSelection
                    sdescriptors
                    xworker.swt.events.Listeners/@listeners/@Listener
                    sid
                    descTreeSelection
                      @/@shell/@mainComposite/@listComposite/@tableFolder/@registTabItem/@listSashFrom/@descSashFrom/@descTree/@listeners/@descTreeSelection/@GroovyAction
                      sname
                      GroovyAction
                      sisSynchronized
                      false
                      sthrowException
                      true
                      suseOtherAction
                      false
                      svarScope
                      Global
                      sdisableGlobalContext
                      false
                      Scode
#$@text#$@
def items = descTree.getSelection();
if(items != null && items.length > 0){
    def item = items[0];
    
    explorerActions.doAction("openThing", ["thing":item.getData()]);
}
#$@text#$@
                      sdescriptors
                      xworker.lang.actions.Actions/@GroovyAction
                      sid
                      GroovyAction
          @/@shell/@mainComposite/@listComposite/@tableFolder/@helpTabItem
          sname
          helpTabItem
          stext
          帮助
          sCLOSE
          false
          slabel
          helpTabItem
          sdescriptors
          xworker.swt.custom.CTabFolder/@CTabItem
          sid
          helpTabItem
            @/@shell/@mainComposite/@listComposite/@tableFolder/@helpTabItem/@helpBrowser
            sname
            helpBrowser
            sMOZILLA
            false
            slabel
            helpBrowser
            sdescriptors
            xworker.swt.Widgets/@Browser
            sid
            helpBrowser
          @/@shell/@mainComposite/@listComposite/@tableFolder/@tableFolderGridData
          sname
          tableFolderGridData
          sstyle
          FILL_BOTH
          shorizontalIndent
          0
          swidth
          -1
          sheight
          -1
          shorizontalAlignment
          BEGINNING
          sverticalAlignment
          CENTER
          shorizontalSpan
          1
          sverticalSpan
          1
          sgrabExcessHorizontalSpace
          false
          sgrabExcessVerticalSpace
          false
          slabel
          tableFolderGridData
          sdescriptors
          xworker.swt.layout.LayoutDatas/@GridData
          sid
          tableFolderGridData
        @/@shell/@mainComposite/@listComposite/@listButtonComposite
        sname
        listButtonComposite
        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
        listButtonComposite
          @/@shell/@mainComposite/@listComposite/@listButtonComposite/@listbuttonComGridData
          sname
          listbuttonComGridData
          sstyle
          FILL_HORIZONTAL
          shorizontalIndent
          0
          swidth
          -1
          sheight
          -1
          shorizontalAlignment
          END
          sverticalAlignment
          CENTER
          shorizontalSpan
          1
          sverticalSpan
          1
          sgrabExcessHorizontalSpace
          false
          sgrabExcessVerticalSpace
          false
          slabel
          listbuttonComGridData
          sdescriptors
          xworker.swt.layout.LayoutDatas/@GridData
          sid
          listbuttonComGridData
          @/@shell/@mainComposite/@listComposite/@listButtonComposite/@listButtonRwLayout
          sname
          listButtonRwLayout
          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
          slabel
          listButtonRwLayout
          sdescriptors
          xworker.swt.Layouts/@RowLayout
          sid
          listButtonRwLayout
          @/@shell/@mainComposite/@listComposite/@listButtonComposite/@lopenButton
          sname
          useButton
          stext
          label:xworker.swt.ide.worldexplorer.swt.i18n.I18nResource/@templateDialog/@userButton
          stype
          SWT.PUSH
          sflat
          false
          sborder
          false
          sselected
          false
          scapture
          false
          senabled
          false
          sredraw
          true
          svisible
          true
          slabel
          useButton
          sdescriptors
          xworker.swt.Widgets/@Button
          sid
          lopenButton
            @/@shell/@mainComposite/@listComposite/@listButtonComposite/@lopenButton/@Listeners
            sname
            Listeners
            slabel
            Listeners
            sdescriptors
            xworker.swt.widgets.Widget/@Listeners
            sid
            Listeners
              @/@shell/@mainComposite/@listComposite/@listButtonComposite/@lopenButton/@Listeners/@lopenButtonSelection
              sname
              lopenButtonSelection
              stype
              Selection
              slabel
              lopenButtonSelection
              sdescriptors
              xworker.swt.events.Listeners/@listeners/@Listener
              sid
              lopenButtonSelection
                @/@shell/@mainComposite/@listComposite/@listButtonComposite/@lopenButton/@Listeners/@lopenButtonSelection/@GroovyAction
                sname
                GroovyAction
                sisSynchronized
                false
                sthrowException
                true
                suseOtherAction
                false
                svarScope
                Global
                sdisableGlobalContext
                false
                Scode
#$@text#$@
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.MessageBox;

if(registTable.getSelection().length == 0) return;

def data = registTable.getSelection()[0].getData();
def featureThing = world.getThing(data.path);
if(featureThing != null){
    featureThing.doAction("apply", actionContext, ["thing":thing]);
    thing.save();
        
    thingContext.actions.doAction("selectThing", ["thing":thing]);

    //刷新编辑概要树
    def action = world.getAction("xworker.swt.ide.worldexplorer.swt.dataExplorerParts.ThingEditor/@outlineTree/@popMenu/@refreshMenuItem/@listeners/@refreshMenuSelection/@GroovyAction");
    action.run(thingContext);
    
    MessageBox box = new MessageBox(shell, SWT.OK | SWT.ICON_INFORMATION);
    box.setText("操作信息");
    box.setMessage("特征应用成功！");
    box.open();
}else{
    MessageBox box = new MessageBox(shell, SWT.OK | SWT.ICON_INFORMATION);
    box.setText("操作信息");
    box.setMessage("特征不存在！");
    box.open();
}
#$@text#$@
                sdescriptors
                xworker.lang.actions.Actions/@GroovyAction
                sid
                GroovyAction
            @/@shell/@mainComposite/@listComposite/@listButtonComposite/@lopenButton/@RowData
            sname
            RowData
            sexclude
            false
            swidth
            80
            sheight
            -1
            slabel
            RowData
            sdescriptors
            xworker.swt.layout.LayoutDatas/@RowData
            sid
            RowData
          @/@shell/@mainComposite/@listComposite/@listButtonComposite/@leditButton
          sname
          leditButton
          stext
          label:xworker.swt.ide.worldexplorer.swt.i18n.I18nResource/@buttons/@editButton
          stype
          SWT.PUSH
          sflat
          false
          sborder
          false
          sselected
          false
          scapture
          false
          senabled
          false
          sredraw
          true
          svisible
          true
          slabel
          leditButton
          sdescriptors
          xworker.swt.Widgets/@Button
          sid
          leditButton
            @/@shell/@mainComposite/@listComposite/@listButtonComposite/@leditButton/@Listeners
            sname
            Listeners
            slabel
            Listeners
            sdescriptors
            xworker.swt.widgets.Widget/@Listeners
            sid
            Listeners
              @/@shell/@mainComposite/@listComposite/@listButtonComposite/@leditButton/@Listeners/@leditButtonSelection
              sname
              leditButtonSelection
              stype
              Selection
              slabel
              leditButtonSelection
              sdescriptors
              xworker.swt.events.Listeners/@listeners/@Listener
              sid
              leditButtonSelection
                @/@shell/@mainComposite/@listComposite/@listButtonComposite/@leditButton/@Listeners/@leditButtonSelection/@GroovyAction
                sname
                GroovyAction
                sisSynchronized
                false
                sthrowException
                true
                suseOtherAction
                false
                svarScope
                Global
                sdisableGlobalContext
                false
                Scode
#$@text#$@
import org.xmeta.Thing;

if(registTable.getSelection().length == 0) return;

def data = registTable.getSelection()[0].getData();
def featureThing = world.getThing(data.path);
if(featureThing != null){
    explorerActions.doAction("openThing", ["thing":featureThing]);
}
#$@text#$@
                sdescriptors
                xworker.lang.actions.Actions/@GroovyAction
                sid
                GroovyAction
            @/@shell/@mainComposite/@listComposite/@listButtonComposite/@leditButton/@RowData
            sname
            RowData
            sexclude
            false
            swidth
            80
            sheight
            -1
            slabel
            RowData
            sdescriptors
            xworker.swt.layout.LayoutDatas/@RowData
            sid
            RowData
      @/@shell/@mainComposite/@init
      sname
      init
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      svarScope
      Global
      sdisableGlobalContext
      false
      Scode
#$@text#$@
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.TreeItem;

//初始化关联模板的数据
searchButtonSelection.handleEvent(null);

utilBrowser.attach(helpBrowser);
def config = world.get("_local.xworker.config.GlobalConfig");
helpBrowser.setUrl(config.webUrl + "do?sc=xworker.ide.worldexplorer.swt.http.ThingDoc/@desc&thing=xworker.lang.relations.MetaThingRelation/@templateCategory1");
#$@text#$@
      sdescriptors
      xworker.swt.Widgets/@Code
      sid
      init
      @/@shell/@mainComposite/@mainCompositeStackLayout
      sname
      mainCompositeStackLayout
      stopControl
      listComposite
      slabel
      mainCompositeStackLayout
      sdescriptors
      xworker.swt.Layouts/@StackLayout
      sid
      mainCompositeStackLayout
