|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2003 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.modules.vcscore.grouping; import java.util.Hashtable; import java.util.HashSet; import java.util.HashMap; import java.util.StringTokenizer; import java.util.Properties; import java.io.*; import org.openide.util.NbBundle; import org.openide.options.SystemOption; import org.openide.util.actions.SystemAction; import org.openide.util.Utilities; import org.openide.util.SharedClassObject; import java.beans.PropertyChangeListener; import java.beans.PropertyChangeEvent; /** Options for VcsGroup feature * * @author Milos Kleint */ public class VcsGroupSettings extends SystemOption { public static final String PROP_AUTO_ADDITION = "autoAddition";//NOI18N public static final String PROP_SHOW_LINKS = "showLinks";//NOI18N public static final String PROP_DISABLE_GROUPS = "disableGroups"; public static final int ADDITION_MANUAL = 0; public static final int ADDITION_ASK = 2; public static final int ADDITION_TO_DEFAULT = 1; static final long serialVersionUID = -4620483329253274979L; protected void initialize () { super.initialize(); setAutoAddition(0); setDisableGroups(false); setShowLinks(false); } /** human presentable name */ public String displayName() { return NbBundle.getBundle(VcsGroupSettings.class).getString("CTL_VcsGroup_settings"); // NOI18N } /** Getter for property showLinks. * @return Value of property showLinks. */ public boolean isShowLinks() { return ((Boolean)getProperty(PROP_SHOW_LINKS)).booleanValue(); } /** Setter for property showLinks. * @param showLinks New value of property showLinks. */ public void setShowLinks(boolean show) { putProperty(PROP_SHOW_LINKS, show ? Boolean.TRUE : Boolean.FALSE, true); } /** Getter for property autoAddition. * @return Value of property autoAddition. */ public int getAutoAddition() { return ((Integer)getProperty(PROP_AUTO_ADDITION)).intValue(); } /** Setter for property autoAddition. * @param autoAddition New value of property autoAddition. */ public void setAutoAddition(int autoAddition) { putProperty(PROP_AUTO_ADDITION, new Integer(autoAddition), true); } /** Getter for property disableGroups. * @return Value of property disableGroups. */ public boolean isDisableGroups() { return ((Boolean)getProperty(PROP_DISABLE_GROUPS)).booleanValue(); } /** Setter for property disableGroups. * @param disableGroups New value of property disableGroups. */ public void setDisableGroups(boolean disableGroups) { putProperty(PROP_DISABLE_GROUPS, disableGroups ? Boolean.TRUE : Boolean.FALSE, true); } } |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.