KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > kelp > common > AbstractTool


1 /*
2  * Enhydra Java Application Server Project
3  *
4  * The contents of this file are subject to the Enhydra Public License
5  * Version 1.1 (the "License"); you may not use this file except in
6  * compliance with the License. You may obtain a copy of the License on
7  * the Enhydra web site ( http://www.enhydra.org/ ).
8  *
9  * Software distributed under the License is distributed on an "AS IS"
10  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
11  * the License for the specific terms governing rights and limitations
12  * under the License.
13  *
14  * The Initial Developer of the Enhydra Application Server is Lutris
15  * Technologies, Inc. The Enhydra Application Server and portions created
16  * by Lutris Technologies, Inc. are Copyright Lutris Technologies, Inc.
17  * All Rights Reserved.
18  *
19  * Contributor(s):
20  * Paul Mahar
21  *
22  */

23 package org.enhydra.kelp.common;
24
25 // ToolBox imports
26
import org.enhydra.tool.ToolBoxInfo;
27 import org.enhydra.tool.common.ButtonPanel;
28 import org.enhydra.tool.common.DialogHandler;
29 import org.enhydra.tool.common.ProgressMeter;
30 import org.enhydra.tool.common.SwingUtil;
31 import org.enhydra.tool.common.event.HelpEvent;
32 import org.enhydra.tool.common.event.HelpListener;
33
34 // Kelp imports
35
import org.enhydra.kelp.KelpInfo;
36 import org.enhydra.kelp.common.event.WriteListener;
37 import org.enhydra.kelp.common.node.OtterProject;
38 import org.enhydra.kelp.common.swing.AddinInnerPanel;
39
40 // Standard imports
41
import java.awt.event.ActionEvent JavaDoc;
42 import java.awt.event.ActionListener JavaDoc;
43 import java.util.ArrayList JavaDoc;
44 import java.util.Arrays JavaDoc;
45 import java.util.ResourceBundle JavaDoc;
46 import java.awt.Component JavaDoc;
47 import java.awt.Container JavaDoc;
48 import java.awt.Dialog JavaDoc;
49 import java.awt.Frame JavaDoc;
50 import java.awt.GridBagLayout JavaDoc;
51 import java.awt.GridBagConstraints JavaDoc;
52 import java.awt.Insets JavaDoc;
53 import java.awt.Point JavaDoc;
54 import java.awt.Window JavaDoc;
55 import javax.swing.JComponent JavaDoc;
56 import javax.swing.JOptionPane JavaDoc;
57 import javax.swing.JPanel JavaDoc;
58 import javax.swing.JDialog JavaDoc;
59
60 //
61
abstract public class AbstractTool extends DialogHandler {
62
63     //
64
private OtterProject project = null;
65
66     public AbstractTool() {
67         super();
68     }
69
70     /**
71      * Get the IDE project containing the HTML files.
72      */

73     public OtterProject getProject() {
74         return project;
75     }
76
77     /**
78      * Set the IDE project containing the HTML files.
79      */

80     public void setProject(OtterProject p) {
81         project = p;
82         getAddinInnerPanel().read(getProject());
83     }
84
85     public AddinInnerPanel getAddinInnerPanel() {
86       return (AddinInnerPanel) getInnerPanel();
87     }
88 }
89
Popular Tags