1 15 16 30 package ixenon.free.nodes; 31 32 import java.io.*; 33 import java.util.*; 34 import java.awt.*; 35 import java.awt.event.*; 36 37 import javax.swing.*; import javax.swing.event.*; import javax.swing.tree.*; 41 import ixenon.free.install.*; import ixenon.free.uninstall.*; 44 48 public class PrefixRoot extends AbstractInstallable 49 implements Installable 50 { 51 protected String nodeName; 52 protected File rootDirectory; 53 54 59 public PrefixRoot( String nodeName, String rootdir ) 60 { 61 this(nodeName, new File(rootdir) ); 62 } 63 64 69 public PrefixRoot( String nodeName, File rootdir ) 70 { 71 super( nodeName, null, true ); 72 rootDirectory = rootdir; 73 } 74 75 76 public File getRootDirectory() 77 { 78 return (rootDirectory); 79 } 80 81 85 public Component getVisualComponent() 86 { 87 return (null); 88 } 89 90 94 public Component getConfigurableComponent() 95 { 96 return (null); 97 } 98 99 107 public void install() throws InstallException 108 { 109 FreeInstallerApplication theApp = 110 FreeInstallerApplication.getInstance(); 111 theApp.printInfo( "Prefix root directory: "+rootDirectory); 112 } 113 114 117 public void cleanup() throws InstallException 118 { 119 } 121 } 122 123 | Popular Tags |