001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041:
042: package org.netbeans.editor.ext;
043:
044: import org.netbeans.editor.SettingsNames;
045:
046: /**
047: * Names of the extended editor settings.
048: *
049: * @author Miloslav Metelka
050: * @version 1.00
051: */
052:
053: public class ExtSettingsNames extends SettingsNames {
054:
055: /** List of the action names that should be shown in the popup menu.
056: * Null name means separator.
057: * Values: java.util.List containing java.lang.String instances
058: */
059: public static final String POPUP_MENU_ACTION_NAME_LIST = "popup-menu-action-name-list"; // NOI18N
060:
061: /** List of the action names that should be shown in the popup menu
062: * when JEditorPane is shown in the dialogs. It corresponds
063: * Null name means separator.
064: * Values: java.util.List containing java.lang.String instances
065: */
066: public static final String DIALOG_POPUP_MENU_ACTION_NAME_LIST = "dialog-popup-menu-action-name-list"; // NOI18N
067:
068: /** Whether popup menu will be displayed on mouse right-click or not.
069: * It's set to true by default.
070: * Values: java.lang.Boolean
071: */
072: public static final String POPUP_MENU_ENABLED = "popup-menu-enabled"; // NOI18N
073:
074: /** Highlight the row where the caret currently is. The ExtCaret must be used.
075: * Values: java.lang.Boolean
076: */
077: public static final String HIGHLIGHT_CARET_ROW = "highlight-caret-row"; // NOI18N
078:
079: /** Highlight the matching brace (if the caret currently stands after the brace).
080: * The ExtCaret must be used.
081: * Values: java.lang.Boolean
082: */
083: public static final String HIGHLIGHT_MATCH_BRACE = "highlight-match-brace"; // NOI18N
084:
085: /** Coloring used to highlight the row where the caret resides */
086: public static final String HIGHLIGHT_CARET_ROW_COLORING = "highlight-caret-row"; // NOI18N
087:
088: /** Coloring used to highlight the matching brace */
089: public static final String HIGHLIGHT_MATCH_BRACE_COLORING = "highlight-match-brace"; // NOI18N
090:
091: /** Delay (milliseconds) after which the matching brace
092: * will be updated. This is intended to eliminate flicker
093: * if the user holds the arrow key pressed.
094: */
095: public static final String HIGHLIGHT_MATCH_BRACE_DELAY = "highlight-match-brace-delay"; // NOI18N
096:
097: /** Whether the fast and simple matching should be used for higlighting
098: * the matching brace. Its disadvantage is that it doesn't ignore the comments
099: * and string and character constants in the search.
100: */
101: public static final String CARET_SIMPLE_MATCH_BRACE = "caret-simple-match-brace"; // NOI18N
102:
103: /** Whether the code completion window should popup automatically.
104: * Values: java.lang.Boolean
105: */
106: public static final String COMPLETION_AUTO_POPUP = "completion-auto-popup"; // NOI18N
107:
108: /** Whether the code completion query search will be case sensitive
109: * Values: java.lang.Boolean
110: */
111: public static final String COMPLETION_CASE_SENSITIVE = "completion-case-sensitive"; // NOI18N
112:
113: /** Whether the code completion sorting will be natural
114: * Values: java.lang.Boolean
115: */
116: public static final String COMPLETION_NATURAL_SORT = "completion-natural-sort"; // NOI18N
117:
118: /** Whether perform instant substitution, if the search result contains only one item
119: * Values: java.lang.Boolean
120: */
121: public static final String COMPLETION_INSTANT_SUBSTITUTION = "completion-instant-substitution"; // NOI18N
122:
123: /** The delay after which the completion window is shown automatically.
124: * Values: java.lang.Integer
125: */
126: public static final String COMPLETION_AUTO_POPUP_DELAY = "completion-auto-popup-delay"; // NOI18N
127:
128: /** The delay after which the completion window is refreshed.
129: * Values: java.lang.Integer
130: */
131: public static final String COMPLETION_REFRESH_DELAY = "completion-refresh-delay"; // NOI18N
132:
133: /** The minimum size of the completion pane component.
134: * Values: java.awt.Dimension
135: */
136: public static final String COMPLETION_PANE_MIN_SIZE = "completion-pane-min-size"; // NOI18N
137:
138: /** The maximum size of the completion pane component.
139: * Values: java.awt.Dimension
140: */
141: public static final String COMPLETION_PANE_MAX_SIZE = "completion-pane-max-size"; // NOI18N
142:
143: /** Acceptor sensitive to characters that cause that
144: * that the current line will be reformatted immediately.
145: */
146: public static final String INDENT_HOT_CHARS_ACCEPTOR = "indent-hot-chars-acceptor"; // NOI18N
147:
148: /** Whether lines should be indented on an indent hot key if there is non whitespace before
149: * the typed hot key. See editor issue #10771.
150: * Values: java.lang.Boolean
151: */
152: public static final String REINDENT_WITH_TEXT_BEFORE = "reindent-with-text-before"; // NOI18N
153:
154: /** Whether the fast import should offer packages instead of classes
155: * Values: java.lang.Integer
156: */
157: public static final String FAST_IMPORT_SELECTION = "fast-import-selection"; // NOI18N
158:
159: /** Whether the fast import should offer packages instead of classes
160: * Values: java.lang.Boolean
161: * @deprecated replaced by FAST_IMPORT_SELECTION
162: */
163: public static final String FAST_IMPORT_PACKAGE = "fast-import-package"; // NOI18N
164:
165: /** Background color of javaDoc popup window
166: * Values: java.awt.Color
167: */
168: public static final String JAVADOC_BG_COLOR = "javadoc-bg-color"; //NOI18N
169:
170: /** The delay after which the javaDoc window is shown automatically.
171: * Values: java.lang.Integer
172: */
173: public static final String JAVADOC_AUTO_POPUP_DELAY = "javadoc-auto-popup-delay"; //NOI18N
174:
175: /** The preferred size of javaDoc popup window
176: * Values: java.awt.Dimension
177: */
178: public static final String JAVADOC_PREFERRED_SIZE = "javadoc-preferred-size"; //NOI18N
179:
180: /** Whether the javaDoc window should popup automatically.
181: * Values: java.lang.Boolean
182: */
183: public static final String JAVADOC_AUTO_POPUP = "javadoc-auto-popup"; // NOI18N
184:
185: /** Whether show deprecated members in code completion popup window
186: * Values: java.lang.Boolean
187: */
188: public static final String SHOW_DEPRECATED_MEMBERS = "show-deprecated-members"; // NOI18N
189:
190: /** Two levels of performing auto update of Code Completion DB
191: * ALWAYS - PD is updated automatically after mounting a new filesystem
192: * NEVER - PD is never updated after mounting a new filesystem
193: */
194: public static final String ALWAYS = "pd_always";//NOI18N
195: public static final String NEVER = "pd_never";//NOI18N
196:
197: }
|