Source Code Cross Referenced for SqlGenerationOptionsPanel.java in  » Database-Client » SQL-Workbench » workbench » gui » settings » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database Client » SQL Workbench » workbench.gui.settings 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * SqlGenerationOptionsPanel.java
003:         *
004:         * This file is part of SQL Workbench/J, http://www.sql-workbench.net
005:         *
006:         * Copyright 2002-2008, Thomas Kellerer
007:         * No part of this code maybe reused without the permission of the author
008:         *
009:         * To contact the author please send an email to: support@sql-workbench.net
010:         *
011:         */
012:        package workbench.gui.settings;
013:
014:        import java.util.List;
015:        import javax.swing.ComboBoxModel;
016:        import javax.swing.DefaultComboBoxModel;
017:        import javax.swing.JPanel;
018:        import workbench.gui.components.WbCheckBoxLabel;
019:        import workbench.interfaces.Restoreable;
020:        import workbench.resource.ResourceMgr;
021:        import workbench.resource.Settings;
022:        import workbench.util.StringUtil;
023:
024:        /**
025:         *
026:         * @author  support@sql-workbench.net
027:         */
028:        public class SqlGenerationOptionsPanel extends JPanel implements 
029:                Restoreable {
030:
031:            /** Creates new form FormatterOptionsPanel */
032:            public SqlGenerationOptionsPanel() {
033:                initComponents();
034:
035:                List<String> types = Settings.getInstance()
036:                        .getLiteralTypeList();
037:                ComboBoxModel model1 = new DefaultComboBoxModel(types.toArray());
038:                literalTypes.setModel(model1);
039:                ComboBoxModel model2 = new DefaultComboBoxModel(types.toArray());
040:                exportLiteralTypes.setModel(model2);
041:            }
042:
043:            public void restoreSettings() {
044:                String genCase = Settings.getInstance()
045:                        .getGeneratedSqlTableCase();
046:                if ("lower".equals(genCase))
047:                    this .tableNameCase.setSelectedIndex(1);
048:                else if ("upper".equals(genCase))
049:                    this .tableNameCase.setSelectedIndex(2);
050:                else
051:                    this .tableNameCase.setSelectedIndex(0);
052:                this .literalTypes.setSelectedItem(Settings.getInstance()
053:                        .getDefaultCopyDateLiteralType());
054:                this .exportLiteralTypes.setSelectedItem(Settings.getInstance()
055:                        .getDefaultExportDateLiteralType());
056:                this .includeEmptyComments.setSelected(Settings.getInstance()
057:                        .getIncludeEmptyComments());
058:            }
059:
060:            public void saveSettings() {
061:                Settings set = Settings.getInstance();
062:                set.setDoFormatUpdates(formatUpdates.isSelected());
063:                set.setDoFormatInserts(formatInserts.isSelected());
064:                set.setFormatInsertColsPerLine(StringUtil.getIntValue(
065:                        insertColsPerLine.getText(), 1));
066:                set.setFormatInsertColumnThreshold(StringUtil.getIntValue(
067:                        insertThreshold.getText(), 5));
068:                set.setFormatUpdateColumnThreshold(StringUtil.getIntValue(
069:                        updateThreshold.getText(), 5));
070:                set.setIncludeOwnerInSqlExport(includeOwner.isSelected());
071:                set.setGeneratedSqlTableCase((String) tableNameCase
072:                        .getSelectedItem());
073:                set.setDefaultCopyDateLiteralType((String) literalTypes
074:                        .getSelectedItem());
075:                set.setDefaultExportDateLiteralType((String) exportLiteralTypes
076:                        .getSelectedItem());
077:                set.setIncludeEmptyComments(includeEmptyComments.isSelected());
078:                set.setFormatInsertIgnoreIdentity(ignoreIdentity.isSelected());
079:            }
080:
081:            /** This method is called from within the constructor to
082:             * initialize the form.
083:             * WARNING: Do NOT modify this code. The content of this method is
084:             * always regenerated by the Form Editor.
085:             */
086:            // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
087:            private void initComponents() {
088:                java.awt.GridBagConstraints gridBagConstraints;
089:
090:                formatUpdates = new javax.swing.JCheckBox();
091:                formatUpdatesLabel = new WbCheckBoxLabel();
092:                formatInsertsLabel = new WbCheckBoxLabel();
093:                formatInserts = new javax.swing.JCheckBox();
094:                insertColThresholdLbl = new javax.swing.JLabel();
095:                insertThreshold = new javax.swing.JTextField();
096:                updateThreshold = new javax.swing.JTextField();
097:                updateColThresholdLbl = new javax.swing.JLabel();
098:                ignoreIdentityLabel = new WbCheckBoxLabel();
099:                ignoreIdentity = new javax.swing.JCheckBox();
100:                jSeparator1 = new javax.swing.JSeparator();
101:                insertColsPerLine = new javax.swing.JTextField();
102:                colsPerLineLabel = new javax.swing.JLabel();
103:                jSeparator2 = new javax.swing.JSeparator();
104:                includeOwner = new javax.swing.JCheckBox();
105:                includeOwnerLabel = new WbCheckBoxLabel();
106:                tableNameCaseLabel = new javax.swing.JLabel();
107:                tableNameCase = new javax.swing.JComboBox();
108:                jSeparator3 = new javax.swing.JSeparator();
109:                copyLiteralLabel = new javax.swing.JLabel();
110:                literalTypes = new javax.swing.JComboBox();
111:                exportLiteralTypes = new javax.swing.JComboBox();
112:                exportLiteralLabel = new javax.swing.JLabel();
113:                includeEmptyCommentsLabel = new WbCheckBoxLabel();
114:                includeEmptyComments = new javax.swing.JCheckBox();
115:                jSeparator4 = new javax.swing.JSeparator();
116:
117:                setLayout(new java.awt.GridBagLayout());
118:
119:                formatUpdates.setFont(null);
120:                formatUpdates.setSelected(Settings.getInstance()
121:                        .getDoFormatUpdates());
122:                formatUpdates.setText("");
123:                formatUpdates.setBorder(null);
124:                formatUpdates
125:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
126:                formatUpdates
127:                        .setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
128:                formatUpdates.setIconTextGap(5);
129:                gridBagConstraints = new java.awt.GridBagConstraints();
130:                gridBagConstraints.gridx = 1;
131:                gridBagConstraints.gridy = 0;
132:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
133:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
134:                gridBagConstraints.insets = new java.awt.Insets(6, 10, 0, 11);
135:                add(formatUpdates, gridBagConstraints);
136:
137:                formatUpdatesLabel
138:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
139:                formatUpdatesLabel.setLabelFor(formatUpdates);
140:                formatUpdatesLabel.setText(ResourceMgr.getString("LblFmtUpd"));
141:                formatUpdatesLabel.setToolTipText(ResourceMgr
142:                        .getDescription("LblFmtUpd"));
143:                gridBagConstraints = new java.awt.GridBagConstraints();
144:                gridBagConstraints.gridx = 0;
145:                gridBagConstraints.gridy = 0;
146:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
147:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
148:                gridBagConstraints.insets = new java.awt.Insets(7, 12, 0, 0);
149:                add(formatUpdatesLabel, gridBagConstraints);
150:
151:                formatInsertsLabel
152:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
153:                formatInsertsLabel.setLabelFor(formatInserts);
154:                formatInsertsLabel.setText(ResourceMgr.getString("LblFmtIns"));
155:                formatInsertsLabel.setToolTipText(ResourceMgr
156:                        .getDescription("LblFmtIns"));
157:                gridBagConstraints = new java.awt.GridBagConstraints();
158:                gridBagConstraints.gridx = 0;
159:                gridBagConstraints.gridy = 3;
160:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
161:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
162:                gridBagConstraints.insets = new java.awt.Insets(6, 12, 0, 0);
163:                add(formatInsertsLabel, gridBagConstraints);
164:
165:                formatInserts.setFont(null);
166:                formatInserts.setSelected(Settings.getInstance()
167:                        .getDoFormatInserts());
168:                formatInserts.setText("");
169:                formatInserts.setBorder(null);
170:                formatInserts
171:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
172:                formatInserts
173:                        .setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
174:                formatInserts.setIconTextGap(5);
175:                gridBagConstraints = new java.awt.GridBagConstraints();
176:                gridBagConstraints.gridx = 1;
177:                gridBagConstraints.gridy = 3;
178:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
179:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
180:                gridBagConstraints.insets = new java.awt.Insets(5, 10, 0, 11);
181:                add(formatInserts, gridBagConstraints);
182:
183:                insertColThresholdLbl
184:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
185:                insertColThresholdLbl.setText(ResourceMgr
186:                        .getString("LblInsThres"));
187:                insertColThresholdLbl.setToolTipText(ResourceMgr
188:                        .getDescription("LblInsThres"));
189:                gridBagConstraints = new java.awt.GridBagConstraints();
190:                gridBagConstraints.gridx = 0;
191:                gridBagConstraints.gridy = 4;
192:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
193:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
194:                gridBagConstraints.insets = new java.awt.Insets(6, 18, 0, 0);
195:                add(insertColThresholdLbl, gridBagConstraints);
196:
197:                insertThreshold.setText(Integer.toString(Settings.getInstance()
198:                        .getFormatInsertColumnThreshold()));
199:                gridBagConstraints = new java.awt.GridBagConstraints();
200:                gridBagConstraints.gridx = 1;
201:                gridBagConstraints.gridy = 4;
202:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
203:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
204:                gridBagConstraints.insets = new java.awt.Insets(4, 10, 0, 15);
205:                add(insertThreshold, gridBagConstraints);
206:
207:                updateThreshold.setText(Integer.toString(Settings.getInstance()
208:                        .getFormatUpdateColumnThreshold()));
209:                gridBagConstraints = new java.awt.GridBagConstraints();
210:                gridBagConstraints.gridx = 1;
211:                gridBagConstraints.gridy = 1;
212:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
213:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
214:                gridBagConstraints.insets = new java.awt.Insets(5, 10, 0, 15);
215:                add(updateThreshold, gridBagConstraints);
216:
217:                updateColThresholdLbl
218:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
219:                updateColThresholdLbl.setText(ResourceMgr
220:                        .getString("LblUpdThres"));
221:                updateColThresholdLbl.setToolTipText(ResourceMgr
222:                        .getDescription("LblUpdThres"));
223:                gridBagConstraints = new java.awt.GridBagConstraints();
224:                gridBagConstraints.gridx = 0;
225:                gridBagConstraints.gridy = 1;
226:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
227:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
228:                gridBagConstraints.insets = new java.awt.Insets(7, 18, 0, 0);
229:                add(updateColThresholdLbl, gridBagConstraints);
230:
231:                ignoreIdentityLabel
232:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
233:                ignoreIdentityLabel.setLabelFor(ignoreIdentity);
234:                ignoreIdentityLabel.setText(ResourceMgr
235:                        .getString("LblInsIgnoreId"));
236:                ignoreIdentityLabel.setToolTipText(ResourceMgr
237:                        .getDescription("LblInsIgnoreId"));
238:                gridBagConstraints = new java.awt.GridBagConstraints();
239:                gridBagConstraints.gridx = 0;
240:                gridBagConstraints.gridy = 6;
241:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
242:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
243:                gridBagConstraints.insets = new java.awt.Insets(6, 18, 0, 0);
244:                add(ignoreIdentityLabel, gridBagConstraints);
245:
246:                ignoreIdentity.setFont(null);
247:                ignoreIdentity.setSelected(Settings.getInstance()
248:                        .getFormatInsertIgnoreIdentity());
249:                ignoreIdentity.setText("");
250:                ignoreIdentity.setBorder(null);
251:                ignoreIdentity
252:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
253:                ignoreIdentity
254:                        .setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
255:                ignoreIdentity.setIconTextGap(5);
256:                gridBagConstraints = new java.awt.GridBagConstraints();
257:                gridBagConstraints.gridx = 1;
258:                gridBagConstraints.gridy = 6;
259:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
260:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
261:                gridBagConstraints.weightx = 1.0;
262:                gridBagConstraints.insets = new java.awt.Insets(5, 10, 0, 11);
263:                add(ignoreIdentity, gridBagConstraints);
264:                gridBagConstraints = new java.awt.GridBagConstraints();
265:                gridBagConstraints.gridx = 0;
266:                gridBagConstraints.gridy = 2;
267:                gridBagConstraints.gridwidth = 2;
268:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
269:                gridBagConstraints.insets = new java.awt.Insets(10, 0, 0, 0);
270:                add(jSeparator1, gridBagConstraints);
271:
272:                insertColsPerLine.setText(Integer.toString(Settings
273:                        .getInstance().getFormatInsertColsPerLine()));
274:                gridBagConstraints = new java.awt.GridBagConstraints();
275:                gridBagConstraints.gridx = 1;
276:                gridBagConstraints.gridy = 5;
277:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
278:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
279:                gridBagConstraints.insets = new java.awt.Insets(5, 10, 0, 15);
280:                add(insertColsPerLine, gridBagConstraints);
281:
282:                colsPerLineLabel
283:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
284:                colsPerLineLabel.setText(ResourceMgr
285:                        .getString("LblInsColsPerLine"));
286:                colsPerLineLabel.setToolTipText(ResourceMgr
287:                        .getDescription("LblInsColsPerLine"));
288:                gridBagConstraints = new java.awt.GridBagConstraints();
289:                gridBagConstraints.gridx = 0;
290:                gridBagConstraints.gridy = 5;
291:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
292:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
293:                gridBagConstraints.insets = new java.awt.Insets(7, 18, 0, 0);
294:                add(colsPerLineLabel, gridBagConstraints);
295:                gridBagConstraints = new java.awt.GridBagConstraints();
296:                gridBagConstraints.gridx = 0;
297:                gridBagConstraints.gridy = 7;
298:                gridBagConstraints.gridwidth = 2;
299:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
300:                gridBagConstraints.insets = new java.awt.Insets(6, 0, 2, 0);
301:                add(jSeparator2, gridBagConstraints);
302:
303:                includeOwner.setFont(null);
304:                includeOwner.setSelected(Settings.getInstance()
305:                        .getIncludeOwnerInSqlExport());
306:                includeOwner.setText("");
307:                includeOwner.setBorder(null);
308:                includeOwner
309:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
310:                includeOwner
311:                        .setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
312:                includeOwner.setIconTextGap(5);
313:                gridBagConstraints = new java.awt.GridBagConstraints();
314:                gridBagConstraints.gridx = 1;
315:                gridBagConstraints.gridy = 8;
316:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
317:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
318:                gridBagConstraints.insets = new java.awt.Insets(9, 10, 0, 11);
319:                add(includeOwner, gridBagConstraints);
320:
321:                includeOwnerLabel
322:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
323:                includeOwnerLabel.setLabelFor(includeOwner);
324:                includeOwnerLabel.setText(ResourceMgr
325:                        .getString("LblGenInclOwn"));
326:                includeOwnerLabel.setToolTipText(ResourceMgr
327:                        .getDescription("LblGenInclOwn"));
328:                gridBagConstraints = new java.awt.GridBagConstraints();
329:                gridBagConstraints.gridx = 0;
330:                gridBagConstraints.gridy = 8;
331:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
332:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
333:                gridBagConstraints.insets = new java.awt.Insets(10, 12, 0, 0);
334:                add(includeOwnerLabel, gridBagConstraints);
335:
336:                tableNameCaseLabel.setLabelFor(tableNameCase);
337:                tableNameCaseLabel.setText(ResourceMgr
338:                        .getString("LblGenTableNameCase"));
339:                tableNameCaseLabel.setToolTipText(ResourceMgr
340:                        .getDescription("LblGenTableNameCase"));
341:                gridBagConstraints = new java.awt.GridBagConstraints();
342:                gridBagConstraints.gridx = 0;
343:                gridBagConstraints.gridy = 9;
344:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
345:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
346:                gridBagConstraints.insets = new java.awt.Insets(11, 12, 0, 0);
347:                add(tableNameCaseLabel, gridBagConstraints);
348:
349:                tableNameCase.setModel(new javax.swing.DefaultComboBoxModel(
350:                        new String[] { "As is", "Lowercase", "Uppercase" }));
351:                tableNameCase.setToolTipText(ResourceMgr
352:                        .getDescription("LblGenTableNameCase"));
353:                gridBagConstraints = new java.awt.GridBagConstraints();
354:                gridBagConstraints.gridx = 1;
355:                gridBagConstraints.gridy = 9;
356:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
357:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
358:                gridBagConstraints.insets = new java.awt.Insets(6, 10, 0, 15);
359:                add(tableNameCase, gridBagConstraints);
360:                gridBagConstraints = new java.awt.GridBagConstraints();
361:                gridBagConstraints.gridx = 0;
362:                gridBagConstraints.gridy = 10;
363:                gridBagConstraints.gridwidth = 2;
364:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
365:                gridBagConstraints.insets = new java.awt.Insets(7, 0, 2, 0);
366:                add(jSeparator3, gridBagConstraints);
367:
368:                copyLiteralLabel.setText(ResourceMgr
369:                        .getString("LblDefCopyLiteralType"));
370:                copyLiteralLabel.setToolTipText(ResourceMgr
371:                        .getDescription("LblDefCopyLiteralType"));
372:                gridBagConstraints = new java.awt.GridBagConstraints();
373:                gridBagConstraints.gridx = 0;
374:                gridBagConstraints.gridy = 11;
375:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
376:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
377:                gridBagConstraints.insets = new java.awt.Insets(9, 12, 0, 0);
378:                add(copyLiteralLabel, gridBagConstraints);
379:
380:                literalTypes.setToolTipText(ResourceMgr
381:                        .getDescription("LblDefCopyLiteralType"));
382:                gridBagConstraints = new java.awt.GridBagConstraints();
383:                gridBagConstraints.gridx = 1;
384:                gridBagConstraints.gridy = 11;
385:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
386:                gridBagConstraints.insets = new java.awt.Insets(6, 8, 0, 0);
387:                add(literalTypes, gridBagConstraints);
388:
389:                exportLiteralTypes.setToolTipText(ResourceMgr
390:                        .getDescription("LblDefExportLiteralType"));
391:                gridBagConstraints = new java.awt.GridBagConstraints();
392:                gridBagConstraints.gridx = 1;
393:                gridBagConstraints.gridy = 12;
394:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
395:                gridBagConstraints.insets = new java.awt.Insets(6, 8, 0, 0);
396:                add(exportLiteralTypes, gridBagConstraints);
397:
398:                exportLiteralLabel.setText(ResourceMgr
399:                        .getString("LblDefExportLiteralType"));
400:                exportLiteralLabel.setToolTipText(ResourceMgr
401:                        .getDescription("LblDefExportLiteralType"));
402:                gridBagConstraints = new java.awt.GridBagConstraints();
403:                gridBagConstraints.gridx = 0;
404:                gridBagConstraints.gridy = 12;
405:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
406:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
407:                gridBagConstraints.insets = new java.awt.Insets(9, 12, 0, 0);
408:                add(exportLiteralLabel, gridBagConstraints);
409:
410:                includeEmptyCommentsLabel
411:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
412:                includeEmptyCommentsLabel.setLabelFor(includeEmptyComments);
413:                includeEmptyCommentsLabel.setText(ResourceMgr
414:                        .getString("LblGenInclEmptyComments"));
415:                includeEmptyCommentsLabel.setToolTipText(ResourceMgr
416:                        .getDescription("LblGenInclEmptyComments"));
417:                gridBagConstraints = new java.awt.GridBagConstraints();
418:                gridBagConstraints.gridx = 0;
419:                gridBagConstraints.gridy = 14;
420:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
421:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
422:                gridBagConstraints.weighty = 1.0;
423:                gridBagConstraints.insets = new java.awt.Insets(10, 12, 0, 0);
424:                add(includeEmptyCommentsLabel, gridBagConstraints);
425:
426:                includeEmptyComments.setFont(null);
427:                includeEmptyComments.setSelected(Settings.getInstance()
428:                        .getIncludeOwnerInSqlExport());
429:                includeEmptyComments.setText("");
430:                includeEmptyComments.setBorder(null);
431:                includeEmptyComments
432:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
433:                includeEmptyComments
434:                        .setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
435:                includeEmptyComments.setIconTextGap(5);
436:                gridBagConstraints = new java.awt.GridBagConstraints();
437:                gridBagConstraints.gridx = 1;
438:                gridBagConstraints.gridy = 14;
439:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
440:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
441:                gridBagConstraints.weighty = 1.0;
442:                gridBagConstraints.insets = new java.awt.Insets(9, 8, 0, 11);
443:                add(includeEmptyComments, gridBagConstraints);
444:                gridBagConstraints = new java.awt.GridBagConstraints();
445:                gridBagConstraints.gridx = 0;
446:                gridBagConstraints.gridy = 13;
447:                gridBagConstraints.gridwidth = 2;
448:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
449:                gridBagConstraints.insets = new java.awt.Insets(7, 0, 2, 0);
450:                add(jSeparator4, gridBagConstraints);
451:            }// </editor-fold>//GEN-END:initComponents
452:
453:            // Variables declaration - do not modify//GEN-BEGIN:variables
454:            private javax.swing.JLabel colsPerLineLabel;
455:            private javax.swing.JLabel copyLiteralLabel;
456:            private javax.swing.JLabel exportLiteralLabel;
457:            private javax.swing.JComboBox exportLiteralTypes;
458:            private javax.swing.JCheckBox formatInserts;
459:            private javax.swing.JLabel formatInsertsLabel;
460:            private javax.swing.JCheckBox formatUpdates;
461:            private javax.swing.JLabel formatUpdatesLabel;
462:            private javax.swing.JCheckBox ignoreIdentity;
463:            private javax.swing.JLabel ignoreIdentityLabel;
464:            private javax.swing.JCheckBox includeEmptyComments;
465:            private javax.swing.JLabel includeEmptyCommentsLabel;
466:            private javax.swing.JCheckBox includeOwner;
467:            private javax.swing.JLabel includeOwnerLabel;
468:            private javax.swing.JLabel insertColThresholdLbl;
469:            private javax.swing.JTextField insertColsPerLine;
470:            private javax.swing.JTextField insertThreshold;
471:            private javax.swing.JSeparator jSeparator1;
472:            private javax.swing.JSeparator jSeparator2;
473:            private javax.swing.JSeparator jSeparator3;
474:            private javax.swing.JSeparator jSeparator4;
475:            private javax.swing.JComboBox literalTypes;
476:            private javax.swing.JComboBox tableNameCase;
477:            private javax.swing.JLabel tableNameCaseLabel;
478:            private javax.swing.JLabel updateColThresholdLbl;
479:            private javax.swing.JTextField updateThreshold;
480:            // End of variables declaration//GEN-END:variables
481:
482:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.