^1608346692056
@
sname
shell
stext
CodeAssist
sNO_TRIM
false
sCLOSE
true
sTITLE
false
sMIN
false
sMAX
false
sBORDER
true
sRESIZE
true
sON_TOP
true
sTOOL
true
sNO_FOCUS
false
swidth
400
sheight
450
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
CodeAssist
scapture
false
senabled
true
sredraw
true
svisible
true
sdescriptors
xworker.swt.widgets.Shell
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
  @/@resources
  sname
  resources
  sdescriptors
  xworker.swt.Widgets/@Resource
  sinheritDescription
  false
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  resources
    @/@resources/@normalImage
    sname
    normalImage
    stype
    Image
    simageFile
    icons/text_align_justify.png
    sdescriptors
    xworker.swt.util.Resource/@Image
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    normalImage
    @/@resources/@fieldImage
    sname
    fieldImage
    stype
    Image
    simageFile
    icons/debug/skip_brkp.gif
    sdescriptors
    xworker.swt.util.Resource/@Image
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    fieldImage
    @/@resources/@methodImage
    sname
    methodImage
    stype
    Image
    simageFile
    icons/debug/public_co.gif
    sdescriptors
    xworker.swt.util.Resource/@Image
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    methodImage
    @/@resources/@tableImage
    sname
    tableImage
    stype
    Image
    simageFile
    icons/table.png
    sdescriptors
    xworker.swt.util.Resource/@Image
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_noThingRegistViewer
    false
    sth_fileMonitor
    false
    sth_mark
    false
    sth_registQueryOnlySelf
    false
    sid
    tableImage
    @/@resources/@columnImage
    sname
    columnImage
    stype
    Image
    simageFile
    icons/text_list_bullets.png
    sdescriptors
    xworker.swt.util.Resource/@Image
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_noThingRegistViewer
    false
    sth_fileMonitor
    false
    sth_mark
    false
    sth_registQueryOnlySelf
    false
    sid
    columnImage
  @/@shellGridLayout
  sname
  shellGridLayout
  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_registDisabled
  false
  sth_mark
  false
  sid
  shellGridLayout
  @/@text
  sname
  filterText
  sstyle
  SINGLE
  sH_SCROLL
  false
  sV_SCROLL
  false
  sWRAP
  false
  sREAD_ONLY
  false
  sPASSWORD
  false
  sSEARCH
  false
  sCANCEL
  false
  sBORDER
  true
  salign
  LEFT
  scapture
  false
  senabled
  true
  sredraw
  true
  svisible
  true
  sdescriptors
  xworker.swt.Widgets/@Text
  sinheritDescription
  false
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  text
    @/@text/@textGridData
    sname
    textGridData
    sstyle
    FILL_HORIZONTAL
    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_registDisabled
    false
    sth_mark
    false
    sid
    textGridData
    @/@text/@Listeners
    sname
    Listeners
    sdescriptors
    xworker.swt.widgets.Widget/@Listeners
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    Listeners
      @/@text/@Listeners/@textModify
      sname
      textModify
      stype
      Modify
      sdescriptors
      xworker.swt.events.Listeners/@listeners/@Listener
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      textModify
        @/@text/@Listeners/@textModify/@setDelayAction
        sname
        setDelayAction
        sthrowException
        true
        suseOtherAction
        false
        suseOuterJava
        true
        suseInnerJava
        false
        souterClassName
        xworker.swt.xworker.attributeEditor.CodeAssist
        smethodName
        textModify
        sdisableGlobalContext
        false
        Scode
#$@text#$@
def text = event.widget;
def assistor = assistor;
def contents = contents;

assistor.setDelayAction({
    assistor.showContents(text.getText(), contents);
} as Runnable);
#$@text#$@
        sattributeTemplate
        false
        sinterpretationType
        Action
        svarScope
        Global
        screateLocalVarScope
        false
        ssaveReturn
        false
        sdebugLog
        false
        sdescriptors
        xworker.lang.actions.JavaAction
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_mark
        false
        sid
        setDelayAction
      @/@text/@Listeners/@textDefaultSelection
      sname
      textDefaultSelection
      stype
      DefaultSelection
      sdescriptors
      xworker.swt.events.Listeners/@listeners/@Listener
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      textDefaultSelection
        @/@text/@Listeners/@textDefaultSelection/@GroovyAction
        sname
        textDefaultSelection
        sthrowException
        true
        suseOtherAction
        false
        suseOuterJava
        true
        suseInnerJava
        false
        souterClassName
        xworker.swt.xworker.attributeEditor.CodeAssist
        smethodName
        textDefaultSelection
        sdisableGlobalContext
        false
        Scode
#$@text#$@
def items = table.getSelection();
def value = ""
if(items == null || items.length == 0){
    value = filterText.getText().trim();
}else{
    value = items[0].getData().value.trim();
}

def selection = text.getSelection();
def offset = text.getCaretOffset() - (selection.y - selection.x);
text.insert(value);
if(text.getCaretOffset() == offset){
    text.setCaretOffset(offset + value.length())
}

