01: /*
02: * Enhydra Java Application Server Project
03: *
04: * The contents of this file are subject to the Enhydra Public License
05: * Version 1.1 (the "License"); you may not use this file except in
06: * compliance with the License. You may obtain a copy of the License on
07: * the Enhydra web site ( http://www.enhydra.org/ ).
08: *
09: * 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.common.DialogHandler;
27:
28: // Kelp imports
29: import org.enhydra.kelp.common.node.OtterProject;
30: import org.enhydra.kelp.common.swing.AddinInnerPanel;
31:
32: abstract public class AbstractTool extends DialogHandler {
33:
34: //
35: private OtterProject project = null;
36:
37: public AbstractTool() {
38: super ();
39: }
40:
41: /**
42: * Get the IDE project containing the HTML files.
43: */
44: public OtterProject getProject() {
45: return project;
46: }
47:
48: /**
49: * Set the IDE project containing the HTML files.
50: */
51: public void setProject(OtterProject p) {
52: project = p;
53: getAddinInnerPanel().read(getProject());
54: }
55:
56: public AddinInnerPanel getAddinInnerPanel() {
57: return (AddinInnerPanel) getInnerPanel();
58: }
59: }
|