X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Forg%2Fjibble%2Fepsgraphics%2FEpsDocument.java;h=ccfbcca09f3a0885fa3f87402a2d9929c81ba6fb;hb=c19d2a91ca05e052e3408bf5852d88eb5d0608f1;hp=f343d5e7570c1dcd04a0fefa4b8c2f47ae666a35;hpb=47168f025aefdaa044802bd5f8f510ffe43a4808;p=jalview.git diff --git a/src/org/jibble/epsgraphics/EpsDocument.java b/src/org/jibble/epsgraphics/EpsDocument.java index f343d5e..ccfbcca 100755 --- a/src/org/jibble/epsgraphics/EpsDocument.java +++ b/src/org/jibble/epsgraphics/EpsDocument.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2) - * Copyright (C) 2014 The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b2) + * Copyright (C) 2015 The Jalview Authors * * This file is part of Jalview. * @@ -20,8 +20,15 @@ */ package org.jibble.epsgraphics; -import java.io.*; -import java.util.*; +import jalview.util.MessageManager; + +import java.io.BufferedWriter; +import java.io.IOException; +import java.io.OutputStream; +import java.io.OutputStreamWriter; +import java.io.StringWriter; +import java.io.Writer; +import java.util.Date; /** * This represents an EPS document. Several EpsGraphics2D objects may point to @@ -157,7 +164,9 @@ public class EpsDocument _bufferedWriter.write(line + "\n"); } catch (IOException e) { - throw new EpsException("Could not write to the output file: " + e); + throw new EpsException(MessageManager.formatMessage( + "exception.eps_coudnt_write_output_file", + new String[] { e.getMessage() })); } }