^1370751253411
@xworker.swt.ide.worldexplorer.swt.dialogs.CodeViewer
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
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
CodeViewer
scapture
false
senabled
true
sredraw
true
svisible
true
sxw_cl_global
false
sid
shell
sdescriptors
xworker.swt.widgets.Shell,xworker.swt.widgets.Display/@Shell
sth_createIndex
false
sth_mark
false
@xworker.swt.ide.worldexplorer.swt.dialogs.CodeViewer/@shellGridLayout
sname
shellGridLayout
snumColumns
1
smakeColumnsEqualWidth
false
smarginWidth
5
smarginHeight
5
smarginLeft
0
smarginTop
0
smarginRight
0
smarginBottom
0
shorizontalSpacing
5
sverticalSpacing
5
sid
shellGridLayout
sdescriptors
xworker.swt.Layouts/@GridLayout
@xworker.swt.ide.worldexplorer.swt.dialogs.CodeViewer/@resources
sname
resources
sid
resources
sdescriptors
xworker.swt.Widgets/@Resource
@xworker.swt.ide.worldexplorer.swt.dialogs.CodeViewer/@resources/@textFont
sname
textFont
sid
textFont
sdescriptors
xworker.swt.util.Resource/@Font
@xworker.swt.ide.worldexplorer.swt.dialogs.CodeViewer/@resources/@frontColor
sname
frontColor
srgb
#778899
sid
frontColor
sdescriptors
xworker.swt.util.Resource/@Color
@xworker.swt.ide.worldexplorer.swt.dialogs.CodeViewer/@outputText
sname
outputText
sstyle
MULTI
sFULL_SELECTION
false
sREAD_ONLY
false
sWRAP
false
sH_SCROLL
true
sV_SCROLL
true
sBORDER
true
salign
LEFT
sid
outputText
sdescriptors
,xworker.swt.custom.StyledText
@xworker.swt.ide.worldexplorer.swt.dialogs.CodeViewer/@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
sid
outputTextGridData
sdescriptors
xworker.swt.Commons/@GridData
@xworker.swt.ide.worldexplorer.swt.dialogs.CodeViewer/@outputText/@font
sfont
textFont
sname
font
sid
font
sdescriptors
xworker.swt.Commons/@font
@xworker.swt.ide.worldexplorer.swt.dialogs.CodeViewer/@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
sid
buttonComposite
sdescriptors
xworker.swt.Widgets/@Composite
@xworker.swt.ide.worldexplorer.swt.dialogs.CodeViewer/@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
sid
buttonCompositeGridData
sdescriptors
xworker.swt.Commons/@GridData
@xworker.swt.ide.worldexplorer.swt.dialogs.CodeViewer/@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
sid
buttonCompositeRowLayout
sdescriptors
xworker.swt.Layouts/@RowLayout
@xworker.swt.ide.worldexplorer.swt.dialogs.CodeViewer/@buttonComposite/@85911
sname
copyButton
stext
拷贝
stype
SWT.PUSH
sflat
false
sborder
false
sselected
false
scapture
false
senabled
true
sredraw
true
svisible
true
sxw_cl_global
false
sdescriptors
xworker.swt.Widgets/@Button
sth_createIndex
false
@xworker.swt.ide.worldexplorer.swt.dialogs.CodeViewer/@buttonComposite/@85911/@8592
sname
RowData
sexclude
false
swidth
80
sheight
-1
sdescriptors
xworker.swt.layout.LayoutDatas/@RowData
sth_createIndex
false
@xworker.swt.ide.worldexplorer.swt.dialogs.CodeViewer/@buttonComposite/@85911/@8593
sname
Listeners
sdescriptors
xworker.swt.widgets.Widget/@Listeners
sth_createIndex
false
@xworker.swt.ide.worldexplorer.swt.dialogs.CodeViewer/@buttonComposite/@85911/@8593/@8594
sname
cancelButtonSelection
stype
Selection
sdescriptors
xworker.swt.events.Listeners/@listeners/@Listener
sth_createIndex
false
@xworker.swt.ide.worldexplorer.swt.dialogs.CodeViewer/@buttonComposite/@85911/@8593/@8594/@GroovyAction
sname
GroovyAction
sisSynchronized
false
sthrowException
true
suseOtherAction
false
svarScope
Local
sdisableGlobalContext
false
Scode
#$@text#$@
import org.eclipse.swt.SWT;
import org.eclipse.swt.dnd.Clipboard;
import org.eclipse.swt.dnd.RTFTransfer;
import org.eclipse.swt.dnd.TextTransfer;
import org.eclipse.swt.dnd.Transfer;

