KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > sun > ide > j2ee > PluginOptions


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.j2ee.sun.ide.j2ee;
21 import java.util.ResourceBundle JavaDoc;
22 import org.openide.nodes.BeanNode;
23 import org.openide.util.HelpCtx;
24
25 /**
26  *
27  * @author Andrei Badea
28  */

29 public class PluginOptions {
30     private static final PluginOptions INSTANCE = new PluginOptions();
31
32     public String JavaDoc displayName() {
33         return ResourceBundle.getBundle(
34             "org.netbeans.modules.j2ee.sun.ide.dm.Bundle").getString("FACTORY_DISPLAYNAME"); // NOI18N);
35
}
36
37     public HelpCtx getHelpCtx() {
38         return null; // new HelpCtx ("AS_RTT_Plugin"); //NOI18N
39
}
40     
41     // !PW Disable visibility of these properties for now. Edit them via the
42
// security-role-mapping customizer in any project.
43
// public String[] getUserList() {
44
// return PluginProperties.getDefault().getUserList();
45
// }
46
//
47
// public void setUserList(String [] list) {
48
// PluginProperties.getDefault().setUserList(list);
49
// firePropertyChange("displayPreference",null, list);
50
// }
51
//
52
// public String[] getGroupList() {
53
// return PluginProperties.getDefault().getGroupList();
54
// }
55
//
56
// public void setGroupList(String [] list) {
57
// PluginProperties.getDefault().setGroupList(list);
58
// firePropertyChange("groupList",null, list);
59
// }
60

61     public String JavaDoc getLogLevel() {
62         return PluginProperties.getDefault().getLogLevel();
63     }
64     
65     public void setLogLevel(String JavaDoc ll) {
66         PluginProperties.getDefault().setLogLevel(ll);
67     }
68     
69     public Integer JavaDoc getCharsetDisplayPreference() {
70         return PluginProperties.getDefault().getCharsetDisplayPreference();
71     }
72     
73     public void setCharsetDisplayPreference(Integer JavaDoc displayPreference) {
74         PluginProperties.getDefault().setCharsetDisplayPreference(displayPreference);
75     }
76     
77     public Boolean JavaDoc getIncrementalDeploy(){
78         return PluginProperties.getDefault().getIncrementalDeploy();
79     }
80     
81     public void setIncrementalDeploy(Boolean JavaDoc b) {
82         PluginProperties.getDefault().setIncrementalDeploy(b);
83     }
84
85     private static BeanNode createViewNode() throws java.beans.IntrospectionException JavaDoc {
86         return new BeanNode(INSTANCE);
87     }
88 }
89
Popular Tags