assistor.checkInput(text, offset, offset + value.length());

shell.setVisible(false);
text.display.asyncExec({
    text.setFocus();
});
#$@text#$@
        sattributeTemplate
        false
        sinterpretationType
        Action
        svarScope
        Global
        screateLocalVarScope
        false
        ssaveReturn
        false
        sdebugLog
        false
        sdescriptors
        xworker.lang.actions.JavaAction
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_mark
        false
        sid
        GroovyAction
      @/@text/@Listeners/@Listener
      sname
      textKeyDown
      stype
      KeyDown
      sdescriptors
      xworker.swt.events.Listeners/@listeners/@Listener
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      Listener
        @/@text/@Listeners/@Listener/@GroovyAction
        sname
        textKeyDown
        sthrowException
        true
        suseOtherAction
        false
        suseOuterJava
        true
        suseInnerJava
        false
        souterClassName
        xworker.swt.xworker.attributeEditor.CodeAssist
        smethodName
        textKeyDown
        sdisableGlobalContext
        false
        Scode
#$@text#$@
import org.eclipse.swt.SWT;

def index = table.getSelectionIndex();

if(event.keyCode == 16777218){
    if(index >= 0){
        index = index + 1;
    }else{
        index = 0;
    }
    
    if(index > table.getItems().length - 1){
        index = 0;
    }
}else if(event.keyCode == 16777217){
    if(index > 0){
        index = index - 1;
    }else{
        index = table.getItems().length - 1;
    }    
}

if(table.getItems().length > 0){
    table.setSelection(index);
}
#$@text#$@
        sattributeTemplate
        false
        sinterpretationType
        Action
        svarScope
        Global
        screateLocalVarScope
        false
        ssaveReturn
        false
        sdebugLog
        false
        sdescriptors
        xworker.lang.actions.JavaAction
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_mark
        false
        sid
        GroovyAction
  @/@table
  sname
  table
  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
  sVIRTUAL
  true
  scapture
  false
  senabled
  true
  sredraw
  true
  svisible
  true
  sdescriptors
  xworker.swt.Widgets/@Table
  sinheritDescription
  false
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  table
    @/@table/@listItem
    sname
    listItem
    swidth
    385
    sdescriptors
    xworker.swt.widgets.Table/@TableColumn
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    listItem
    @/@table/@tableGridData
    sname
    tableGridData
    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_registDisabled
    false
    sth_mark
    false
    sid
    tableGridData
    @/@table/@Listeners
    sname
    Listeners
    sdescriptors
    xworker.swt.widgets.Widget/@Listeners
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    Listeners
      @/@table/@Listeners/@tableSelection
      sname
      tableSelection
      stype
      DefaultSelection
      sdescriptors
      xworker.swt.events.Listeners/@listeners/@Listener
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      tableSelection
        @/@table/@Listeners/@tableSelection/@GroovyAction
        sname
        tableSelection
        sthrowException
        true
        suseOtherAction
        false
        suseOuterJava
        true
        suseInnerJava
        false
        souterClassName
        xworker.swt.xworker.attributeEditor.CodeAssist
        smethodName
        tableSelection
        sdisableGlobalContext
        false
        Scode
#$@text#$@
def value = event.item.getData().value;
def offset = text.getCaretOffset();
text.insert(value);

if(text.getCaretOffset() == offset){
    text.setCaretOffset(offset + value.length())
}

shell.setVisible(false);
text.display.asyncExec({
    text.setFocus();
});
#$@text#$@
        sattributeTemplate
        false
        sinterpretationType
        Action
        svarScope
        Global
        screateLocalVarScope
        false
        ssaveReturn
        false
        sdebugLog
        false
        sdescriptors
        xworker.lang.actions.JavaAction
        sinheritDescription
        false
        sth_createIndex
        false
        sth_registMyChilds
        false
        sth_registDisabled
        false
        sth_mark
        false
        sid
        GroovyAction
  @/@ShellListener
  sname
  ShellListener
  sdescriptors
  xworker.swt.widgets.Shell/@ShellListener
  sinheritDescription
  false
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  ShellListener
    @/@ShellListener/@actions
    sname
    actions
    sdescriptors
    xworker.swt.events.ShellListener/@actions1
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_mark
    false
    sid
    actions
      @/@ShellListener/@actions/@shellClosed
      sname
      shellClosed
      sthrowException
      true
      suseOtherAction
      false
      suseOuterJava
      true
      suseInnerJava
      false
      souterClassName
      xworker.swt.xworker.attributeEditor.CodeAssist
      smethodName
      shellClosed
      sdisableGlobalContext
      false
      Scode
#$@text#$@
event.widget.setVisible(false);
event.doit = false;

text.setFocus();
#$@text#$@
      sattributeTemplate
      false
      sinterpretationType
      Action
      svarScope
      Global
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdebugLog
      false
      sdescriptors
      xworker.lang.actions.JavaAction
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_registDisabled
      false
      sth_mark
      false
      sid
      shellClosed
