Source Code Cross Referenced for EditorOptionsPanel.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:         * EditorOptionsPanel.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 javax.swing.DefaultComboBoxModel;
015:        import javax.swing.JPanel;
016:        import workbench.gui.components.NumberField;
017:        import workbench.gui.components.WbCheckBoxLabel;
018:        import workbench.gui.components.WbColorPicker;
019:        import workbench.resource.ColumnSortType;
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 EditorOptionsPanel extends JPanel implements 
029:                workbench.interfaces.Restoreable {
030:
031:            /** Creates new form EditorOptionsPanel */
032:            public EditorOptionsPanel() {
033:                initComponents();
034:                editorFont.setListMonospacedOnly(true);
035:            }
036:
037:            public void restoreSettings() {
038:                errorColor.setSelectedColor(Settings.getInstance()
039:                        .getEditorErrorColor());
040:                selectionColor.setSelectedColor(Settings.getInstance()
041:                        .getEditorSelectionColor());
042:                editorFont.setSelectedFont(Settings.getInstance()
043:                        .getEditorFont());
044:                currLineColor.setSelectedColor(Settings.getInstance()
045:                        .getEditorCurrentLineColor());
046:
047:                String[] items = new String[] {
048:                        ResourceMgr.getString("LblLTDefault"),
049:                        ResourceMgr.getString("LblLTDos"),
050:                        ResourceMgr.getString("LblLTUnix") };
051:
052:                this .internalLineEnding
053:                        .setModel(new DefaultComboBoxModel(items));
054:                this .externalLineEnding
055:                        .setModel(new DefaultComboBoxModel(items));
056:
057:                String[] pasteCase = new String[] {
058:                        ResourceMgr.getString("LblLowercase"),
059:                        ResourceMgr.getString("LblUppercase"),
060:                        ResourceMgr.getString("LblAsIs") };
061:                this .completionPasteCase.setModel(new DefaultComboBoxModel(
062:                        pasteCase));
063:
064:                String value = Settings.getInstance()
065:                        .getInteralLineEndingValue();
066:                internalLineEnding
067:                        .setSelectedIndex(lineEndingValueToIndex(value));
068:
069:                value = Settings.getInstance().getExternalLineEndingValue();
070:                externalLineEnding
071:                        .setSelectedIndex(lineEndingValueToIndex(value));
072:
073:                String paste = Settings.getInstance()
074:                        .getAutoCompletionPasteCase();
075:                if ("lower".equals(paste))
076:                    this .completionPasteCase.setSelectedIndex(0);
077:                else if ("upper".equals(paste))
078:                    this .completionPasteCase.setSelectedIndex(1);
079:                else
080:                    this .completionPasteCase.setSelectedIndex(2);
081:
082:                alternateDelim.setDelimiter(Settings.getInstance()
083:                        .getAlternateDelimiter());
084:
085:                String[] sortItems = new String[] {
086:                        ResourceMgr.getString("LblSortPastColName"),
087:                        ResourceMgr.getString("LblSortPastColPos") };
088:                this .completionColumnSort.setModel(new DefaultComboBoxModel(
089:                        sortItems));
090:
091:                ColumnSortType sort = Settings.getInstance()
092:                        .getAutoCompletionColumnSortType();
093:                if (sort == ColumnSortType.position) {
094:                    this .completionColumnSort.setSelectedIndex(1);
095:                } else {
096:                    this .completionColumnSort.setSelectedIndex(0);
097:                }
098:                noWordSep.setText(Settings.getInstance().getEditorNoWordSep());
099:            }
100:
101:            private String indexToLineEndingValue(int index) {
102:                if (index == 1)
103:                    return Settings.DOS_LINE_TERMINATOR_PROP_VALUE;
104:                if (index == 2)
105:                    return Settings.UNIX_LINE_TERMINATOR_PROP_VALUE;
106:                return Settings.DEFAULT_LINE_TERMINATOR_PROP_VALUE;
107:            }
108:
109:            private int lineEndingValueToIndex(String value) {
110:                if (Settings.DOS_LINE_TERMINATOR_PROP_VALUE.equals(value)) {
111:                    return 1;
112:                } else if (Settings.UNIX_LINE_TERMINATOR_PROP_VALUE
113:                        .equals(value)) {
114:                    return 2;
115:                }
116:                return 0;
117:            }
118:
119:            public void saveSettings() {
120:                Settings set = Settings.getInstance();
121:                set.setMaxHistorySize(((NumberField) this .historySizeField)
122:                        .getValue());
123:                int index = this .completionPasteCase.getSelectedIndex();
124:                if (index == 0) {
125:                    set.setAutoCompletionPasteCase("lower");
126:                } else if (index == 1) {
127:                    set.setAutoCompletionPasteCase("upper");
128:                } else {
129:                    set.setAutoCompletionPasteCase(null);
130:                }
131:
132:                set.setCloseAutoCompletionWithSearch(closePopup.isSelected());
133:                set.setEditorErrorColor(errorColor.getSelectedColor());
134:                set.setEditorCurrentLineColor(currLineColor.getSelectedColor());
135:                set.setEditorFont(editorFont.getSelectedFont());
136:                set.setAlternateDelimiter(alternateDelim.getDelimiter());
137:                set
138:                        .setRightClickMovesCursor(rightClickMovesCursor
139:                                .isSelected());
140:                set.setEditorSelectionColor(selectionColor.getSelectedColor());
141:                set.setAutoJumpNextStatement(this .autoAdvance.isSelected());
142:                set.setEditorTabWidth(StringUtil.getIntValue(this .tabSize
143:                        .getText(), 2));
144:                set.setElectricScroll(StringUtil.getIntValue(electricScroll
145:                        .getText(), -1));
146:                set.setEditorNoWordSep(noWordSep.getText());
147:                String value = indexToLineEndingValue(internalLineEnding
148:                        .getSelectedIndex());
149:                set.setInternalEditorLineEnding(value);
150:                value = indexToLineEndingValue(externalLineEnding
151:                        .getSelectedIndex());
152:                set.setExternalEditorLineEnding(value);
153:                index = completionColumnSort.getSelectedIndex();
154:                if (index == 1) {
155:                    set.setAutoCompletionColumnSort(ColumnSortType.position);
156:                } else {
157:                    set.setAutoCompletionColumnSort(ColumnSortType.name);
158:                }
159:            }
160:
161:            /** This method is called from within the constructor to
162:             * initialize the form.
163:             * WARNING: Do NOT modify this code. The content of this method is
164:             * always regenerated by the Form Editor.
165:             */
166:            // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
167:            private void initComponents() {
168:                java.awt.GridBagConstraints gridBagConstraints;
169:
170:                autoAdvanceLabel = new WbCheckBoxLabel();
171:                autoAdvance = new javax.swing.JCheckBox();
172:                editorTabSizeLabel = new javax.swing.JLabel();
173:                tabSize = new javax.swing.JTextField();
174:                altDelimLabel = new javax.swing.JLabel();
175:                historySizeLabel = new javax.swing.JLabel();
176:                historySizeField = new NumberField();
177:                electricScrollLabel = new javax.swing.JLabel();
178:                electricScroll = new javax.swing.JTextField();
179:                rightClickMovesCursor = new javax.swing.JCheckBox();
180:                editorFontLabel = new javax.swing.JLabel();
181:                editorFont = new workbench.gui.components.WbFontPicker();
182:                labelCloseSearch = new WbCheckBoxLabel();
183:                closePopup = new javax.swing.JCheckBox();
184:                completionPasteCase = new javax.swing.JComboBox();
185:                pasteLabel = new javax.swing.JLabel();
186:                internalLineEndingLabel = new javax.swing.JLabel();
187:                internalLineEnding = new javax.swing.JComboBox();
188:                externalLineEndingLabel = new javax.swing.JLabel();
189:                externalLineEnding = new javax.swing.JComboBox();
190:                filesInHistoryLabel = new WbCheckBoxLabel();
191:                includeFilesInHistory = new javax.swing.JCheckBox();
192:                alternateDelim = new workbench.gui.components.DelimiterDefinitionPanel();
193:                pasterOrderLabel = new javax.swing.JLabel();
194:                completionColumnSort = new javax.swing.JComboBox();
195:                noWordSepLabel = new javax.swing.JLabel();
196:                noWordSep = new javax.swing.JTextField();
197:                jPanel1 = new javax.swing.JPanel();
198:                errorColorLabel = new javax.swing.JLabel();
199:                errorColor = new workbench.gui.components.WbColorPicker();
200:                selectionColorLabel = new javax.swing.JLabel();
201:                selectionColor = new workbench.gui.components.WbColorPicker();
202:                currLineLabel = new javax.swing.JLabel();
203:                currLineColor = new WbColorPicker(true);
204:
205:                setLayout(new java.awt.GridBagLayout());
206:
207:                autoAdvanceLabel.setLabelFor(autoAdvance);
208:                autoAdvanceLabel.setText(ResourceMgr
209:                        .getString("LblAutoAdvance"));
210:                autoAdvanceLabel.setToolTipText(ResourceMgr
211:                        .getDescription("LblAutoAdvance"));
212:                gridBagConstraints = new java.awt.GridBagConstraints();
213:                gridBagConstraints.gridx = 0;
214:                gridBagConstraints.gridy = 1;
215:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
216:                gridBagConstraints.insets = new java.awt.Insets(7, 12, 2, 0);
217:                add(autoAdvanceLabel, gridBagConstraints);
218:
219:                autoAdvance.setSelected(Settings.getInstance()
220:                        .getAutoJumpNextStatement());
221:                autoAdvance.setText("");
222:                autoAdvance
223:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
224:                autoAdvance
225:                        .setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
226:                autoAdvance.setIconTextGap(0);
227:                gridBagConstraints = new java.awt.GridBagConstraints();
228:                gridBagConstraints.gridx = 1;
229:                gridBagConstraints.gridy = 1;
230:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
231:                gridBagConstraints.insets = new java.awt.Insets(7, 7, 0, 11);
232:                add(autoAdvance, gridBagConstraints);
233:
234:                editorTabSizeLabel
235:                        .setText(ResourceMgr.getString("LblTabWidth"));
236:                editorTabSizeLabel.setToolTipText(ResourceMgr
237:                        .getDescription("LblTabWidth"));
238:                gridBagConstraints = new java.awt.GridBagConstraints();
239:                gridBagConstraints.gridx = 0;
240:                gridBagConstraints.gridy = 15;
241:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
242:                gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
243:                add(editorTabSizeLabel, gridBagConstraints);
244:
245:                tabSize.setHorizontalAlignment(javax.swing.JTextField.LEFT);
246:                tabSize.setText(Settings.getInstance().getProperty(
247:                        "workbench.editor.tabwidth", "2"));
248:                gridBagConstraints = new java.awt.GridBagConstraints();
249:                gridBagConstraints.gridx = 1;
250:                gridBagConstraints.gridy = 15;
251:                gridBagConstraints.gridwidth = 2;
252:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
253:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
254:                gridBagConstraints.insets = new java.awt.Insets(3, 11, 0, 15);
255:                add(tabSize, gridBagConstraints);
256:
257:                altDelimLabel.setText(ResourceMgr.getString("LblAltDelimit"));
258:                altDelimLabel.setToolTipText(ResourceMgr
259:                        .getDescription("LblAltDelimit"));
260:                gridBagConstraints = new java.awt.GridBagConstraints();
261:                gridBagConstraints.gridx = 0;
262:                gridBagConstraints.gridy = 11;
263:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
264:                gridBagConstraints.insets = new java.awt.Insets(4, 12, 0, 0);
265:                add(altDelimLabel, gridBagConstraints);
266:
267:                historySizeLabel.setText(ResourceMgr
268:                        .getString("LblHistorySize"));
269:                historySizeLabel.setToolTipText(ResourceMgr
270:                        .getDescription("LblHistorySize"));
271:                gridBagConstraints = new java.awt.GridBagConstraints();
272:                gridBagConstraints.gridx = 0;
273:                gridBagConstraints.gridy = 12;
274:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
275:                gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
276:                add(historySizeLabel, gridBagConstraints);
277:
278:                historySizeField.setText(Integer.toString(Settings
279:                        .getInstance().getMaxHistorySize()));
280:                gridBagConstraints = new java.awt.GridBagConstraints();
281:                gridBagConstraints.gridx = 1;
282:                gridBagConstraints.gridy = 12;
283:                gridBagConstraints.gridwidth = 2;
284:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
285:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
286:                gridBagConstraints.insets = new java.awt.Insets(4, 11, 0, 15);
287:                add(historySizeField, gridBagConstraints);
288:
289:                electricScrollLabel.setText(ResourceMgr
290:                        .getString("LblSettingElectricScroll"));
291:                electricScrollLabel.setToolTipText(ResourceMgr
292:                        .getDescription("LblSettingElectricScroll"));
293:                gridBagConstraints = new java.awt.GridBagConstraints();
294:                gridBagConstraints.gridx = 0;
295:                gridBagConstraints.gridy = 14;
296:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
297:                gridBagConstraints.insets = new java.awt.Insets(7, 12, 0, 0);
298:                add(electricScrollLabel, gridBagConstraints);
299:
300:                electricScroll.setText(Integer.toString(Settings.getInstance()
301:                        .getElectricScroll()));
302:                gridBagConstraints = new java.awt.GridBagConstraints();
303:                gridBagConstraints.gridx = 1;
304:                gridBagConstraints.gridy = 14;
305:                gridBagConstraints.gridwidth = 2;
306:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
307:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
308:                gridBagConstraints.insets = new java.awt.Insets(5, 11, 0, 15);
309:                add(electricScroll, gridBagConstraints);
310:
311:                rightClickMovesCursor.setSelected(Settings.getInstance()
312:                        .getRightClickMovesCursor());
313:                rightClickMovesCursor.setText(ResourceMgr
314:                        .getString("LblRightClickMove"));
315:                rightClickMovesCursor.setToolTipText(ResourceMgr
316:                        .getDescription("LblRightClickMove"));
317:                rightClickMovesCursor
318:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
319:                rightClickMovesCursor
320:                        .setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
321:                rightClickMovesCursor.setIconTextGap(5);
322:                gridBagConstraints = new java.awt.GridBagConstraints();
323:                gridBagConstraints.gridx = 2;
324:                gridBagConstraints.gridy = 1;
325:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
326:                gridBagConstraints.weightx = 1.0;
327:                gridBagConstraints.insets = new java.awt.Insets(6, 0, 0, 11);
328:                add(rightClickMovesCursor, gridBagConstraints);
329:
330:                editorFontLabel.setText(ResourceMgr.getString("LblEditorFont"));
331:                editorFontLabel.setToolTipText(ResourceMgr
332:                        .getDescription("LblEditorFont"));
333:                gridBagConstraints = new java.awt.GridBagConstraints();
334:                gridBagConstraints.gridx = 0;
335:                gridBagConstraints.gridy = 7;
336:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
337:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
338:                gridBagConstraints.insets = new java.awt.Insets(7, 12, 0, 0);
339:                add(editorFontLabel, gridBagConstraints);
340:                gridBagConstraints = new java.awt.GridBagConstraints();
341:                gridBagConstraints.gridx = 1;
342:                gridBagConstraints.gridy = 7;
343:                gridBagConstraints.gridwidth = 2;
344:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
345:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
346:                gridBagConstraints.insets = new java.awt.Insets(3, 11, 0, 15);
347:                add(editorFont, gridBagConstraints);
348:
349:                labelCloseSearch.setLabelFor(closePopup);
350:                labelCloseSearch.setText(ResourceMgr
351:                        .getString("TxtCloseCompletion"));
352:                labelCloseSearch.setToolTipText(ResourceMgr
353:                        .getDescription("TxtCloseCompletion"));
354:                gridBagConstraints = new java.awt.GridBagConstraints();
355:                gridBagConstraints.gridx = 0;
356:                gridBagConstraints.gridy = 2;
357:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
358:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
359:                gridBagConstraints.insets = new java.awt.Insets(4, 12, 0, 0);
360:                add(labelCloseSearch, gridBagConstraints);
361:
362:                closePopup.setSelected(Settings.getInstance()
363:                        .getCloseAutoCompletionWithSearch());
364:                closePopup.setText("");
365:                closePopup
366:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
367:                closePopup
368:                        .setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
369:                gridBagConstraints = new java.awt.GridBagConstraints();
370:                gridBagConstraints.gridx = 1;
371:                gridBagConstraints.gridy = 2;
372:                gridBagConstraints.gridwidth = 2;
373:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
374:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
375:                gridBagConstraints.weightx = 1.0;
376:                gridBagConstraints.insets = new java.awt.Insets(0, 7, 0, 11);
377:                add(closePopup, gridBagConstraints);
378:
379:                completionPasteCase
380:                        .setModel(new javax.swing.DefaultComboBoxModel(
381:                                new String[] { "Lowercase", "Uppercase",
382:                                        "As is" }));
383:                completionPasteCase.setToolTipText(ResourceMgr
384:                        .getDescription("LblPasteCase"));
385:                gridBagConstraints = new java.awt.GridBagConstraints();
386:                gridBagConstraints.gridx = 1;
387:                gridBagConstraints.gridy = 3;
388:                gridBagConstraints.gridwidth = 2;
389:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
390:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
391:                gridBagConstraints.insets = new java.awt.Insets(5, 11, 0, 15);
392:                add(completionPasteCase, gridBagConstraints);
393:
394:                pasteLabel.setLabelFor(completionPasteCase);
395:                pasteLabel.setText(ResourceMgr.getString("LblPasteCase"));
396:                pasteLabel.setToolTipText(ResourceMgr
397:                        .getDescription("LblPasteCase"));
398:                gridBagConstraints = new java.awt.GridBagConstraints();
399:                gridBagConstraints.gridx = 0;
400:                gridBagConstraints.gridy = 3;
401:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
402:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
403:                gridBagConstraints.insets = new java.awt.Insets(8, 12, 0, 0);
404:                add(pasteLabel, gridBagConstraints);
405:
406:                internalLineEndingLabel.setText(ResourceMgr
407:                        .getString("LblIntLineEnding"));
408:                internalLineEndingLabel.setToolTipText(ResourceMgr
409:                        .getDescription("LblIntLineEnding"));
410:                gridBagConstraints = new java.awt.GridBagConstraints();
411:                gridBagConstraints.gridx = 0;
412:                gridBagConstraints.gridy = 5;
413:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
414:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
415:                gridBagConstraints.insets = new java.awt.Insets(7, 12, 0, 0);
416:                add(internalLineEndingLabel, gridBagConstraints);
417:
418:                internalLineEnding.setToolTipText(ResourceMgr
419:                        .getDescription("LblIntLineEnding"));
420:                gridBagConstraints = new java.awt.GridBagConstraints();
421:                gridBagConstraints.gridx = 1;
422:                gridBagConstraints.gridy = 5;
423:                gridBagConstraints.gridwidth = 2;
424:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
425:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
426:                gridBagConstraints.insets = new java.awt.Insets(4, 11, 0, 15);
427:                add(internalLineEnding, gridBagConstraints);
428:
429:                externalLineEndingLabel.setText(ResourceMgr
430:                        .getString("LblExtLineEnding"));
431:                externalLineEndingLabel.setToolTipText(ResourceMgr
432:                        .getDescription("LblExtLineEnding"));
433:                gridBagConstraints = new java.awt.GridBagConstraints();
434:                gridBagConstraints.gridx = 0;
435:                gridBagConstraints.gridy = 6;
436:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
437:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
438:                gridBagConstraints.insets = new java.awt.Insets(7, 12, 0, 0);
439:                add(externalLineEndingLabel, gridBagConstraints);
440:
441:                externalLineEnding.setToolTipText(ResourceMgr
442:                        .getDescription("LblExtLineEnding"));
443:                gridBagConstraints = new java.awt.GridBagConstraints();
444:                gridBagConstraints.gridx = 1;
445:                gridBagConstraints.gridy = 6;
446:                gridBagConstraints.gridwidth = 2;
447:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
448:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
449:                gridBagConstraints.insets = new java.awt.Insets(4, 11, 0, 15);
450:                add(externalLineEnding, gridBagConstraints);
451:
452:                filesInHistoryLabel.setLabelFor(includeFilesInHistory);
453:                filesInHistoryLabel.setText(ResourceMgr
454:                        .getString("TxtHistoryIncFiles"));
455:                filesInHistoryLabel.setToolTipText(ResourceMgr
456:                        .getDescription("TxtHistoryIncFiles"));
457:                gridBagConstraints = new java.awt.GridBagConstraints();
458:                gridBagConstraints.gridx = 0;
459:                gridBagConstraints.gridy = 13;
460:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
461:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
462:                gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
463:                add(filesInHistoryLabel, gridBagConstraints);
464:
465:                includeFilesInHistory.setSelected(Settings.getInstance()
466:                        .getStoreFilesInHistory());
467:                includeFilesInHistory.setText("");
468:                includeFilesInHistory.setBorder(null);
469:                includeFilesInHistory
470:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
471:                includeFilesInHistory
472:                        .setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
473:                gridBagConstraints = new java.awt.GridBagConstraints();
474:                gridBagConstraints.gridx = 1;
475:                gridBagConstraints.gridy = 13;
476:                gridBagConstraints.gridwidth = 2;
477:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
478:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
479:                gridBagConstraints.weightx = 1.0;
480:                gridBagConstraints.insets = new java.awt.Insets(5, 10, 0, 11);
481:                add(includeFilesInHistory, gridBagConstraints);
482:                gridBagConstraints = new java.awt.GridBagConstraints();
483:                gridBagConstraints.gridx = 1;
484:                gridBagConstraints.gridy = 11;
485:                gridBagConstraints.gridwidth = 2;
486:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
487:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
488:                gridBagConstraints.insets = new java.awt.Insets(2, 10, 0, 5);
489:                add(alternateDelim, gridBagConstraints);
490:
491:                pasterOrderLabel.setLabelFor(completionColumnSort);
492:                pasterOrderLabel.setText(ResourceMgr.getString("LblPasteSort"));
493:                pasterOrderLabel.setToolTipText(ResourceMgr
494:                        .getDescription("LblPasteSort"));
495:                gridBagConstraints = new java.awt.GridBagConstraints();
496:                gridBagConstraints.gridx = 0;
497:                gridBagConstraints.gridy = 4;
498:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
499:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
500:                gridBagConstraints.insets = new java.awt.Insets(7, 12, 0, 0);
501:                add(pasterOrderLabel, gridBagConstraints);
502:
503:                completionColumnSort.setToolTipText(ResourceMgr
504:                        .getDescription("LblPasteSort"));
505:                gridBagConstraints = new java.awt.GridBagConstraints();
506:                gridBagConstraints.gridx = 1;
507:                gridBagConstraints.gridy = 4;
508:                gridBagConstraints.gridwidth = 2;
509:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
510:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
511:                gridBagConstraints.insets = new java.awt.Insets(4, 11, 0, 15);
512:                add(completionColumnSort, gridBagConstraints);
513:
514:                noWordSepLabel.setText(ResourceMgr.getString("LblNoWordSep"));
515:                noWordSepLabel.setToolTipText(ResourceMgr
516:                        .getDescription("LblNoWordSep"));
517:                gridBagConstraints = new java.awt.GridBagConstraints();
518:                gridBagConstraints.gridx = 0;
519:                gridBagConstraints.gridy = 16;
520:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
521:                gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
522:                add(noWordSepLabel, gridBagConstraints);
523:
524:                noWordSep.setHorizontalAlignment(javax.swing.JTextField.LEFT);
525:                noWordSep.setName("nowordsep"); // NOI18N
526:                gridBagConstraints = new java.awt.GridBagConstraints();
527:                gridBagConstraints.gridx = 1;
528:                gridBagConstraints.gridy = 16;
529:                gridBagConstraints.gridwidth = 2;
530:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
531:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
532:                gridBagConstraints.insets = new java.awt.Insets(3, 11, 0, 15);
533:                add(noWordSep, gridBagConstraints);
534:
535:                jPanel1.setLayout(new java.awt.FlowLayout(
536:                        java.awt.FlowLayout.LEFT));
537:
538:                errorColorLabel.setText(ResourceMgr
539:                        .getString("LblSelectErrorColor"));
540:                errorColorLabel.setToolTipText(ResourceMgr
541:                        .getDescription("LblSelectErrorColor"));
542:                jPanel1.add(errorColorLabel);
543:                jPanel1.add(errorColor);
544:
545:                selectionColorLabel.setText(ResourceMgr
546:                        .getString("LblSelectionColor"));
547:                selectionColorLabel.setToolTipText(ResourceMgr
548:                        .getDescription("LblSelectionColor"));
549:                jPanel1.add(selectionColorLabel);
550:                jPanel1.add(selectionColor);
551:
552:                currLineLabel
553:                        .setText(ResourceMgr.getString("LblCurrLineColor"));
554:                currLineLabel.setToolTipText(ResourceMgr
555:                        .getDescription("LblCurrLineColor"));
556:                jPanel1.add(currLineLabel);
557:                jPanel1.add(currLineColor);
558:
559:                gridBagConstraints = new java.awt.GridBagConstraints();
560:                gridBagConstraints.gridx = 0;
561:                gridBagConstraints.gridy = 17;
562:                gridBagConstraints.gridwidth = 3;
563:                gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL;
564:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
565:                gridBagConstraints.weighty = 1.0;
566:                gridBagConstraints.insets = new java.awt.Insets(0, 7, 0, 13);
567:                add(jPanel1, gridBagConstraints);
568:            }// </editor-fold>//GEN-END:initComponents
569:
570:            // Variables declaration - do not modify//GEN-BEGIN:variables
571:            private javax.swing.JLabel altDelimLabel;
572:            private workbench.gui.components.DelimiterDefinitionPanel alternateDelim;
573:            private javax.swing.JCheckBox autoAdvance;
574:            private javax.swing.JLabel autoAdvanceLabel;
575:            private javax.swing.JCheckBox closePopup;
576:            private javax.swing.JComboBox completionColumnSort;
577:            private javax.swing.JComboBox completionPasteCase;
578:            private workbench.gui.components.WbColorPicker currLineColor;
579:            private javax.swing.JLabel currLineLabel;
580:            private workbench.gui.components.WbFontPicker editorFont;
581:            private javax.swing.JLabel editorFontLabel;
582:            private javax.swing.JLabel editorTabSizeLabel;
583:            private javax.swing.JTextField electricScroll;
584:            private javax.swing.JLabel electricScrollLabel;
585:            private workbench.gui.components.WbColorPicker errorColor;
586:            private javax.swing.JLabel errorColorLabel;
587:            private javax.swing.JComboBox externalLineEnding;
588:            private javax.swing.JLabel externalLineEndingLabel;
589:            private javax.swing.JLabel filesInHistoryLabel;
590:            private javax.swing.JTextField historySizeField;
591:            private javax.swing.JLabel historySizeLabel;
592:            private javax.swing.JCheckBox includeFilesInHistory;
593:            private javax.swing.JComboBox internalLineEnding;
594:            private javax.swing.JLabel internalLineEndingLabel;
595:            private javax.swing.JPanel jPanel1;
596:            private javax.swing.JLabel labelCloseSearch;
597:            private javax.swing.JTextField noWordSep;
598:            private javax.swing.JLabel noWordSepLabel;
599:            private javax.swing.JLabel pasteLabel;
600:            private javax.swing.JLabel pasterOrderLabel;
601:            private javax.swing.JCheckBox rightClickMovesCursor;
602:            private workbench.gui.components.WbColorPicker selectionColor;
603:            private javax.swing.JLabel selectionColorLabel;
604:            private javax.swing.JTextField tabSize;
605:            // End of variables declaration//GEN-END:variables
606:
607:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.