Clipboard clipboard = new Clipboard(shell.getDisplay());
String plainText = outputText.getText();
TextTransfer textTransfer = TextTransfer.getInstance();
clipboard.setContents([plainText] as String[], [textTransfer] as Transfer[]);
clipboard.dispose();
#$@text#$@
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Action
screateLocalVarScope
false
ssaveReturn
false
sdescriptors
xworker.lang.actions.Actions/@GroovyAction
sth_createIndex
false
@xworker.swt.ide.worldexplorer.swt.dialogs.CodeViewer/@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
sxw_cl_global
false
sid
closeButton
sdescriptors
xworker.swt.Widgets/@Button
@xworker.swt.ide.worldexplorer.swt.dialogs.CodeViewer/@buttonComposite/@closeButton/@listeners
sname
listeners
sid
listeners
sdescriptors
xworker.swt.events.Listeners/@listeners
@xworker.swt.ide.worldexplorer.swt.dialogs.CodeViewer/@buttonComposite/@closeButton/@listeners/@closeButtonSelection
sname
closeButtonSelection
stype
Selection
sid
closeButtonSelection
sdescriptors
xworker.swt.events.Listeners/@listeners/@Listener
@xworker.swt.ide.worldexplorer.swt.dialogs.CodeViewer/@buttonComposite/@closeButton/@listeners/@closeButtonSelection/@GroovyAction
sname
GroovyAction
sisSynchronized
false
sthrowException
true
suseOtherAction
false
svarScope
Global
scode
shell.dispose();
sdescriptors
xworker.lang.actions.Actions/@GroovyAction
@xworker.swt.ide.worldexplorer.swt.dialogs.CodeViewer/@actions
sname
actions
sdescriptors
xworker.swt.Widgets/@actions
sth_createIndex
false
sth_mark
false
@xworker.swt.ide.worldexplorer.swt.dialogs.CodeViewer/@actions/@setCode
sname
setCode
sisSynchronized
false
sthrowException
true
suseOtherAction
false
svarScope
Local
sdisableGlobalContext
false
Scode
#$@text#$@
import net.sf.colorer.ParserFactory;
import net.sf.colorer.swt.ColorManager;
import net.sf.colorer.swt.TextColorer;

//设置着色
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(actionContext.get("codeType"));

if(actionContext.get("code") != null){
    outputText.setText(code);
}
#$@text#$@
sinitBreakPoint
false
ssuccessBreakPoint
false
sexceptionBreakPoint
false
seditBreakPoint
false
sinterpretationType
Action
screateLocalVarScope
false
ssaveReturn
false
sdescriptors
xworker.lang.actions.Actions/@GroovyAction
sth_createIndex
false
sth_mark
false
@xworker.swt.ide.worldexplorer.swt.dialogs.CodeViewer/@actions/@setCode/@ins
sisValidate
false
sname
ins
sdescriptors
xworker.lang.actions.Inout/@ins
sth_createIndex
false
sth_mark
false
@xworker.swt.ide.worldexplorer.swt.dialogs.CodeViewer/@actions/@setCode/@ins/@codeType
sname
codeType
stypeCheck
false
soptional
true
scheck
false
scheckLevel
exception
sdescriptors
xworker.lang.actions.Inout/@ins/@param
sth_createIndex
false
sth_mark
false
@xworker.swt.ide.worldexplorer.swt.dialogs.CodeViewer/@actions/@setCode/@ins/@code
sname
code
stypeCheck
false
soptional
true
scheck
false
scheckLevel
exception
sdescriptors
xworker.lang.actions.Inout/@ins/@param
sth_createIndex
false
sth_mark
false
