01: package org.acm.seguin.tools.install;
02:
03: /**
04: * Specifies the neighborhood
05: *
06: *@author Chris Seguin
07: *@created September 12, 2001
08: */
09: public class ImportNeighborhoodPanel extends OptionPanel {
10: /**
11: * Constructor for the ImportNeighborhoodPanel object
12: */
13: public ImportNeighborhoodPanel() {
14: super ();
15: addDescription("If you want classes that are written by you to move to the end");
16: addDescription("of the list of imports change this value.");
17: addOption("0", "Keep all the imports in alphabetical order");
18: addOption(
19: "1",
20: "If the package and the import start with the same value - com or org - put them at the end");
21: addOption("2",
22: "When package and import share 2 directory levels, the imports are listed last");
23: addOption("3",
24: "When package and import share 3 directory levels, the imports are listed last");
25: addControl();
26: }
27:
28: /**
29: * Gets the key attribute of the ImportNeighborhoodPanel object
30: *
31: *@return The key value
32: */
33: public String getKey() {
34: return "import.sort.neighbourhood";
35: }
36:
37: /**
38: * Gets the initialValue attribute of the ClassMinimumPanel object
39: *
40: *@return The initialValue value
41: */
42: protected String getInitialValue() {
43: return "0";
44: }
45: }
|