^1640824409354
@
sname
SecurityHandlerViewer
stext
安全处理器浏览器
sNO_TRIM
false
sCLOSE
true
sTITLE
true
sMIN
true
sMAX
true
sBORDER
false
sRESIZE
false
sON_TOP
false
sTOOL
false
sNO_FOCUS
false
swidth
649
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
slabel
SecurityHandlerViewer
scapture
false
senabled
true
sredraw
true
svisible
true
sdescriptors
xworker.swt.widgets.Shell
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
  @/@shellFillLayout
  sname
  shellFillLayout
  stype
  SWT.HORIZONTAL
  sdescriptors
  xworker.swt.Layouts/@FillLayout
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_mark
  false
  sid
  shellFillLayout
  @/@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
  slabel
  安全处理器
  scapture
  false
  senabled
  true
  sredraw
  true
  svisible
  true
  sdescriptors
  xworker.swt.Widgets/@Composite
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_mark
  false
  sid
  mainComposite
    @/@mainComposite/@resources
    sname
    resources
    sdescriptors
    xworker.swt.Widgets/@Resource
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    resources
      @/@mainComposite/@resources/@urlImage
      sname
      urlImage
      stype
      Image
      simageFile
      icons/world.png
      sdescriptors
      xworker.swt.util.Resource/@Image
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      urlImage
      @/@mainComposite/@resources/@acImage
      sname
      acImage
      stype
      Image
      simageFile
      icons/world_go.png
      sdescriptors
      xworker.swt.util.Resource/@Image
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      acImage
      @/@mainComposite/@resources/@appImage
      sname
      appImage
      stype
      Image
      simageFile
      icons/application.png
      sdescriptors
      xworker.swt.util.Resource/@Image
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      appImage
    @/@mainComposite/@mainCompositeFillLayout
    sname
    mainCompositeFillLayout
    stype
    SWT.HORIZONTAL
    sdescriptors
    xworker.swt.Layouts/@FillLayout
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    mainCompositeFillLayout
    @/@mainComposite/@mainSashForm
    sname
    mainSashForm
    sstyle
    HORIZONTAL
    sSMOOTH
    false
    sweights
    35,65
    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
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    mainSashForm
      @/@mainComposite/@mainSashForm/@treeComposite
      sname
      treeComposite
      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
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      treeComposite
        @/@mainComposite/@mainSashForm/@treeComposite/@treeCompositeGridLayout
        sname
        treeCompositeGridLayout
        smakeColumnsEqualWidth
        false
        smarginWidth
        0
        smarginHeight
        0
        smarginLeft
        0
        smarginTop
        0
        smarginRight
        0
        smarginBottom
        0
        shorizontalSpacing
        0
        sverticalSpacing
        0
        sdescriptors
        xworker.swt.Layouts/@GridLayout
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_mark
        false
        sid
        treeCompositeGridLayout
        @/@mainComposite/@mainSashForm/@treeComposite/@handlerLabel
        sname
        handlerLabel
        sBORDER
        false
        stype
        HORIZONTAL
        sshadow
        SHADOW_OUT
        salignment
        LEFT
        stext
        处理器：
        scapture
        false
        senabled
        true
        sredraw
        true
        svisible
        true
        sdescriptors
        xworker.swt.Widgets/@Label
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_mark
        false
        sid
        handlerLabel
        @/@mainComposite/@mainSashForm/@treeComposite/@handlerTree
        sname
        handlerTree
        sselectStyle
        SINGLE
        sV_SCROLL
        true
        sH_SCROLL
        true
        sCHECK
        false
        sFULL_SELECTION
        false
        sHIDE_SELECTION
        false
        sBORDER
        false
        slineVisible
        false
        smultipleColumns
        false
        sheaderVisible
        false
        ssortIndicator
        false
        smoveableColumns
        false
        sheadImages
        false
        ssubImages
        false
        scheckSelection
        false
        scapture
        false
        senabled
        true
        sredraw
        true
        svisible
        true
        sdescriptors
        xworker.swt.Widgets/@Tree
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_mark
        false
        sid
        handlerTree
          @/@mainComposite/@mainSashForm/@treeComposite/@handlerTree/@handlerTreeGridData
          sname
          handlerTreeGridData
          sstyle
          FILL_BOTH
          shorizontalIndent
          0
          swidth
          -1
          sheight
          -1
          shorizontalAlignment
          BEGINNING
          sverticalAlignment
          CENTER
          shorizontalSpan
          1
          sverticalSpan
          1
          sgrabExcessHorizontalSpace
          false
          sgrabExcessVerticalSpace
          false
          sdescriptors
          xworker.swt.layout.LayoutDatas/@GridData
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_mark
          false
          sid
          handlerTreeGridData
        @/@mainComposite/@mainSashForm/@treeComposite/@4451
        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
        4451
          @/@mainComposite/@mainSashForm/@treeComposite/@4451/@4452
          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
          4452
          @/@mainComposite/@mainSashForm/@treeComposite/@4451/@4453
          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
          4453
          @/@mainComposite/@mainSashForm/@treeComposite/@4451/@4454
          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
          4454
            @/@mainComposite/@mainSashForm/@treeComposite/@4451/@4454/@4455
            sname
            RowData
            sexclude
            false
            swidth
            80
            sheight
            -1
            sdescriptors
            xworker.swt.layout.LayoutDatas/@RowData
            sth_createIndex
            false
            sid
            4455
            @/@mainComposite/@mainSashForm/@treeComposite/@4451/@4454/@4456
            sname
            Listeners
            sdescriptors
            xworker.swt.widgets.Widget/@Listeners
            sth_createIndex
            false
            sid
            4456
              @/@mainComposite/@mainSashForm/@treeComposite/@4451/@4454/@4456/@4457
              sname
              refreshButtonSelection
              stype
              Selection
              sdescriptors
              xworker.swt.events.Listeners/@listeners/@Listener
              sth_createIndex
              false
              sid
              4457
                @/@mainComposite/@mainSashForm/@treeComposite/@4451/@4454/@4456/@4457/@refresh
                sname
                refresh
                sisSynchronized
                false
                sthrowException
                true
                suseOtherAction
                false
                svarScope
                Local
                sdisableGlobalContext
                false
                Scode
