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: * Description of the Class
57: *
58: *@author Chris Seguin
59: *@created September 12, 2001
60: */
61: class StaticOrderPanel extends SortOptionPanel {
62: /**
63: * Constructor for the StaticOrderPanel object
64: */
65: public StaticOrderPanel() {
66: super ();
67:
68: addDescription("How static methods and fields should be sorted");
69: addOption("Class(Static,Instance)", "Move static to the top");
70: addOption("Class(Instance,Static)", "Move static to the bottom");
71: addControl();
72: addListener();
73: }
74:
75: /**
76: * Gets the sort name
77: *
78: *@return the key for the sort
79: */
80: protected String getSortName() {
81: return "Class";
82: }
83: }
84:
85: // This is the end of the file
|