^1639983276846
@
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
800
sheight
600
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
DataMonitorPanel
scapture
false
senabled
true
sredraw
true
svisible
true
sdescriptors
xworker.swt.widgets.Shell
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
  @/@shellFillLayout
  sname
  shellFillLayout
  stype
  SWT.HORIZONTAL
  sdescriptors
  xworker.swt.Layouts/@FillLayout
  sinheritDescription
  false
  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
  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
    @/@mainComposite/@resources
    sname
    resources
    sdescriptors
    xworker.swt.Widgets/@Resource
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    resources
      @/@mainComposite/@resources/@grabImage
      sname
      grabImage
      stype
      Image
      simageFile
      icons/database_gear.png
      sdescriptors
      xworker.swt.util.Resource/@Image
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      grabImage
      @/@mainComposite/@resources/@monitorImage
      sname
      monitorImage
      stype
      Image
      simageFile
      icons/monitor_go.png
      sdescriptors
      xworker.swt.util.Resource/@Image
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      monitorImage
    @/@mainComposite/@mainCompositeGridLayout
    sname
    mainCompositeGridLayout
    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
    mainCompositeGridLayout
    @/@mainComposite/@mainSashForm
    sname
    mainSashForm
    sstyle
    HORIZONTAL
    sSMOOTH
    false
    sweights
    40,60
    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
    mainSashForm
      @/@mainComposite/@mainSashForm/@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
        @/@mainComposite/@mainSashForm/@tree/@Listeners
        sname
        Listeners
        sdescriptors
        xworker.swt.widgets.Widget/@Listeners
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_mark
        false
        sid
        Listeners
          @/@mainComposite/@mainSashForm/@tree/@Listeners/@thingTreeSelection
          sname
          thingTreeSelection
          stype
          Selection
          sdescriptors
          xworker.swt.events.Listeners/@listeners/@Listener
          sth_createIndex
          false
          sth_registMyChilds
          false
          sth_mark
          false
          sid
          thingTreeSelection
            @/@mainComposite/@mainSashForm/@tree/@Listeners/@thingTreeSelection/@GroovyAction
            sname
            GroovyAction
            sisSynchronized
            false
            sthrowException
            true
            suseOtherAction
            false
            svarScope
            Local
            sdisableGlobalContext
            false
            Scode
#$@text#$@
import org.xmeta.Thing;

import xworker.lang.util.XWorkerUtils;
import xworker.lang.task.TaskManager;

