1 2 24 package org.enhydra.tool.archive.wizard; 25 26 import org.enhydra.tool.ToolBoxInfo; 28 import org.enhydra.tool.archive.ArchiveException; 29 import org.enhydra.tool.archive.JarPlan; 30 import org.enhydra.tool.common.Browser; 31 import org.enhydra.tool.common.ToolException; 32 import org.enhydra.tool.common.wizard.TBWizardPage; 33 34 import java.awt.*; 36 import java.beans.*; 37 import java.io.File ; 38 import javax.swing.*; 39 40 44 public class ArchivePage extends TBWizardPage { 45 46 49 public ArchivePage() { 50 super(); 51 } 52 53 public void validatePage() throws ToolException { 54 getArchivePanel().validatePlan(); 55 } 56 57 public void preparePage() { 58 getArchivePanel().preparePanel(); 59 } 60 61 private ArchivePanel getArchivePanel() { 62 return (ArchivePanel) getWizardPanel(); 63 } 64 65 protected void writePlan(JarPlan plan) throws ArchiveException { 66 getArchivePanel().writePlan(plan); 67 } 68 69 protected void readPlan(JarPlan plan) throws ArchiveException { 70 getArchivePanel().readPlan(plan); 71 } 72 73 public void help() { 74 Browser browser = new Browser(); 75 StringBuffer buf = new StringBuffer (); 76 77 browser.setOwner(getTopLevelAncestor()); 78 buf.append(ToolBoxInfo.getEnhydraRoot()); 79 buf.append(File.separatorChar); 80 buf.append("doc"); buf.append(File.separatorChar); 82 buf.append("index.html"); browser.open(buf.toString()); 84 } 85 86 } 87 | Popular Tags |