001: /*
002: * Sun Public License Notice
003: *
004: * The contents of this file are subject to the Sun Public License
005: * Version 1.0 (the "License"). You may not use this file except in
006: * compliance with the License. A copy of the License is available at
007: * http://www.sun.com/
008: *
009: * The Original Code is NetBeans. The Initial Developer of the Original
010: * Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun
011: * Microsystems, Inc. All Rights Reserved.
012: */
013:
014: package org.netbeans.editor;
015:
016: import java.awt.Color;
017: import java.awt.Dimension;
018: import java.awt.Font;
019: import java.awt.Insets;
020: import java.awt.event.InputEvent;
021: import java.awt.event.KeyEvent;
022: import java.util.HashMap;
023: import java.util.Map;
024:
025: import javax.swing.KeyStroke;
026: import javax.swing.UIManager;
027:
028: /**
029: * Default values for the settings. They are used by
030: * <tt>BaseSettingsInitializer</tt> to initialize the settings with the
031: * default values. They can be also used for substitution if the value of the
032: * particular setting is unacceptable.
033: *
034: * @author Miloslav Metelka
035: * @version 1.00
036: */
037:
038: public class SettingsDefaults {
039:
040: private static final Integer INTEGER_MAX_VALUE = new Integer(
041: Integer.MAX_VALUE);
042:
043: // Caret color
044: public static final Color defaultCaretColor = Color.black;
045:
046: // Empty coloring - it doesn't change font or colors
047: public static final Coloring emptyColoring = new Coloring(null,
048: null, null);
049:
050: // Default coloring
051: public static final Font defaultFont = new Font("Monospaced",
052: Font.PLAIN, 12); // NOI18N
053: public static final Color defaultForeColor = Color.black;
054: public static final Color defaultBackColor = Color.white;
055: public static final Coloring defaultColoring = new Coloring(
056: defaultFont, defaultForeColor, defaultBackColor);
057: // line number coloring
058: public static final Color defaultLineNumberForeColor = new Color(
059: 128, 64, 64);
060: public static final Color defaultLineNumberBackColor = new Color(
061: 224, 224, 224);
062: public static final Coloring defaultLineNumberColoring = new Coloring(
063: null, defaultLineNumberForeColor,
064: defaultLineNumberBackColor);
065: // caret selection coloring
066: public static final Color defaultSelectionForeColor = Color.white;
067: public static final Color defaultSelectionBackColor = Color.lightGray;
068: public static final Coloring defaultSelectionColoring = new Coloring(
069: null, defaultSelectionForeColor, defaultSelectionBackColor);
070: // Highlight search coloring
071: public static final Color defaultHighlightSearchForeColor = Color.black;
072: public static final Color defaultHighlightSearchBackColor = new Color(
073: 255, 255, 128);
074: public static final Coloring defaultHighlightSearchColoring = new Coloring(
075: null, defaultHighlightSearchForeColor,
076: defaultHighlightSearchBackColor);
077: // Incremental search coloring
078: public static final Color defaultIncSearchForeColor = Color.black;
079: public static final Color defaultIncSearchBackColor = new Color(
080: 255, 107, 138);
081: public static final Coloring defaultIncSearchColoring = new Coloring(
082: null, defaultIncSearchForeColor, defaultIncSearchBackColor);
083: // Bookmark coloring
084: public static final Color defaultBookmarkForeColor = Color.black;
085: public static final Color defaultBookmarkBackColor = new Color(184,
086: 230, 230);
087: public static final Coloring defaultBookmarkColoring = new Coloring(
088: null, defaultBookmarkForeColor, defaultBookmarkBackColor);
089: // Guarded blocks coloring
090: public static final Color defaultGuardedForeColor = null;
091: public static final Color defaultGuardedBackColor = new Color(225,
092: 236, 247);
093: public static final Coloring defaultGuardedColoring = new Coloring(
094: null, defaultGuardedForeColor, defaultGuardedBackColor);
095:
096: public static final Color defaultStatusBarForeColor = null;
097: public static final Color defaultStatusBarBackColor = UIManager
098: .getColor("ScrollPane.background"); // NOI18N
099: public static final Coloring defaultStatusBarColoring = new Coloring(
100: null, defaultStatusBarForeColor, defaultStatusBarBackColor);
101:
102: public static final Color defaultStatusBarBoldForeColor = Color.white;
103: public static final Color defaultStatusBarBoldBackColor = Color.red;
104: public static final Coloring defaultStatusBarBoldColoring = new Coloring(
105: null, defaultStatusBarBoldForeColor,
106: defaultStatusBarBoldBackColor);
107:
108: public static final Integer defaultCaretBlinkRate = new Integer(300);
109: public static final Integer defaultTabSize = new Integer(8);
110: public static final Integer defaultSpacesPerTab = new Integer(4);
111: public static final Integer defaultShiftWidth = new Integer(4); // usually
112: // not used as there's a Evaluator for shift width
113:
114: public static final Integer defaultStatusBarCaretDelay = new Integer(
115: 200);
116:
117: public static final Color defaultTextLimitLineColor = new Color(
118: 255, 235, 235);
119: public static final Integer defaultTextLimitWidth = new Integer(80);
120:
121: public static final Acceptor defaultIdentifierAcceptor = AcceptorFactory.LETTER_DIGIT;
122: public static final Acceptor defaultWhitespaceAcceptor = AcceptorFactory.WHITESPACE;
123:
124: public static final Float defaultLineHeightCorrection = new Float(
125: 1.0f);
126:
127: public static final Insets defaultLineNumberMargin = new Insets(0,
128: 3, 0, 3);
129: public static final Integer defaultTextLeftMarginWidth = new Integer(
130: 2);
131: public static final Insets defaultScrollJumpInsets = new Insets(-5,
132: -10, -5, -30);
133: public static final Insets defaultScrollFindInsets = new Insets(0,
134: -0, -10, -0);
135: public static final Dimension defaultComponentSizeIncrement = new Dimension(
136: -5, -30);
137:
138: public static final Integer defaultReadBufferSize = new Integer(
139: 16384);
140: public static final Integer defaultWriteBufferSize = new Integer(
141: 16384);
142: public static final Integer defaultReadMarkDistance = new Integer(
143: 180);
144: public static final Integer defaultMarkDistance = new Integer(100);
145: public static final Integer defaultMaxMarkDistance = new Integer(
146: 150);
147: public static final Integer defaultMinMarkDistance = new Integer(50);
148: public static final Integer defaultSyntaxUpdateBatchSize = new Integer(
149: defaultMarkDistance.intValue() * 7);
150: public static final Integer defaultLineBatchSize = new Integer(2);
151:
152: public static final Boolean defaultExpandTabs = Boolean.TRUE;
153:
154: public static final String defaultCaretTypeInsertMode = BaseCaret.LINE_CARET;
155: public static final String defaultCaretTypeOverwriteMode = BaseCaret.BLOCK_CARET;
156: public static final Color defaultCaretColorInsertMode = Color.black;
157: public static final Color defaultCaretColorOvwerwriteMode = Color.black;
158: public static final Boolean defaultCaretItalicInsertMode = Boolean.FALSE;
159: public static final Boolean defaultCaretItalicOverwriteMode = Boolean.FALSE;
160: public static final Acceptor defaultAbbrevExpandAcceptor = AcceptorFactory.SPACE_NL;
161: public static final Acceptor defaultAbbrevAddTypedCharAcceptor = AcceptorFactory.NL;
162: public static final Acceptor defaultAbbrevResetAcceptor = AcceptorFactory.NON_JAVA_IDENTIFIER;
163: public static final Map defaultAbbrevMap = new HashMap();
164:
165: public static final Map defaultMacroMap = new HashMap();
166:
167: public static final Boolean defaultStatusBarVisible = Boolean.TRUE;
168:
169: public static final Boolean defaultLineNumberVisible = Boolean.TRUE;
170: public static final Boolean defaultPrintLineNumberVisible = Boolean.TRUE;
171: public static final Boolean defaultTextLimitLineVisible = Boolean.TRUE;
172: public static final Boolean defaultHomeKeyColumnOne = Boolean.FALSE;
173: public static final Boolean defaultWordMoveNewlineStop = Boolean.TRUE;
174: public static final Boolean defaultInputMethodsEnabled = Boolean.TRUE;
175: public static final Boolean defaultFindHighlightSearch = Boolean.TRUE;
176: public static final Boolean defaultFindIncSearch = Boolean.TRUE;
177: public static final Boolean defaultFindBackwardSearch = Boolean.FALSE;
178: public static final Boolean defaultFindWrapSearch = Boolean.TRUE;
179: public static final Boolean defaultFindMatchCase = Boolean.FALSE;
180: public static final Boolean defaultFindWholeWords = Boolean.FALSE;
181: public static final Boolean defaultFindRegExp = Boolean.FALSE;
182: public static final Integer defaultFindHistorySize = new Integer(30);
183: public static final Integer defaultWordMatchSearchLen = INTEGER_MAX_VALUE;
184: public static final Boolean defaultWordMatchWrapSearch = Boolean.TRUE;
185: public static final Boolean defaultWordMatchMatchOneChar = Boolean.TRUE;
186: public static final Boolean defaultWordMatchMatchCase = Boolean.FALSE;
187: public static final Boolean defaultWordMatchSmartCase = Boolean.FALSE;
188:
189: public static final String[] defaultColoringNames = new String[] {
190: SettingsNames.DEFAULT_COLORING,
191: SettingsNames.LINE_NUMBER_COLORING,
192: SettingsNames.GUARDED_COLORING,
193: SettingsNames.SELECTION_COLORING,
194: SettingsNames.HIGHLIGHT_SEARCH_COLORING,
195: SettingsNames.INC_SEARCH_COLORING,
196: SettingsNames.BOOKMARK_COLORING,
197: SettingsNames.STATUS_BAR_COLORING,
198: SettingsNames.STATUS_BAR_BOLD_COLORING };
199:
200: public static final MultiKeyBinding[] defaultKeyBindings = new MultiKeyBinding[] {
201: new MultiKeyBinding((KeyStroke) null, // this assigns the default
202: // action to keymap
203: BaseKit.defaultKeyTypedAction),
204: new MultiKeyBinding(KeyStroke.getKeyStroke(
205: KeyEvent.VK_ENTER, 0), BaseKit.insertBreakAction),
206: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_TAB,
207: 0), BaseKit.insertTabAction),
208: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_TAB,
209: InputEvent.SHIFT_MASK), BaseKit.removeTabAction),
210: new MultiKeyBinding(KeyStroke.getKeyStroke(
211: KeyEvent.VK_BACK_SPACE, 0),
212: BaseKit.deletePrevCharAction),
213: new MultiKeyBinding(KeyStroke.getKeyStroke(
214: KeyEvent.VK_BACK_SPACE, InputEvent.SHIFT_MASK),
215: BaseKit.deletePrevCharAction),
216: /*
217: * new MultiKeyBinding( KeyStroke.getKeyStroke(KeyEvent.VK_H,
218: * InputEvent.CTRL_MASK | InputEvent.SHIFT_MASK),
219: * BaseKit.deletePrevCharAction ),
220: */new MultiKeyBinding(KeyStroke.getKeyStroke(
221: KeyEvent.VK_DELETE, 0),
222: BaseKit.deleteNextCharAction),
223: new MultiKeyBinding(KeyStroke.getKeyStroke(
224: KeyEvent.VK_RIGHT, 0), BaseKit.forwardAction),
225: new MultiKeyBinding(KeyStroke.getKeyStroke(
226: KeyEvent.VK_KP_RIGHT, 0), // keypad
227: // right
228: BaseKit.forwardAction),
229: new MultiKeyBinding(KeyStroke.getKeyStroke(
230: KeyEvent.VK_RIGHT, InputEvent.SHIFT_MASK),
231: BaseKit.selectionForwardAction),
232: new MultiKeyBinding(KeyStroke.getKeyStroke(
233: KeyEvent.VK_RIGHT, InputEvent.CTRL_MASK),
234: BaseKit.nextWordAction),
235: new MultiKeyBinding(KeyStroke.getKeyStroke(
236: KeyEvent.VK_RIGHT, InputEvent.SHIFT_MASK
237: | InputEvent.CTRL_MASK),
238: BaseKit.selectionNextWordAction),
239: new MultiKeyBinding(KeyStroke.getKeyStroke(
240: KeyEvent.VK_LEFT, 0), BaseKit.backwardAction),
241: new MultiKeyBinding(KeyStroke.getKeyStroke(
242: KeyEvent.VK_KP_LEFT, 0), // keypad
243: // left
244: BaseKit.backwardAction),
245: new MultiKeyBinding(KeyStroke.getKeyStroke(
246: KeyEvent.VK_LEFT, InputEvent.SHIFT_MASK),
247: BaseKit.selectionBackwardAction),
248: new MultiKeyBinding(KeyStroke.getKeyStroke(
249: KeyEvent.VK_LEFT, InputEvent.CTRL_MASK),
250: BaseKit.previousWordAction),
251: new MultiKeyBinding(KeyStroke.getKeyStroke(
252: KeyEvent.VK_LEFT, InputEvent.SHIFT_MASK
253: | InputEvent.CTRL_MASK),
254: BaseKit.selectionPreviousWordAction),
255: new MultiKeyBinding(KeyStroke.getKeyStroke(
256: KeyEvent.VK_DOWN, 0), BaseKit.downAction),
257: new MultiKeyBinding(KeyStroke.getKeyStroke(
258: KeyEvent.VK_KP_DOWN, 0), // keypad
259: // down
260: BaseKit.downAction),
261: new MultiKeyBinding(KeyStroke.getKeyStroke(
262: KeyEvent.VK_DOWN, InputEvent.SHIFT_MASK),
263: BaseKit.selectionDownAction),
264: new MultiKeyBinding(KeyStroke.getKeyStroke(
265: KeyEvent.VK_DOWN, InputEvent.CTRL_MASK),
266: BaseKit.scrollUpAction),
267: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_UP,
268: 0), BaseKit.upAction),
269: new MultiKeyBinding(KeyStroke.getKeyStroke(
270: KeyEvent.VK_KP_UP, 0), // keypad
271: // up
272: BaseKit.upAction),
273: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_UP,
274: InputEvent.SHIFT_MASK), BaseKit.selectionUpAction),
275: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_UP,
276: InputEvent.CTRL_MASK), BaseKit.scrollDownAction),
277: new MultiKeyBinding(KeyStroke.getKeyStroke(
278: KeyEvent.VK_PAGE_DOWN, 0), BaseKit.pageDownAction),
279: new MultiKeyBinding(KeyStroke.getKeyStroke(
280: KeyEvent.VK_PAGE_DOWN, InputEvent.SHIFT_MASK),
281: BaseKit.selectionPageDownAction),
282: new MultiKeyBinding(KeyStroke.getKeyStroke(
283: KeyEvent.VK_PAGE_UP, 0), BaseKit.pageUpAction),
284: new MultiKeyBinding(KeyStroke.getKeyStroke(
285: KeyEvent.VK_PAGE_UP, InputEvent.SHIFT_MASK),
286: BaseKit.selectionPageUpAction),
287: new MultiKeyBinding(KeyStroke.getKeyStroke(
288: KeyEvent.VK_HOME, 0), BaseKit.beginLineAction),
289: new MultiKeyBinding(KeyStroke.getKeyStroke(
290: KeyEvent.VK_HOME, InputEvent.SHIFT_MASK),
291: BaseKit.selectionBeginLineAction),
292: new MultiKeyBinding(KeyStroke.getKeyStroke(
293: KeyEvent.VK_HOME, InputEvent.CTRL_MASK),
294: BaseKit.beginAction),
295: new MultiKeyBinding(KeyStroke.getKeyStroke(
296: KeyEvent.VK_HOME, InputEvent.SHIFT_MASK
297: | InputEvent.CTRL_MASK),
298: BaseKit.selectionBeginAction),
299: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_END,
300: 0), BaseKit.endLineAction),
301: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_END,
302: InputEvent.SHIFT_MASK),
303: BaseKit.selectionEndLineAction),
304: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_END,
305: InputEvent.CTRL_MASK), BaseKit.endAction),
306: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_END,
307: InputEvent.SHIFT_MASK | InputEvent.CTRL_MASK),
308: BaseKit.selectionEndAction),
309:
310: // clipboard bindings
311: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_C,
312: InputEvent.CTRL_MASK), BaseKit.copyAction),
313: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_X,
314: InputEvent.CTRL_MASK), BaseKit.cutAction),
315: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_V,
316: InputEvent.CTRL_MASK), BaseKit.pasteAction),
317: new MultiKeyBinding(KeyStroke.getKeyStroke(
318: KeyEvent.VK_INSERT, InputEvent.CTRL_MASK),
319: BaseKit.copyAction),
320: new MultiKeyBinding(KeyStroke.getKeyStroke(
321: KeyEvent.VK_DELETE, InputEvent.SHIFT_MASK),
322: BaseKit.cutAction),
323: new MultiKeyBinding(KeyStroke.getKeyStroke(
324: KeyEvent.VK_INSERT, InputEvent.SHIFT_MASK),
325: BaseKit.pasteAction),
326:
327: // undo and redo bindings - handled at system level
328: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_Z,
329: InputEvent.CTRL_MASK), BaseKit.undoAction),
330: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_Y,
331: InputEvent.CTRL_MASK), BaseKit.redoAction),
332:
333: // other bindings
334: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_A,
335: InputEvent.CTRL_MASK), BaseKit.selectAllAction),
336: new MultiKeyBinding(new KeyStroke[] {
337: KeyStroke.getKeyStroke(KeyEvent.VK_U,
338: InputEvent.ALT_MASK),
339: KeyStroke.getKeyStroke(KeyEvent.VK_E, 0), },
340: BaseKit.endWordAction),
341: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_W,
342: InputEvent.CTRL_MASK), BaseKit.removeWordAction),
343: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_U,
344: InputEvent.CTRL_MASK),
345: BaseKit.removeLineBeginAction),
346: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_E,
347: InputEvent.CTRL_MASK), BaseKit.removeLineAction),
348: new MultiKeyBinding(KeyStroke.getKeyStroke(
349: KeyEvent.VK_INSERT, 0),
350: BaseKit.toggleTypingModeAction),
351: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_F2,
352: InputEvent.CTRL_MASK), BaseKit.toggleBookmarkAction),
353: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_F2,
354: 0), BaseKit.gotoNextBookmarkAction),
355: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_F3,
356: 0), BaseKit.findNextAction),
357: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_F3,
358: InputEvent.SHIFT_MASK), BaseKit.findPreviousAction),
359: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_F3,
360: InputEvent.CTRL_MASK), BaseKit.findSelectionAction),
361: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_H,
362: InputEvent.ALT_MASK | InputEvent.SHIFT_MASK),
363: BaseKit.toggleHighlightSearchAction),
364: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_L,
365: InputEvent.CTRL_MASK), BaseKit.wordMatchNextAction),
366: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_K,
367: InputEvent.CTRL_MASK), BaseKit.wordMatchPrevAction),
368: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_T,
369: InputEvent.CTRL_MASK), BaseKit.shiftLineRightAction),
370: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_D,
371: InputEvent.CTRL_MASK), BaseKit.shiftLineLeftAction),
372: new MultiKeyBinding(KeyStroke.getKeyStroke(
373: KeyEvent.VK_SPACE, InputEvent.SHIFT_MASK),
374: BaseKit.abbrevResetAction),
375: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_C,
376: InputEvent.CTRL_MASK | InputEvent.SHIFT_MASK),
377: BaseKit.annotationsCyclingAction),
378:
379: new MultiKeyBinding(new KeyStroke[] {
380: KeyStroke.getKeyStroke(KeyEvent.VK_U,
381: InputEvent.ALT_MASK),
382: KeyStroke.getKeyStroke(KeyEvent.VK_T, 0), },
383: BaseKit.adjustWindowTopAction),
384: new MultiKeyBinding(new KeyStroke[] {
385: KeyStroke.getKeyStroke(KeyEvent.VK_U,
386: InputEvent.ALT_MASK),
387: KeyStroke.getKeyStroke(KeyEvent.VK_M, 0), },
388: BaseKit.adjustWindowCenterAction),
389: new MultiKeyBinding(new KeyStroke[] {
390: KeyStroke.getKeyStroke(KeyEvent.VK_U,
391: InputEvent.ALT_MASK),
392: KeyStroke.getKeyStroke(KeyEvent.VK_B, 0), },
393: BaseKit.adjustWindowBottomAction),
394:
395: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_T,
396: InputEvent.SHIFT_MASK | InputEvent.ALT_MASK),
397: BaseKit.adjustCaretTopAction),
398: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_M,
399: InputEvent.SHIFT_MASK | InputEvent.ALT_MASK),
400: BaseKit.adjustCaretCenterAction),
401: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_B,
402: InputEvent.SHIFT_MASK | InputEvent.ALT_MASK),
403: BaseKit.adjustCaretBottomAction),
404:
405: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_F,
406: InputEvent.CTRL_MASK | InputEvent.SHIFT_MASK),
407: BaseKit.formatAction),
408: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_J,
409: InputEvent.ALT_MASK),
410: BaseKit.selectIdentifierAction),
411: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_K,
412: InputEvent.ALT_MASK), BaseKit.jumpListPrevAction),
413: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_L,
414: InputEvent.ALT_MASK), BaseKit.jumpListNextAction),
415: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_K,
416: InputEvent.SHIFT_MASK | InputEvent.ALT_MASK),
417: BaseKit.jumpListPrevComponentAction),
418: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_L,
419: InputEvent.SHIFT_MASK | InputEvent.ALT_MASK),
420: BaseKit.jumpListNextComponentAction),
421: new MultiKeyBinding(new KeyStroke[] {
422: KeyStroke.getKeyStroke(KeyEvent.VK_U,
423: InputEvent.ALT_MASK),
424: KeyStroke.getKeyStroke(KeyEvent.VK_U, 0), },
425: BaseKit.toUpperCaseAction),
426: new MultiKeyBinding(new KeyStroke[] {
427: KeyStroke.getKeyStroke(KeyEvent.VK_U,
428: InputEvent.ALT_MASK),
429: KeyStroke.getKeyStroke(KeyEvent.VK_L, 0), },
430: BaseKit.toLowerCaseAction),
431: new MultiKeyBinding(new KeyStroke[] {
432: KeyStroke.getKeyStroke(KeyEvent.VK_U,
433: InputEvent.ALT_MASK),
434: KeyStroke.getKeyStroke(KeyEvent.VK_R, 0), },
435: BaseKit.switchCaseAction),
436:
437: new MultiKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_M,
438: InputEvent.CTRL_MASK),
439: BaseKit.selectNextParameterAction),
440:
441: new MultiKeyBinding(new KeyStroke[] {
442: KeyStroke.getKeyStroke(KeyEvent.VK_J,
443: InputEvent.CTRL_MASK),
444: KeyStroke.getKeyStroke(KeyEvent.VK_S, 0), },
445: BaseKit.startMacroRecordingAction),
446:
447: new MultiKeyBinding(new KeyStroke[] {
448: KeyStroke.getKeyStroke(KeyEvent.VK_J,
449: InputEvent.CTRL_MASK),
450: KeyStroke.getKeyStroke(KeyEvent.VK_E, 0), },
451: BaseKit.stopMacroRecordingAction), };
452: }
|