Revision 1796

tmp/org.txm.chartsengine.svgbatik.rcp/src/org/txm/chartsengine/svgbatik/rcp/swt/SVGComposite.java (revision 1796)
49 49
	 * Loads a SVG document from the specified file.
50 50
	 * @param file the file to load
51 51
	 */
52
	// FIXME: SJ: we should use Batik listener system to check if the file has been well loaded
52 53
	public void loadSVGDocument(final File file) {
53
		if(file == null)	{
54
		if (file == null) {
54 55
			Log.severe("SVG File doesn't exist.");
55 56
			return;
56 57
		}
58
		if (file.length() == 0) {
59
			Log.severe("SVG File is empty.");
60
			return;
61
		}
62
		
57 63
		this.file = file;
58 64
		
59 65
		Log.fine(TXMCoreMessages.bind("Loading SVG document from file: {0}...", file.getAbsolutePath()));

Also available in: Unified diff