^1640682297902
@
sname
DataObjectToXmlDialog
slabel
DataObjectToXmlDialog
sdescriptors
xworker.swt.widgets.Display
  @/@shell
  sname
  shell
  stext
  res:res.w_exp:thingToXmlTitle:事物XML-仅供参考
  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/@shellGridLayout
    sname
    shellGridLayout
    snumColumns
    1
    smakeColumnsEqualWidth
    false
    smarginWidth
    5
    smarginHeight
    5
    smarginLeft
    0
    smarginTop
    0
    smarginRight
    0
    smarginBottom
    0
    shorizontalSpacing
    5
    sverticalSpacing
    5
    slabel
    shellGridLayout
    sdescriptors
    xworker.swt.Layouts/@GridLayout
    sid
    shellGridLayout
    @/@shell/@resources
    sname
    resources
    slabel
    resources
    sdescriptors
    xworker.swt.Widgets/@Resource
    sid
    resources
      @/@shell/@resources/@textFont
      sname
      textFont
      sfontData
      "Courier New|10|0|#000000"
      sdescriptors
      xworker.swt.util.Resource/@Font
      sid
      textFont
      @/@shell/@resources/@frontColor
      sname
      frontColor
      srgb
      #778899
      sdescriptors
      xworker.swt.util.Resource/@Color
      sid
      frontColor
    @/@shell/@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
      @/@shell/@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
      slabel
      outputTextGridData
      sdescriptors
      xworker.swt.Commons/@GridData
      sid
      outputTextGridData
      @/@shell/@outputText/@font
      sfont
      textFont
      sname
      font
      slabel
      font
      sdescriptors
      xworker.swt.Commons/@font
      sid
      font
      @/@shell/@outputText/@TextEditor
      sname
      TextEditor
      sdescriptors
      xworker.swt.custom.StyledText/@TextEditor
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      TextEditor
    @/@shell/@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
      @/@shell/@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
      slabel
      buttonCompositeGridData
      sdescriptors
      xworker.swt.Commons/@GridData
      sid
      buttonCompositeGridData
      @/@shell/@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
      slabel
      buttonCompositeRowLayout
      sdescriptors
      xworker.swt.Layouts/@RowLayout
      sid
      buttonCompositeRowLayout
      @/@shell/@buttonComposite/@toHtmlButton
      sname
      toHtmlButton
      stext
      res:res.w_exp:convertTohtmlButton:转换到HTML（&H）
      stype
      SWT.PUSH
      sflat
      false
      sborder
      false
      sselected
      false
      scapture
      false
      senabled
      true
      sredraw
      true
      svisible
      true
      slabel
      toHtmlButton
      sdescriptors
      xworker.swt.Widgets/@Button
      sid
      toHtmlButton
        @/@shell/@buttonComposite/@toHtmlButton/@Listeners
        sname
        Listeners
        slabel
        Listeners
        sdescriptors
        xworker.swt.widgets.Widget/@Listeners
        sid
        Listeners
          @/@shell/@buttonComposite/@toHtmlButton/@Listeners/@toHtmlButtonSelection
          sname
          toHtmlButtonSelection
          stype
          Selection
          slabel
          toHtmlButtonSelection
          sdescriptors
          xworker.swt.events.Listeners/@listeners/@Listener
          sid
          toHtmlButtonSelection
            @/@shell/@buttonComposite/@toHtmlButton/@Listeners/@toHtmlButtonSelection/@GroovyAction
            sname
            GroovyAction
            sisSynchronized
            false
            sthrowException
            true
            suseOtherAction
            false
            svarScope
            Global
            sdisableGlobalContext
            false
            Scode
#$@text#$@
import xworker.lang.util.UtilTemplate;

def str = outputText.getText().trim();

str = UtilTemplate.process(["str":str], "xworker/ide/worldExplorer/swt/dialogs/StringToHtml.ftl", "freemarker");

outputText.setText(str);
#$@text#$@
            sinterpretationType
            Action
            ssaveReturn
            false
            sdescriptors
            xworker.lang.actions.Actions/@GroovyAction
            sid
            GroovyAction
      @/@shell/@buttonComposite/@closeButton
      sname
      closeButton
      stext
      res:res.w_exp:closeButton:关闭（&C）
      stype
      SWT.PUSH
      sflat
      false
      sborder
      false
      sselected
      false
      scapture
      false
      senabled
      true
      sredraw
      true
      svisible
      true
      slabel
      closeButton
      sdescriptors
      xworker.swt.Widgets/@Button
      sid
      closeButton
        @/@shell/@buttonComposite/@closeButton/@listeners
        sname
        listeners
        slabel
        listeners
        sdescriptors
        xworker.swt.events.Listeners/@listeners
        sid
        listeners
          @/@shell/@buttonComposite/@closeButton/@listeners/@closeButtonSelection
          sname
          closeButtonSelection
          stype
          Selection
          slabel
          closeButtonSelection
          sdescriptors
          xworker.swt.events.Listeners/@listeners/@Listener
          sid
          closeButtonSelection
            @/@shell/@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
    @/@shell/@Code
    sname
    Code
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    svarScope
    Global
    sdisableGlobalContext
    false
    Scode
#$@text#$@
import net.sf.colorer.ParserFactory;
import net.sf.colorer.swt.ColorManager;
import net.sf.colorer.swt.TextColorer;
import xworker.swt.util.SwtUtils;
import xworker.swt.xworker.Colorer;

if(!SwtUtils.isRWT()){
    Colorer.attach(outputText, "xml", "xml");
}
/*
//设置着色
ParserFactory pf = new ParserFactory(world.getPath() + "/colorer/catalog.xml" );
textColorer = new TextColorer(pf, new ColorManager());
textColorer.attach(outputText);
textColorer.setCross(true, true);
textColorer.setRegionMapper("default", true);
textColorer.chooseFileType("xml.xml");
*/
#$@text#$@
    sinterpretationType
    Action
    screateLocalVarScope
    false
    ssaveReturn
    false
    sdebugLog
    false
    sdescriptors
    xworker.swt.Widgets/@Code
    sid
    Code
    @/@shell/@scripts
    sname
    scripts
    slabel
    scripts
    sdescriptors
    xworker.swt.Widgets/@actions
    sid
    scripts
      @/@shell/@scripts/@setDataObject
      sname
      setThing
      sisSynchronized
      false
      sthrowException
      false
      suseOtherAction
      false
      svarScope
      Global
      sdisableGlobalContext
      false
      Scode
#$@text#$@
import xworker.lang.util.UtilTemplate;
import org.xmeta.codes.XmlCoder;

def xml = XmlCoder.encodeToString(thing);
outputText.setText(new String(xml.getBytes(), "utf-8"));

/*
def output = UtilTemplate.process(["thing":thing], "xworker.lang/ToXml.ftl", "freemarker");
if(output != null)
    outputText.setText(output);
*/
#$@text#$@
      sinterpretationType
      Action
      sdescriptors
      xworker.groovy.GroovyAction
      sid
      setDataObject
      @/@shell/@scripts/@setXml
      sname
      setXml
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      svarScope
      Local
      sdisableGlobalContext
      false
      scode
      outputText.setText(new String(xml.getBytes(), "utf-8"));
      sinterpretationType
      Action
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdescriptors
      xworker.lang.actions.Actions/@GroovyAction
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      setXml
