input
stringlengths
10
828
output
stringlengths
5
107
private void initialize this set content pane get jcontent pane this set title messages get string query export frame 0 non nls 1
this method initializes this
private jscroll pane get jscroll pane query if j scroll pane query null j scroll pane query new jscroll pane j scroll pane query set preferred size new dimension 400 100 j scroll pane query set viewport view get jtext area query return j scroll pane query
this method initializes j scroll pane query
private jtext area get jtext area query if j text area query null j text area query new jtext area return j text area query
this method initializes j text area query
private jbutton get jbutton takeover if j button takeover null j button takeover new jbutton j button takeover set text messages get string query export frame 1 non nls 1 j button takeover add action listener new action listener public void action performed action event e set query text main frame get text return j button takeover
this method initializes j button takeover
private target panel get target panel if target panel null target panel new target panel false return target panel
this method initializes target panel
private jbutton get jbutton start if j button start null j button start new jbutton j button start set text messages get string query export frame 4 non nls 1 j button start add action listener new action listener public void action performed action event e start export return j button start
this method initializes j button start
public void reset set error code normal start time 0 stop time 0 count lines 0 count insert 0 count insert processed 0 count update 0 batch counter 0 last error message null fields new array list field description last values clear error log file name null if session null session close
resets al internal states even the field descriptions
private jbutton get jbutton cancel if j button cancel null j button cancel new jbutton j button cancel set text messages get string query export frame 12 non nls 1 j button cancel set enabled false j button cancel add action listener new action listener public void action performed action event e if export thread null export thread is alive export thread interrupt return j button cancel
this method initializes j button cancel
private jbutton get jbutton close if j button close null j button close new jbutton j button close set text messages get string query export frame 13 non nls 1 j button close add action listener new action listener public void action performed action event e dispose return j button close
this method initializes j button close
private jcheck box get jcheck box line wrap if j check box line wrap null j check box line wrap new jcheck box j check box line wrap set text messages get string query export frame 14 non nls 1 j check box line wrap add item listener new item listener public void item state changed item event e if e get id item event item state changed j text area query set line wrap j check box line wrap is selected return j check box line wrap
this method initializes j check box line wrap
private jscroll pane get jscroll pane init sql if j scroll pane init sql null j scroll pane init sql new jscroll pane j scroll pane init sql set preferred size new dimension 10 50 j scroll pane init sql set viewport view get jtext area init sql return j scroll pane init sql
this method initializes j scroll pane init sql
private jtext area get jtext area init sql if j text area init sql null j text area init sql new jtext area return j text area init sql
this method initializes j text area init sql
private boolean check save config boolean ok true if is changed int answer joption pane show confirm dialog this messages get string import configurator frame changed message messages get string import configurator frame changed title joption pane yes no cancel option non nls 1 non nls 2 switch answer case joption pane yes option ok save config file false break case joption pane no option break case joption pane cancel option ok false break default ok false return ok
check if configuration is changed
private void initialize this set title messages get string result table export dialog 0 non nls 1 this set content pane get jcontent pane
this method initializes this
private jtext field get jtext field fetch size if j text field fetch size null j text field fetch size new jtext field j text field fetch size set background new color 250 250 220 return j text field fetch size
this method initializes j text field fetch size
private target panel get target panel if target panel null target panel new target panel true return target panel
this method initializes target panel
private jradio button get rb insert export if rb insert export null rb insert export new jradio button rb insert export set text messages get string export format panel 1 non nls 1 rb insert export add item listener new java awt event item listener public void item state changed item event e if rb insert export is selected rb flat file export set selected false text field date format set enabled true check box comma set enabled false check box header set enabled false delimiter config panel set enabled false fire action performed return rb insert export
this method initializes rb insert export
private jtext field get text field date format if text field date format null text field date format new jtext field text field date format set enabled false return text field date format
this method initializes text field date format
private jpanel get jpanel buttons if j panel buttons null j panel buttons new jpanel j panel buttons set layout new grid bag layout grid bag constraints gbc new grid bag constraints gbc gridx 0 gbc insets new insets 5 5 5 5 gbc gridy 0 j panel buttons add get jbutton start gbc grid bag constraints gbc new grid bag constraints gbc gridx 1 gbc insets new insets 5 5 5 5 gbc gridy 0 j panel buttons add get jbutton close gbc return j panel buttons
this method initializes j panel buttons
private jbutton get jbutton start if j button start null j button start new jbutton j button start set text messages get string result table export dialog 1 non nls 1 j button start add action listener new action listener public void action performed action event e start export return j button start
this method initializes j button start
private jcheck box get check box header if check box header null check box header new jcheck box check box header set text messages get string export format panel 3 non nls 1 check box header set enabled false return check box header
this method initializes check box header
private jcheck box get check box comma if check box comma null check box comma new jcheck box check box comma set text messages get string export format panel 4 non nls 1 check box comma set enabled false return check box comma
this method initializes check box comma
private jbutton get jbutton close if j button close null j button close new jbutton j button close set text messages get string result table export dialog 11 non nls 1 j button close add action listener new action listener public void action performed action event e set visible false return j button close
this method initializes j button close
private jtext field get jtext field file name if j text field file name null j text field file name new jtext field j text field file name set enabled false return j text field file name
this method initializes j text field file name
private jcheck box get jcheck box split if j check box split null j check box split new jcheck box j check box split set enabled false j check box split set text messages get string target panel 3 non nls 1 return j check box split
this method initializes j check box split
private jcheck box get jcheck box limit datasets in editor if j check box limit datasets in editor null j check box limit datasets in editor new jcheck box j check box limit datasets in editor set enabled false j check box limit datasets in editor set text messages get string target panel 5 non nls 1 return j check box limit datasets in editor
this method initializes j check box limit datasets in editor
public boolean is referenced table sqltable table if is table table is table if constraint map is empty false for sqlconstraint constraint constraint map values if constraint get type sqlconstraint foreign key if constraint get referenced table equals table return true else if is view if source code null if source code to lower case index of table get name to lower case 0 return true return false
check if a table is referencing a given table
public void set type int type this type type basic type get basic type by types type
this sets the datatyp of this field
private void initialize this set resizable false this set content pane get jcontent pane this set title java files creator model schema to string this set size 453 167
this method initializes this
private jtext field get text field java root dir if text field java root dir null text field java root dir new jtext field text field java root dir set bounds 136 5 268 23 string directory name main get user property java source root if directory name null text field java root dir set text directory name return text field java root dir
this method initializes j text field
private jbutton get button choose directory if button choose directory null button choose directory new jbutton button choose directory set bounds 411 5 27 23 button choose directory set text choose button choose directory set mnemonic java awt event key event vk d button choose directory add action listener new java awt event action listener public void action performed java awt event action event e open java root chooser dialog return button choose directory
this method initializes j button
private jprogress bar get progress bar if progress bar null progress bar new jprogress bar progress bar set bounds 8 75 430 19 progress bar set string painted true return progress bar
this method initializes j progress bar
private jbutton get button start if button start null button start new jbutton button start set bounds 8 107 268 25 button start set text start creating java files button start set mnemonic java awt event key event vk s button start add action listener new java awt event action listener public void action performed java awt event action event e start creating java files1 return button start
this method initializes j button
private jbutton get button stop if button stop null button stop new jbutton button stop set bounds 292 107 146 25 button stop set text cancel button stop set enabled false button stop add action listener new java awt event action listener public void action performed java awt event action event e cancel creating java files return button stop
this method initializes j button
public default mutable tree node find and create node by path array list object user object path default mutable tree node node null for object user object user object path node find tree node by user object user object if node null node get child count 0 build nodes node return node
find the node or create if neccessary for the user object path
private jtext field get jtext field package if j text field package null j text field package new jtext field string package name main get user property java package j text field package set text package name j text field package set bounds 137 37 268 23 return j text field package
this method initializes j text field
private jcheck box get jcheck box if j check box null j check box new jcheck box j check box set text messages get string panel config debug mode checkbox non nls 1 return j check box
this method initializes j check box
public void paint graphics g int offs0 int offs1 shape bounds jtext component c if enabled try determine locations text ui mapper c get ui final rectangle p0 mapper model to view c offs0 final rectangle p1 mapper model to view c offs1 render if get color null g set color c get selection color else g set color get color final rectangle r p0 union p1 g fill rect r x r y r width r height catch bad location exception e can t render
paints a highlight
private jtext field get jtext field source file name if j text field source file name null j text field source file name new jtext field j text field source file name set editable false return j text field source file name
this method initializes j text field source file name
public void fire table changed final table model event e if swing utilities is event dispatch thread do fire table changed e else thread t new thread new runnable public void run do fire table changed e t start
forward the given notification event to all table model listeners that registered
private jbutton get jbutton choose source file if j button choose source file null j button choose source file new jbutton j button choose source file set text messages get string import configurator frame choosesourcefile non nls 1 j button choose source file add action listener new action listener public void action performed action event e button open source file action performed return j button choose source file
this method initializes j button choose source file
private jcheck box get jcheck box ignore first line if j check box ignore first line null j check box ignore first line new jcheck box j check box ignore first line set text messages get string import configurator frame ignorefirstline non nls 1 j check box ignore first line add action listener new action listener public void action performed action event e refresh test data return j check box ignore first line
this method initializes j check box ignore first line
public void set conversion pattern string format layout set conversion pattern format
set the pattern layout format
private jpanel get jpanel tools if j panel tools null j label new jlabel j label set text logging j panel tools new jpanel j panel tools add j label null j panel tools add get jbutton save as null j panel tools add get jbutton clear null j panel tools add get jcheck box auto scrolling null j panel tools add get jcheck box logging enabled null return j panel tools
this method initializes j panel tools
private jbutton get jbutton save as if j button save as null j button save as new jbutton j button save as set text messages get string log panel save j button save as set tool tip text save log entries in file j button save as add action listener new java awt event action listener public void action performed java awt event action event e show save file dialog return j button save as
this method initializes j button save as
private jcheck box get jcheck box out param if j check box out param null j check box out param new jcheck box j check box out param set text output return j check box out param
this method initializes j check box out param
private jbutton get jbutton clear if j button clear null j button clear new jbutton j button clear set text messages get string log panel clear j button clear set tool tip text clear log entries j button clear add action listener new java awt event action listener public void action performed java awt event action event e clear return j button clear
this method initializes j button clear
private jcheck box get jcheck box auto scrolling if j check box auto scrolling null j check box auto scrolling new jcheck box j check box auto scrolling set text auto scrolling j check box auto scrolling set selected true j check box auto scrolling set tool tip text shows always the end of text return j check box auto scrolling
this method initializes j check box freeze
private jcheck box get jcheck box logging enabled if j check box logging enabled null j check box logging enabled new jcheck box j check box logging enabled set text logging on j check box logging enabled set selected logging enabled j check box logging enabled add item listener new java awt event item listener public void item state changed java awt event item event e logging enabled j check box logging enabled is selected return j check box logging enabled
this method initializes j check box logging enabled
private void initialize this set content pane get jcontent pane this set title messages get string regex test frame 0 non nls 1 this set size new dimension 312 350
this method initializes this
private jpanel get jcontent pane if j content pane null grid bag constraints gbc new grid bag constraints gbc fill grid bag constraints both gbc weighty 1 0 gbc gridx 0 gbc gridy 0 gbc weightx 1 0 j content pane new jpanel j content pane set layout new grid bag layout j content pane add get jsplit pane gbc return j content pane
this method initializes j content pane
private jscroll pane get jscroll pane test text if j scroll pane test text null j scroll pane test text new jscroll pane j scroll pane test text set viewport view get jtext area test return j scroll pane test text
this method initializes j scroll pane test text
private jsplit pane get jsplit pane if j split pane null j split pane new jsplit pane j split pane set orientation jsplit pane vertical split j split pane set bottom component get jpanel buttom j split pane set top component get jpanel top return j split pane
this method initializes j split pane
private jtext area get jtext area test if j text area test null j text area test new jtext area j text area test set wrap style word true j text area test set preferred size new dimension 300 40 j text area test set line wrap true return j text area test
this method initializes j text area test
private jscroll pane get jscroll pane message if j scroll pane message null j scroll pane message new jscroll pane j scroll pane message set viewport view get jtext area message return j scroll pane message
this method initializes j scroll pane message
private jtext area get jtext area message if j text area message null j text area message new jtext area j text area message set size new dimension 300 30 j text area message set editable false return j text area message
this method initializes j text area message
private jcheck box get jcheck box show only by group found if j check box show only by group found null j check box show only by group found new jcheck box j check box show only by group found set text messages get string regex test frame 11 non nls 1 j check box show only by group found add item listener new item listener public void item state changed item event e show regex matches return j check box show only by group found
this method initializes j check box show only by group found
private jpanel get jcontent pane if j content pane null j content pane new jpanel j content pane set layout new border layout j content pane add scroll pane params border layout center j content pane add panel buttons border layout south return j content pane
this method initializes j content pane
private jbutton get jbutton sort if j button sort null j button sort new jbutton j button sort set text sortieren j button sort add action listener new java awt event action listener public void action performed java awt event action event e sort parameter by name return j button sort
this method initializes j button sort
private jpanel get jpanel parameters if j panel parameters null j panel parameters new jpanel j panel parameters set layout new grid bag layout return j panel parameters
this method initializes j panel parameters
private jbutton get jbutton count lines if j button count lines null j button count lines new jbutton j button count lines set enabled false j button count lines set text messages get string import configurator frame countlines non nls 1 j button count lines add action listener new java awt event action listener public void action performed java awt event action event e count lines return j button count lines
this method initializes j button count lines
private jcheck box get jcheck box enable post processing if j check box enable post processing null j check box enable post processing new jcheck box j check box enable post processing set text messages get string import configurator frame enablepostprocessing non nls 1 return j check box enable post processing
this method initializes j check box enable post processing
private jscroll pane create jscroll pane post processing sql jscroll pane j scroll pane post processing sql new jscroll pane j scroll pane post processing sql set viewport view get jtext area post processing sql return j scroll pane post processing sql
this method initializes j scroll pane post processing sql
private jcheck box get jcheck box enable pre processing if j check box enable pre processing null j check box enable pre processing new jcheck box j check box enable pre processing set text messages get string import configurator frame enablepreprocessing non nls 1 return j check box enable pre processing
this method initializes j check box enable post processing
private jscroll pane create jscroll pane pre processing sql jscroll pane j scroll pane pre processing sql new jscroll pane j scroll pane pre processing sql set viewport view get jtext area pre processing sql return j scroll pane pre processing sql
this method initializes j scroll pane post processing sql
private void initialize int x integer parse int main get user property cell editor width 300 non nls 1 non nls 2 int y integer parse int main get user property cell editor height 150 non nls 1 non nls 2 if x 300 x 300 if y 150 y 150 this set size x y this set content pane get jcontent pane this set title messages get string value editor title non nls 1
this method initializes this
private jtext area get jtext area post processing sql if j text area post processing sql null j text area post processing sql new jtext area return j text area post processing sql
this method initializes j text area post processing sql
private jscroll pane get jscroll pane if j scroll pane null j scroll pane new jscroll pane j scroll pane set preferred size new dimension 390 50 j scroll pane set viewport view get text area return j scroll pane
this method initializes j scroll pane
private jtext area get jtext area pre processing sql if j text area pre processing sql null j text area pre processing sql new jtext area return j text area pre processing sql
this method initializes j text area post processing sql
private delimiter config panel get delimiter config panel if delimiter config panel null delimiter config panel new delimiter config panel delimiter config panel add item listener new item listener public void item state changed item event e create test field descriptions refresh test data return delimiter config panel
this method initializes delimiter config panel
private jbutton get button save in db if button save in db null button save in db new jbutton button save in db set mnemonic java awt event key event vk s button save in db add action listener new java awt event action listener public void action performed java awt event action event e button save in dbaction performed if insert modus button save in db set text messages get string value editor writeintable non nls 1 else button save in db set text messages get string value editor updateindb non nls 1 return button save in db
this method initializes j button
private jtext field get jtext field table name if j text field table name null j text field table name new jtext field return j text field table name
this method initializes j text field table name
private jbutton get button load file if button load file null button load file new jbutton button load file set icon application icons open gif non nls 1 button load file add action listener new java awt event action listener public void action performed java awt event action event e button load in file action performed return button load file
this method initializes j button
private jbutton get button save in file if button save in file null button save in file new jbutton button save in file set icon application icons save gif non nls 1 if insert modus button save in file set enabled false button save in file add action listener new java awt event action listener public void action performed java awt event action event e button save in file action performed button save in file set tool tip text messages get string value editor savedatainfile non nls 1 return button save in file
this method initializes button save in file
private jbutton get button search replace if button search replace null button search replace new jbutton button search replace set icon application icons search gif non nls 1 button search replace add action listener new java awt event action listener public void action performed java awt event action event e button search replace action performed return button search replace
this method initializes button search replace
private jpanel get jcontent pane if j content pane null j content pane new jpanel j content pane set layout new grid bag layout grid bag constraints gbc new grid bag constraints gbc gridx 0 gbc gridy 0 gbc weightx 1 gbc weighty 1 gbc fill grid bag constraints both j content pane add get jtabbed pane gbc grid bag constraints gbc new grid bag constraints gbc gridx 0 gbc gridy 1 gbc insets new insets 2 2 2 2 j content pane add get jbutton close gbc return j content pane
this method initializes j content pane
private jbutton get jbutton create new field descriptions if j button create new field descriptions null j button create new field descriptions new jbutton j button create new field descriptions set text messages get string import configurator frame createnewdesc non nls 1 j button create new field descriptions add action listener new action listener public void action performed action event e create new field descriptions return j button create new field descriptions
this method initializes j button create new field descriptions
public void write doc type string doc type tag throws ioexception out write doc type tag
schreibt ein doctype tag
public void write comment string comment text throws ioexception out new line if format output for int i 0 i stack get current level i out write indent string out write out new line out write comment text out new line if format output for int i 0 i stack get current level i out write indent string out write
schreibt xml kommentar
public void close throws ioexception stack clear out close
schliesst den writer
private void initialize this set default close operation javax swing window constants dispose on close this set title edit export query this set content pane get jcontent pane
this method initializes this
private jpanel get jpanel editor if j panel editor null j panel editor new jpanel j panel editor set layout new border layout j panel editor add get jscroll pane java awt border layout center return j panel editor
this method initializes j panel editor
private jscroll pane get jscroll pane if j scroll pane null j scroll pane new jscroll pane j scroll pane set viewport view get jtext area sql j scroll pane set preferred size new java awt dimension 400 100 return j scroll pane
this method initializes j scroll pane
private jtext area get jtext area sql if j text area sql null j text area sql new jtext area j text area sql set font new java awt font monospaced java awt font plain 12 return j text area sql
this method initializes j text area sql
private jbutton get jbutton ok if j button ok null j button ok new jbutton j button ok set text ok j button ok add action listener new java awt event action listener public void action performed java awt event action event e return code returncode ok set visible false return j button ok
this method initializes j button ok
private jbutton get jbutton cancel if j button cancel null j button cancel new jbutton j button cancel set text abbrechen j button cancel add action listener new java awt event action listener public void action performed java awt event action event e return code returncode cancel set visible false return j button cancel
this method initializes j button cancel
private jbutton get jbutton edit field description if j button edit field description null j button edit field description new jbutton j button edit field description set text messages get string import configurator frame editdesc non nls 1 j button edit field description add action listener new action listener public void action performed action event e button edit action performed return j button edit field description
this method initializes j button edit field description
private jbutton get jbutton add field description if j button add field description null j button add field description new jbutton j button add field description set text messages get string import configurator frame adddesc non nls 1 j button add field description add action listener new action listener public void action performed action event e button add action performed return j button add field description
this method initializes j button add field description
private jbutton get jbutton delete field description if j button delete field description null j button delete field description new jbutton j button delete field description set text messages get string import configurator frame deletedesc non nls 1 j button delete field description add action listener delete action return j button delete field description
this method initializes j button delete field description
private jbutton get jbutton delete all field descriptions if j button delete all field descriptions null j button delete all field descriptions new jbutton j button delete all field descriptions set text messages get string import configurator frame deletealldesc non nls 1 j button delete all field descriptions add action listener new action listener public void action performed action event e button clear action performed return j button delete all field descriptions
this method initializes j button delete all field descriptions
private jcheck box get jcheck box delete all before if j check box delete all before null j check box delete all before new jcheck box j check box delete all before set text messages get string import configurator frame deleteallpreviousdatasets non nls 1 return j check box delete all before
this method initializes j check box delete all before
private jcheck box get jcheck box insert enabled if j check box insert enabled null j check box insert enabled new jcheck box j check box insert enabled set text messages get string import configurator frame insertenabled j check box insert enabled add action listener new action listener public void action performed action event e get jtext field batch size set editable j check box insert enabled is selected j check box update enabled is selected false return j check box insert enabled
this method initializes j check box insert enabled
private jcheck box get jcheck box update enabled if j check box update enabled null j check box update enabled new jcheck box j check box update enabled set text messages get string import configurator frame updateenabled non nls 1 j check box update enabled add action listener new action listener public void action performed action event e get jtext field batch size set editable j check box insert enabled is selected j check box update enabled is selected false return j check box update enabled
this method initializes j check box update enabled
private jbutton get jbutton test forwards if j button test forwards null j button test forwards new jbutton j button test forwards set icon application icons next gif non nls 1 j button test forwards add action listener move forward action return j button test forwards
this method initializes j button test forwards
private jbutton get jbutton test backwards if j button test backwards null j button test backwards new jbutton j button test backwards set icon application icons prev gif non nls 1 j button test backwards add action listener move backward action return j button test backwards
this method initializes j button test backwards
public void set logger logger ext logger if ext logger null throw new illegal argument exception ext logger cannot be null this current logger ext logger
to provide an instance logging
private jbutton get jbutton move field desc up if j button move field desc up null j button move field desc up new jbutton j button move field desc up set icon application icons up gif non nls 1 j button move field desc up add action listener new action listener public void action performed action event e button up action performed return j button move field desc up
this method initializes j button move field desc up
public void reset logger to static class logger current logger static logger
rejects the instance logger and use the static class logger
protected void set pooled boolean is pooled session this is pooled is pooled session
this session is within a pool
public void set debug boolean debug loc if debug loc current logger set level level debug else current logger set level level info
set debug mode