KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > editor > ext > java > JavaSettingsNames


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.editor.ext.java;
21
22 import org.netbeans.editor.ext.ExtSettingsNames;
23
24 /**
25 * Names of the java editor settings.
26 *
27 * @author Miloslav Metelka
28 * @version 1.00
29 */

30
31 public class JavaSettingsNames extends ExtSettingsNames {
32
33     /** Whether insert extra space before the parenthesis or not.
34     * Values: java.lang.Boolean instances
35     * Effect: function(a)
36     * becomes (when set to true)
37     * function (a)
38     */

39     public static final String JavaDoc JAVA_FORMAT_SPACE_BEFORE_PARENTHESIS
40     = "java-format-space-before-parenthesis"; // NOI18N
41

42     /** Whether insert space after the comma inside the parameter list.
43     * Values: java.lang.Boolean instances
44     * Effect: function(a,b)
45     * becomes (when set to true)
46     * function(a, b)
47     *
48     */

49     public static final String JavaDoc JAVA_FORMAT_SPACE_AFTER_COMMA
50     = "java-format-space-after-comma"; // NOI18N
51

52     /** Whether insert extra new-line before the compound bracket or not.
53     * Values: java.lang.Boolean instances
54     * Effect: if (test) {
55     * function();
56     * }
57     * becomes (when set to true)
58     * if (test)
59     * {
60     * function();
61     * }
62     */

63     public static final String JavaDoc JAVA_FORMAT_NEWLINE_BEFORE_BRACE
64     = "java-format-newline-before-brace"; // NOI18N
65

66     /** Add one more space to the begining of each line
67     * in the multi-line comment if it's not already there.
68     * Values: java.lang.Boolean
69     * Effect: For example in java:
70     *
71     * /* this is
72     * * multiline comment
73     * *\/
74     *
75     * becomes (when set to true)
76     *
77     * /* this is
78     * * multiline comment
79     * *\/
80     */

81     public static final String JavaDoc JAVA_FORMAT_LEADING_SPACE_IN_COMMENT
82     = "java-format-leading-space-in-comment"; // NOI18N
83

84     /** Whether the '*' should be added at the new line
85      * in comment.
86      */

87     public static final String JavaDoc JAVA_FORMAT_LEADING_STAR_IN_COMMENT
88     = "java-format-leading-star-in-comment"; // NOI18N
89

90     /**
91      * How many spaces should be added to the statement that continues
92      * on the next line.
93      */

94     public static final String JavaDoc JAVA_FORMAT_STATEMENT_CONTINUATION_INDENT
95         = "java-format-statement-continuation-indent"; // NOI18N
96

97     /** Collapse methods by default */
98     public static final String JavaDoc CODE_FOLDING_COLLAPSE_METHOD = "code-folding-collapse-method"; //NOI18N
99

100     /** Collapse inner classes by default */
101     public static final String JavaDoc CODE_FOLDING_COLLAPSE_INNERCLASS = "code-folding-collapse-innerclass"; //NOI18N
102

103     /** Collapse import section default */
104     public static final String JavaDoc CODE_FOLDING_COLLAPSE_IMPORT = "code-folding-collapse-import"; //NOI18N
105

106     /** Collapse javadoc comment by default */
107     public static final String JavaDoc CODE_FOLDING_COLLAPSE_JAVADOC = "code-folding-collapse-javadoc"; //NOI18N
108

109     /** Collapse initial comment by default */
110     public static final String JavaDoc CODE_FOLDING_COLLAPSE_INITIAL_COMMENT = "code-folding-collapse-initial-comment"; //NOI18N
111

112     /** Whether go to class is case sensitive */
113     public static final String JavaDoc GOTO_CLASS_CASE_SENSITIVE = "goto-class-case-sensitive"; //NOI18N
114

115     /** Whether go to class shows inner classes */
116     public static final String JavaDoc GOTO_CLASS_SHOW_INNER_CLASSES = "goto-class-show-inner-classes"; //NOI18N
117

118     /** Whether go to class shows library classes */
119     public static final String JavaDoc GOTO_CLASS_SHOW_LIBRARY_CLASSES = "goto-class-show-library-classes"; //NOI18N
120

121 }
122
Popular Tags