01: // This file is part of KeY - Integrated Deductive Software Design
02: // Copyright (C) 2001-2007 Universitaet Karlsruhe, Germany
03: // Universitaet Koblenz-Landau, Germany
04: // Chalmers University of Technology, Sweden
05: //
06: // The KeY system is protected by the GNU General Public License.
07: // See LICENSE.TXT for details.
08: //This file is part of KeY - Integrated Deductive Software Design
09: //Copyright (C) 2001-2003 Universitaet Karlsruhe, Germany
10: // and Chalmers University of Technology, Sweden
11: //
12: //The KeY system is protected by the GNU General Public License.
13: //See LICENSE.TXT for details.
14: //
15:
16: package de.uka.ilkd.key.rule.export.html;
17:
18: public class HTMLFileLink extends HTMLLink {
19: private HTMLFile sourceFile;
20: private HTMLFile targetFile;
21:
22: public HTMLFileLink(HTMLFile sourceFile, HTMLFile targetFile) {
23: this .sourceFile = sourceFile;
24: this .targetFile = targetFile;
25: }
26:
27: public String toString() {
28: return getURL();
29: }
30:
31: protected String getURL() {
32: return sourceFile.getRelPath(targetFile);
33: }
34: }
|