4,10 → 4,10 |
* Coded by: Group 5, software practice summer 2003 |
* University of Bielefeld, Germany |
* |
* @version $Revision: 1.28 $ |
* @version $Revision: 1.29 $ |
* |
* Last modification: $Date: 2003/07/24 22:18:06 $ |
* $Id: ImagePlugin.java,v 1.28 2003/07/24 22:18:06 ioklasse Exp $ |
* Last modification: $Date: 2003/07/26 10:48:55 $ |
* $Id: ImagePlugin.java,v 1.29 2003/07/26 10:48:55 smcsporr Exp $ |
*/ |
|
package src.plugins.imagePlugin; |
52,7 → 52,7 |
* |
* @author Yulia Klassen, Viktoriya Zudova |
* |
* @version $Revision: 1.28 $ Last modification: $Date: 2003/07/24 22:18:06 $ |
* @version $Revision: 1.29 $ Last modification: $Date: 2003/07/26 10:48:55 $ |
*/ |
public class ImagePlugin extends JPanel |
implements PluginInterface, ActionListener, |
260,10 → 260,12 |
try { |
File doc = gui.getCurrentFile(); |
if(fileName.startsWith(doc.getParentFile().toString())) { |
fileName = fileName.replaceFirst(doc.getParentFile().toString() + "/", ""); |
fileName = fileName.replaceFirst(doc.getParentFile().toString() + System.getProperty("file.separator"), ""); |
} |
if(fileName.charAt(0) == '/') |
File temp = new File(fileName); |
if(temp.isAbsolute()) { |
currentFile = new File(fileName); |
} |
else { |
currentFile = new File(doc.getParentFile(), fileName); |
} |