01: /*
02: * ====================================================================
03: * The JRefactory License, Version 1.0
04: *
05: * Copyright (c) 2001 JRefactory. All rights reserved.
06: *
07: * Redistribution and use in source and binary forms, with or without
08: * modification, are permitted provided that the following conditions
09: * are met:
10: *
11: * 1. Redistributions of source code must retain the above copyright
12: * notice, this list of conditions and the following disclaimer.
13: *
14: * 2. Redistributions in binary form must reproduce the above copyright
15: * notice, this list of conditions and the following disclaimer in
16: * the documentation and/or other materials provided with the
17: * distribution.
18: *
19: * 3. The end-user documentation included with the redistribution,
20: * if any, must include the following acknowledgment:
21: * "This product includes software developed by the
22: * JRefactory (http://www.sourceforge.org/projects/jrefactory)."
23: * Alternately, this acknowledgment may appear in the software itself,
24: * if and wherever such third-party acknowledgments normally appear.
25: *
26: * 4. The names "JRefactory" must not be used to endorse or promote
27: * products derived from this software without prior written
28: * permission. For written permission, please contact seguin@acm.org.
29: *
30: * 5. Products derived from this software may not be called "JRefactory",
31: * nor may "JRefactory" appear in their name, without prior written
32: * permission of Chris Seguin.
33: *
34: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
35: * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
36: * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
37: * DISCLAIMED. IN NO EVENT SHALL THE CHRIS SEGUIN OR
38: * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
39: * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
40: * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
41: * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
42: * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
43: * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
44: * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
45: * SUCH DAMAGE.
46: * ====================================================================
47: *
48: * This software consists of voluntary contributions made by many
49: * individuals on behalf of JRefactory. For more information on
50: * JRefactory, please see
51: * <http://www.sourceforge.org/projects/jrefactory>.
52: */
53: package org.acm.seguin.tools.install;
54:
55: /**
56: * GUI control to remove excess block panels
57: *
58: *@author Chris Seguin
59: *@created September 12, 2001
60: */
61: public class RemoveExcessBlockPanel extends TogglePanel {
62: /**
63: * Constructor for the RemoveExcessBlockPanel object
64: */
65: public RemoveExcessBlockPanel() {
66: super ();
67: addDescription("Remove {} when they surround only 1 statement");
68: addControl();
69: }
70:
71: /**
72: * Gets the key attribute of the RemoveExcessBlockPanel object
73: *
74: *@return The key value
75: */
76: public String getKey() {
77: return "remove.excess.blocks";
78: }
79:
80: /**
81: * Gets the initialValue attribute of the RemoveExcessBlockPanel object
82: *
83: *@return The initialValue value
84: */
85: protected String getInitialValue() {
86: return "false";
87: }
88: }
|