1 19 20 package org.netbeans.modules.java.navigation; 21 22 30 public final class JavaMembersAndHierarchyOptions { 31 33 private static boolean caseSensitive = false; 34 35 37 private static boolean showInherited = false; 38 39 41 private static boolean showSuperTypeHierarchy = true; 42 43 45 private static boolean showSubTypeHierarchy = false; 46 47 49 private static boolean showInner = false; 50 51 53 private static boolean showFQN = false; 54 55 57 private static boolean showConstructors = true; 58 59 61 private static boolean showMethods = true; 62 63 65 private static boolean showFields = true; 66 67 69 private static boolean showEnumConstants = true; 70 71 73 private static boolean showProtected = true; 74 75 77 private static boolean showPackage = true; 78 79 81 private static boolean showPrivate = true; 82 83 85 private static boolean showStatic = true; 86 87 private JavaMembersAndHierarchyOptions() { 88 } 89 90 93 public static boolean isShowInherited() { 94 return showInherited; 95 } 96 97 100 public static void setShowInherited(boolean showInherited) { 101 JavaMembersAndHierarchyOptions.showInherited = showInherited; 102 } 103 104 107 public static boolean isShowSubTypeHierarchy() { 108 return showSubTypeHierarchy; 109 } 110 111 114 public static void setShowSubTypeHierarchy(boolean showSubTypeHierarchy) { 115 JavaMembersAndHierarchyOptions.showSubTypeHierarchy = showSubTypeHierarchy; 116 if (showSubTypeHierarchy) { 117 JavaMembersAndHierarchyOptions.showSuperTypeHierarchy = false; 118 } 119 } 120 121 124 public static boolean isShowSuperTypeHierarchy() { 125 return showSuperTypeHierarchy; 126 } 127 128 131 public static void setShowSuperTypeHierarchy(boolean showSuperTypeHierarchy) { 132 JavaMembersAndHierarchyOptions.showSuperTypeHierarchy = showSuperTypeHierarchy; 133 if (showSuperTypeHierarchy) { 134 JavaMembersAndHierarchyOptions.showSubTypeHierarchy = false; 135 } 136 } 137 138 139 142 public static boolean isCaseSensitive() { 143 return caseSensitive; 144 } 145 146 149 public static void setCaseSensitive(boolean caseSensitive) { 150 JavaMembersAndHierarchyOptions.caseSensitive = caseSensitive; 151 } 152 153 156 public static boolean isShowFQN() { 157 return JavaMembersAndHierarchyOptions.showFQN; 158 } 159 160 163 public static void setShowFQN(boolean showFQN) { 164 JavaMembersAndHierarchyOptions.showFQN = showFQN; 165 } 166 167 170 public static boolean isShowInner() { 171 return JavaMembersAndHierarchyOptions.showInner; 172 } 173 174 177 public static void setShowInner(boolean showInner) { 178 JavaMembersAndHierarchyOptions.showInner = showInner; 179 } 180 181 184 public static boolean isShowConstructors() { 185 return JavaMembersAndHierarchyOptions.showConstructors; 186 } 187 188 191 public static void setShowConstructors(boolean showConstructors) { 192 JavaMembersAndHierarchyOptions.showConstructors = showConstructors; 193 } 194 195 198 public static boolean isShowMethods() { 199 return JavaMembersAndHierarchyOptions.showMethods; 200 } 201 202 205 public static void setShowMethods(boolean showMethods) { 206 JavaMembersAndHierarchyOptions.showMethods = showMethods; 207 } 208 209 212 public static boolean isShowFields() { 213 return JavaMembersAndHierarchyOptions.showFields; 214 } 215 216 219 public static void setShowFields(boolean showFields) { 220 JavaMembersAndHierarchyOptions.showFields = showFields; 221 } 222 223 226 public static boolean isShowEnumConstants() { 227 return showEnumConstants; 228 } 229 230 233 public static void setShowEnumConstants(boolean showEnumConstants) { 234 JavaMembersAndHierarchyOptions.showEnumConstants = showEnumConstants; 235 } 236 237 240 public static boolean isShowProtected() { 241 return JavaMembersAndHierarchyOptions.showProtected; 242 } 243 244 247 public static void setShowProtected(boolean showProtected) { 248 JavaMembersAndHierarchyOptions.showProtected = showProtected; 249 } 250 251 254 public static boolean isShowPackage() { 255 return JavaMembersAndHierarchyOptions.showPackage; 256 } 257 258 261 public static void setShowPackage(boolean showPackage) { 262 JavaMembersAndHierarchyOptions.showPackage = showPackage; 263 } 264 265 268 public static boolean isShowPrivate() { 269 return JavaMembersAndHierarchyOptions.showPrivate; 270 } 271 272 275 public static void setShowPrivate(boolean showPrivate) { 276 JavaMembersAndHierarchyOptions.showPrivate = showPrivate; 277 } 278 279 282 public static boolean isShowStatic() { 283 return JavaMembersAndHierarchyOptions.showStatic; 284 } 285 286 289 public static void setShowStatic(boolean showStatic) { 290 JavaMembersAndHierarchyOptions.showStatic = showStatic; 291 } 292 293 } 294 | Popular Tags |