def item = event.item;
def data = item.getData();
if(data instanceof Thing){
    //选择的是任务
    browser.setUrl(XWorkerUtils.getThingDescUrl(data));
    
    editButton.setEnabled(true);
    stopButton.setEnabled(true);
}else{
    //选择的是目录
    browser.setText("");
    
    editButton.setEnabled(false);
    stopButton.setEnabled(false);
}
#$@text#$@
            sinterpretationType
            Action
            screateLocalVarScope
            false
            ssaveReturn
            false
            sdescriptors
            xworker.lang.actions.Actions/@GroovyAction
            sth_createIndex
            false
            sth_registMyChilds
            false
            sth_mark
            false
            sid
            GroovyAction
      @/@mainComposite/@mainSashForm/@browser
      sname
      browser
      sMOZILLA
      false
      sWEBKIT
      false
      sjavascriptEnabled
      true
      sdescriptors
      xworker.swt.Widgets/@Browser
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      browser
      @/@mainComposite/@mainSashForm/@mainSashFormGridData
      sname
      mainSashFormGridData
      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
      mainSashFormGridData
    @/@mainComposite/@5120
    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
    5120
      @/@mainComposite/@5120/@5121
      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
      5121
      @/@mainComposite/@5120/@5122
      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
      5122
      @/@mainComposite/@5120/@5123
      sname
      editButton
      stext
      编辑
      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
      5123
        @/@mainComposite/@5120/@5123/@5124
        sname
        RowData
        sexclude
        false
        swidth
        80
        sheight
        -1
        sdescriptors
        xworker.swt.layout.LayoutDatas/@RowData
        sth_createIndex
        false
        sid
        5124
        @/@mainComposite/@5120/@5123/@5125
        sname
        Listeners
        sdescriptors
        xworker.swt.widgets.Widget/@Listeners
        sth_createIndex
        false
        sid
        5125
          @/@mainComposite/@5120/@5123/@5125/@5126
          sname
          editButtonSelection
          stype
          Selection
          sdescriptors
          xworker.swt.events.Listeners/@listeners/@Listener
          sth_createIndex
          false
          sid
          5126
      @/@mainComposite/@5120/@5127
      sname
      stopButton
      stext
      停止
      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
      5127
        @/@mainComposite/@5120/@5127/@5128
        sname
        RowData
        sexclude
        false
        swidth
        80
        sheight
        -1
        sdescriptors
        xworker.swt.layout.LayoutDatas/@RowData
        sth_createIndex
        false
        sid
        5128
        @/@mainComposite/@5120/@5127/@5129
        sname
        Listeners
        sdescriptors
        xworker.swt.widgets.Widget/@Listeners
        sth_createIndex
        false
        sid
        5129
          @/@mainComposite/@5120/@5127/@5129/@5130
          sname
          stopButtonSelection
          stype
          Selection
          sdescriptors
          xworker.swt.events.Listeners/@listeners/@Listener
          sth_createIndex
          false
          sid
          5130
      @/@mainComposite/@5120/@51271
      sname
      hellpButton
      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
      51271
        @/@mainComposite/@5120/@51271/@5128
        sname
        RowData
        sexclude
        false
        swidth
        80
        sheight
        -1
        sdescriptors
        xworker.swt.layout.LayoutDatas/@RowData
        sth_createIndex
        false
        sid
        5128
        @/@mainComposite/@5120/@51271/@5129
        sname
        Listeners
        sdescriptors
        xworker.swt.widgets.Widget/@Listeners
        sth_createIndex
        false
        sid
        5129
          @/@mainComposite/@5120/@51271/@5129/@5130
          sname
          helpButtonSelection
          stype
          Selection
          sdescriptors
          xworker.swt.events.Listeners/@listeners/@Listener
          sth_createIndex
          false
          sid
          5130
            @/@mainComposite/@5120/@51271/@5129/@5130/@OpenThingDesc
            sname
            OpenThingDesc
            sthingPath
            xworker.app.monitor.Help
            sthingPathIsOgnl
            false
            sinterpretationType
            Self
            sattributeTemplate
            false
            schildsAttributeTemplate
            false
            svarScope
            Local
            sisSynchronized
            false
            sthrowException
            true
            suseOtherAction
            false
            screateLocalVarScope
            false
            ssaveReturn
            false
            sdisableGlobalContext
            false
            sdescriptors
            xworker.ide.worldexplorer.actions.ExplorerActions/@OpenThing111
            sinheritDescription
            false
            sth_createIndex
            false
            sth_registMyChilds
            false
            sth_mark
            false
            sid
            OpenThingDesc
    @/@mainComposite/@actions
    sname
    actions
    sdescriptors
    xworker.swt.Widgets/@actions
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    actions
      @/@mainComposite/@actions/@refreshTaskThingTree
      sname
      refreshTaskThingTree
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      svarScope
      Local
      sdisableGlobalContext
      false
      Scode
#$@text#$@
import xworker.app.monitor.MonitorUtils;

import xworker.swt.util.XWorkerTreeUtil;

//先清空任务事物的节点
for(item in grabTreeItem.getItems()){
    item.dispose();
}
for(item in monitorTreeItem.getItems()){
    item.dispose();
}

//显示任务事物节点
def grabThings = XWorkerTreeUtil.getDataGrabers();
def monitorThings = XWorkerTreeUtil.getDataMonitors();

XWorkerTreeUtil.showThingsOnTreeByGroup(grabThings, grabTreeItem, actionContext);
XWorkerTreeUtil.showThingsOnTreeByGroup(monitorThings,monitorTreeItem, actionContext);

grabTreeItem.setExpanded(true);
monitorTreeItem.setExpanded(true);

editButton.setEnabled(false);
stopButton.setEnabled(false);
#$@text#$@
      sinterpretationType
      Action
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdescriptors
      xworker.lang.actions.Actions/@GroovyAction
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      refreshTaskThingTree
    @/@mainComposite/@init
    sname
    init
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    svarScope
    Local
    sdisableGlobalContext
    false
    Scode
#$@text#$@
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.TreeItem;

def grabTreeItem = new TreeItem(tree, SWT.NONE);
grabTreeItem.setText("数据抓取");
grabTreeItem.setImage(grabImage);

def monitorTreeItem = new TreeItem(tree, SWT.NONE);
monitorTreeItem.setText("数据监控");
monitorTreeItem.setImage(monitorImage);

actionContext.getScope(0).put("grabTreeItem", grabTreeItem);
actionContext.getScope(0).put("monitorTreeItem", monitorTreeItem);

actions.doAction("refreshTaskThingTree", actionContext);
#$@text#$@
    sinterpretationType
    Action
    screateLocalVarScope
    false
    ssaveReturn
    false
    sdescriptors
    xworker.swt.Widgets/@Code
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    init
