^1639983259654
@
sname
shell
stext
从JSON中导入结构
sNO_TRIM
false
sCLOSE
true
sTITLE
true
sMIN
false
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
slabel
MetaThingImportJson
scapture
false
senabled
true
sredraw
true
svisible
true
sdescriptors
xworker.swt.widgets.Shell,xworker.swt.widgets.Display/@Shell
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
  @/@shellGridLayout
  sname
  shellGridLayout
  snumColumns
  1
  smakeColumnsEqualWidth
  false
  smarginWidth
  5
  smarginHeight
  5
  smarginLeft
  0
  smarginTop
  0
  smarginRight
  0
  smarginBottom
  0
  shorizontalSpacing
  5
  sverticalSpacing
  5
  sdescriptors
  xworker.swt.Layouts/@GridLayout
  sid
  shellGridLayout
  @/@resources
  sname
  resources
  sdescriptors
  xworker.swt.Widgets/@Resource
  sid
  resources
    @/@resources/@textFont
    sname
    textFont
    sdescriptors
    xworker.swt.util.Resource/@Font
    sid
    textFont
    @/@resources/@frontColor
    sname
    frontColor
    srgb
    #778899
    sdescriptors
    xworker.swt.util.Resource/@Color
    sid
    frontColor
  @/@outputText
  sname
  outputText
  sstyle
  MULTI
  sFULL_SELECTION
  false
  sREAD_ONLY
  false
  sWRAP
  false
  sH_SCROLL
  true
  sV_SCROLL
  true
  sBORDER
  true
  salign
  LEFT
  sdescriptors
  ,xworker.swt.custom.StyledText
  sid
  outputText
    @/@outputText/@outputTextGridData
    sname
    outputTextGridData
    sstyle
    FILL_BOTH
    shorizontalIndent
    0
    swidth
    -1
    sheight
    -1
    shorizontalAlignment
    BEGINNING
    sverticalAlignment
    CENTER
    shorizontalSpan
    1
    sverticalSpan
    1
    sgrabExcessHorizontalSpace
    false
    sgrabExcessVerticalSpace
    false
    sdescriptors
    xworker.swt.Commons/@GridData
    sid
    outputTextGridData
    @/@outputText/@font
    sfont
    textFont
    sname
    font
    sdescriptors
    xworker.swt.Commons/@font
    sid
    font
    @/@outputText/@Colorer
    sname
    Colorer
    scodeName
    js
    scodeType
    js
    sdescriptors
    xworker.swt.custom.StyledText/@Colorer
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    Colorer
  @/@buttonComposite
  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
  buttonComposite
    @/@buttonComposite/@buttonCompositeGridData
    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.Commons/@GridData
    sid
    buttonCompositeGridData
    @/@buttonComposite/@buttonCompositeRowLayout
    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
    buttonCompositeRowLayout
    @/@buttonComposite/@okButton
    sname
    okButton
    stext
    导入（&O）
    stype
    SWT.PUSH
    sflat
    false
    sborder
    false
    sselected
    false
    scapture
    false
    senabled
    true
    sredraw
    true
    svisible
    true
    sdescriptors
    xworker.swt.Widgets/@Button
    sid
    okButton
      @/@buttonComposite/@okButton/@listeners
      sname
      listeners
      sdescriptors
      xworker.swt.events.Listeners/@listeners
      sid
      listeners
        @/@buttonComposite/@okButton/@listeners/@okButtonSelection
        sname
        okButtonSelection
        stype
        Selection
        sdescriptors
        xworker.swt.events.Listeners/@listeners/@Listener
        sid
        okButtonSelection
          @/@buttonComposite/@okButton/@listeners/@okButtonSelection/@GroovyAction
          sname
          GroovyAction
          sisSynchronized
          false
          sthrowException
          false
          suseOtherAction
          false
          svarScope
          Global
          sdisableGlobalContext
          false
          Scode
#$@text#$@
import xworker.lang.util.ThingUtils;

String xml = outputText.getText().trim();
if(xml != ""){
    def thing = ThingUtils.parseJSONStructure(xml);
    currentThing.paste(thing);
    currentThing.save();
    refreshMenuSelection.handleEvent(null);
}

shell.dispose();
#$@text#$@
          sinterpretationType
          Action
          screateLocalVarScope
          false
          ssaveReturn
          false
          sdebugLog
          false
          sdescriptors
          xworker.lang.actions.Actions/@GroovyAction
          sid
          GroovyAction
    @/@buttonComposite/@closeButton
    sname
    closeButton
    stext
    取消（&C）
    stype
    SWT.PUSH
    sflat
    false
    sborder
    false
    sselected
    false
    scapture
    false
    senabled
    true
    sredraw
    true
    svisible
    true
    sdescriptors
    xworker.swt.Widgets/@Button
    sid
    closeButton
      @/@buttonComposite/@closeButton/@listeners
      sname
      listeners
      sdescriptors
      xworker.swt.events.Listeners/@listeners
      sid
      listeners
        @/@buttonComposite/@closeButton/@listeners/@closeButtonSelection
        sname
        closeButtonSelection
        stype
        Selection
        sdescriptors
        xworker.swt.events.Listeners/@listeners/@Listener
        sid
        closeButtonSelection
          @/@buttonComposite/@closeButton/@listeners/@closeButtonSelection/@GroovyAction
          sname
          GroovyAction
          sisSynchronized
          false
          sthrowException
          true
          suseOtherAction
          false
          svarScope
          Global
          scode
          shell.dispose();
          sdescriptors
          xworker.lang.actions.Actions/@GroovyAction
          sid
          GroovyAction