#$@text#$@
import xworker.lang.security.SecurityManager;
import xworker.lang.util.XWorkerUtils;
import xworker.swt.util.XWorkerTreeUtil;

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

//先清空
for(item in handlerTree.getItems()){
    item.dispose();
}

def types = ["URL", "HTTPACTION", "APP"];
for(int i=0; i<types.size(); i++){
    def type = types.get(i);
    def item = new TreeItem(handlerTree, SWT.NONE);
    item.setText(type);
    item.setData("URL");
    if(i == 0){
        item.setImage(urlImage);
    }else if(i == 1){
        item.setImage(acImage);
    }else if(i == 2){
        item.setImage(appImage);
    }
    
    def handlers = 	SecurityManager.getHandlers((byte) (i +1));
    def things = [];
    for(handler in handlers){
        things.add(handler.getThing());
    }
    
    XWorkerTreeUtil.showThingsOnTreeByGroup(things, item, actionContext);
}
#$@text#$@
                sinterpretationType
                Action
                screateLocalVarScope
                false
                ssaveReturn
                false
                sdescriptors
                xworker.lang.actions.Actions/@GroovyAction
                sth_createIndex
                false
                sth_registMyChilds
                false
                sth_mark
                false
                sid
                refresh
      @/@mainComposite/@mainSashForm/@descComposite
      sname
      descComposite
      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
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      descComposite
        @/@mainComposite/@mainSashForm/@descComposite/@descCompositeGridLayout
        sname
        descCompositeGridLayout
        smakeColumnsEqualWidth
        false
        smarginWidth
        0
        smarginHeight
        0
        smarginLeft
        0
        smarginTop
        0
        smarginRight
        0
        smarginBottom
        0
        shorizontalSpacing
        0
        sverticalSpacing
        0
        sdescriptors
        xworker.swt.Layouts/@GridLayout
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_mark
        false
        sid
        descCompositeGridLayout
        @/@mainComposite/@mainSashForm/@descComposite/@descLabel
        sname
        descLabel
        sBORDER
        false
        stype
        HORIZONTAL
        sshadow
        SHADOW_OUT
        salignment
        LEFT
        stext
        说明：
        scapture
        false
        senabled
        true
        sredraw
        true
        svisible
        true
        sdescriptors
        xworker.swt.Widgets/@Label
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_mark
        false
        sid
        descLabel
        @/@mainComposite/@mainSashForm/@descComposite/@descBrowser
        sname
        descBrowser
        sMOZILLA
        false
        sWEBKIT
        false
        sdescriptors
        xworker.swt.Widgets/@Browser
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_mark
        false
        sid
        descBrowser
          @/@mainComposite/@mainSashForm/@descComposite/@descBrowser/@UtilBrowser
          sname
          UtilBrowser
          sdescriptors
          xworker.swt.browser.Browser/@UtilBrowser
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_mark
          false
          sid
          UtilBrowser
          @/@mainComposite/@mainSashForm/@descComposite/@descBrowser/@descBrowserGridData
          sname
          descBrowserGridData
          sstyle
          FILL_BOTH
          shorizontalIndent
          0
          swidth
          -1
          sheight
          -1
          shorizontalAlignment
          BEGINNING
          sverticalAlignment
          CENTER
          shorizontalSpan
          1
          sverticalSpan
          1
          sgrabExcessHorizontalSpace
          false
          sgrabExcessVerticalSpace
          false
          sdescriptors
          xworker.swt.layout.LayoutDatas/@GridData
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_mark
          false
          sid
          descBrowserGridData
    @/@mainComposite/@Code
    sname
    Code
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    true
    sotherActionPath
    xworker.lang.security.SecurityHandlerViewer/@mainComposite/@mainSashForm/@treeComposite/@4451/@4454/@4456/@4457/@refresh
    svarScope
    Local
    sdisableGlobalContext
    false
    sinterpretationType
    Action
    screateLocalVarScope
    false
    ssaveReturn
    false
    sdescriptors
    xworker.swt.Widgets/@Code
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    Code
