KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > java > navigation > JavaMembersAndHierarchyOptions


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.modules.java.navigation;
21
22 /**
23  * The static options for hierarchy and members pop up windows.
24  * <p>
25  * The options are currently not persisted (probably should be). Also note that
26  * some options are shared between hierarchy andmembers windows.
27  *
28  * @author Sandip Chitale (Sandip.Chitale@Sun.Com)
29  */

30 public final class JavaMembersAndHierarchyOptions {
31     /**
32      */

33     private static boolean caseSensitive = false;
34
35     /**
36      */

37     private static boolean showInherited = false;
38
39     /**
40      */

41     private static boolean showSuperTypeHierarchy = true;
42
43     /**
44      */

45     private static boolean showSubTypeHierarchy = false;
46
47     /**
48      */

49     private static boolean showInner = false;
50
51     /**
52      */

53     private static boolean showFQN = false;
54
55     /**
56      */

57     private static boolean showConstructors = true;
58
59     /**
60      */

61     private static boolean showMethods = true;
62
63     /**
64      */

65     private static boolean showFields = true;
66
67     /**
68      */

69     private static boolean showEnumConstants = true;
70
71     /**
72      */

73     private static boolean showProtected = true;
74
75     /**
76      */

77     private static boolean showPackage = true;
78
79     /**
80      */

81     private static boolean showPrivate = true;
82
83     /**
84      */

85     private static boolean showStatic = true;
86
87     private JavaMembersAndHierarchyOptions() {
88     }
89
90     /**
91      * @return Value of property showInherited.
92      */

93     public static boolean isShowInherited() {
94         return showInherited;
95     }
96
97     /**
98      * @param showInherited New value of property showInherited.
99      */

100     public static void setShowInherited(boolean showInherited) {
101         JavaMembersAndHierarchyOptions.showInherited = showInherited;
102     }
103
104     /**
105      * @return
106      */

107     public static boolean isShowSubTypeHierarchy() {
108         return showSubTypeHierarchy;
109     }
110
111     /**
112      * @param showSubTypeHierarchy
113      */

114     public static void setShowSubTypeHierarchy(boolean showSubTypeHierarchy) {
115         JavaMembersAndHierarchyOptions.showSubTypeHierarchy = showSubTypeHierarchy;
116         if (showSubTypeHierarchy) {
117             JavaMembersAndHierarchyOptions.showSuperTypeHierarchy = false;
118         }
119     }
120
121     /**
122      * @return
123      */

124     public static boolean isShowSuperTypeHierarchy() {
125         return showSuperTypeHierarchy;
126     }
127
128     /**
129      * @param showSuperTypeHierarchy
130      */

131     public static void setShowSuperTypeHierarchy(boolean showSuperTypeHierarchy) {
132         JavaMembersAndHierarchyOptions.showSuperTypeHierarchy = showSuperTypeHierarchy;
133         if (showSuperTypeHierarchy) {
134             JavaMembersAndHierarchyOptions.showSubTypeHierarchy = false;
135         }
136     }
137
138
139     /**
140      * @return Value of property caseSensitive.
141      */

142     public static boolean isCaseSensitive() {
143         return caseSensitive;
144     }
145
146     /**
147      * @param caseSensitive New value of property caseSensitive.
148      */

149     public static void setCaseSensitive(boolean caseSensitive) {
150         JavaMembersAndHierarchyOptions.caseSensitive = caseSensitive;
151     }
152
153     /**
154      * @return Value of property showInner.
155      */

156     public static boolean isShowFQN() {
157         return JavaMembersAndHierarchyOptions.showFQN;
158     }
159
160     /**
161      * @param showFQN New value of property showFQN.
162      */

163     public static void setShowFQN(boolean showFQN) {
164         JavaMembersAndHierarchyOptions.showFQN = showFQN;
165     }
166
167     /**
168      * @return Value of property showInner.
169      */

170     public static boolean isShowInner() {
171         return JavaMembersAndHierarchyOptions.showInner;
172     }
173
174     /**
175      * @param showInner New value of property showInner.
176      */

177     public static void setShowInner(boolean showInner) {
178         JavaMembersAndHierarchyOptions.showInner = showInner;
179     }
180
181     /**
182      * @return Value of property showConstructors.
183      */

184     public static boolean isShowConstructors() {
185         return JavaMembersAndHierarchyOptions.showConstructors;
186     }
187
188     /**
189      * @param showConstructors New value of property showConstructors.
190      */

191     public static void setShowConstructors(boolean showConstructors) {
192         JavaMembersAndHierarchyOptions.showConstructors = showConstructors;
193     }
194
195     /**
196      * @return Value of property showMethods.
197      */

198     public static boolean isShowMethods() {
199         return JavaMembersAndHierarchyOptions.showMethods;
200     }
201
202     /**
203      * @param showMethods New value of property showMethods.
204      */

205     public static void setShowMethods(boolean showMethods) {
206         JavaMembersAndHierarchyOptions.showMethods = showMethods;
207     }
208
209     /**
210      * @return Value of property showFields.
211      */

212     public static boolean isShowFields() {
213         return JavaMembersAndHierarchyOptions.showFields;
214     }
215
216     /**
217      * @param showFields New value of property showFields.
218      */

219     public static void setShowFields(boolean showFields) {
220         JavaMembersAndHierarchyOptions.showFields = showFields;
221     }
222
223     /**
224      * @return
225      */

226     public static boolean isShowEnumConstants() {
227         return showEnumConstants;
228     }
229
230     /**
231      * @param showEnumConstants
232      */

233     public static void setShowEnumConstants(boolean showEnumConstants) {
234         JavaMembersAndHierarchyOptions.showEnumConstants = showEnumConstants;
235     }
236
237     /**
238      * @return Value of property showPublicOnly.
239      */

240     public static boolean isShowProtected() {
241         return JavaMembersAndHierarchyOptions.showProtected;
242     }
243
244     /**
245      * @param showProtected
246      */

247     public static void setShowProtected(boolean showProtected) {
248         JavaMembersAndHierarchyOptions.showProtected = showProtected;
249     }
250
251     /**
252      * @return Value of property showPackage.
253      */

254     public static boolean isShowPackage() {
255         return JavaMembersAndHierarchyOptions.showPackage;
256     }
257
258     /**
259      * @param showPackage
260      */

261     public static void setShowPackage(boolean showPackage) {
262         JavaMembersAndHierarchyOptions.showPackage = showPackage;
263     }
264
265     /**
266      * @return Value of property showPrivate.
267      */

268     public static boolean isShowPrivate() {
269         return JavaMembersAndHierarchyOptions.showPrivate;
270     }
271
272     /**
273      * @param showPrivate New value of property showPrivate.
274      */

275     public static void setShowPrivate(boolean showPrivate) {
276         JavaMembersAndHierarchyOptions.showPrivate = showPrivate;
277     }
278
279     /**
280      * @return Value of property showStatic.
281      */

282     public static boolean isShowStatic() {
283         return JavaMembersAndHierarchyOptions.showStatic;
284     }
285
286     /**
287      * @param showStatic New value of property showStatic.
288      */

289     public static void setShowStatic(boolean showStatic) {
290         JavaMembersAndHierarchyOptions.showStatic = showStatic;
291     }
292
293 }
294
Popular Tags