Revision 1779

tmp/org.txm.chartsengine.svgbatik.rcp/src/org/txm/chartsengine/svgbatik/rcp/swt/SVGComposite.java (revision 1779)
61 61
		this.file = file;
62 62
		Log.fine(TXMCoreMessages.bind("Loading SVG document from file: {0}...", file.getAbsolutePath()));
63 63

  
64
			if (ValidateXml.test(file)) {
65
				SwingUtilities.invokeLater(new Runnable() {
66
					
67
					@Override
68
					public void run() {
64
			SwingUtilities.invokeLater(new Runnable() {
65
				
66
				@Override
67
				public void run() {
69 68

  
70
						try {
71
	
72
							// TODO Auto-generated method stub
73
							getPanel().loadSVGDocument(file.toURL().toExternalForm());
74
						}
75
						catch (Exception e) {
76
							Log.severe("Can't load SVG document from file: " + file + e);
77
							Log.printStackTrace(e);
78
						}
69
					try {
70
						getPanel().loadSVGDocument(file.toURL().toExternalForm());
71
					}
72
					catch (Exception e) {
73
						Log.severe("Can't load SVG document from file: " + file + e);
74
						Log.printStackTrace(e);
75
					}
79 76

  
80
				}
81
				});
82
				
83
				//this.getPanel().loadSVGDocument(file.toURL().toExternalForm());
84 77
			}
85
			else {
86
				Log.severe(TXMCoreMessages.bind("** Malformed SVG file: {0}.", file));
87
				this.getPanel().resetView();
88
			}
89
		
78
			});
90 79
	}
91 80

  
92 81
	

Also available in: Unified diff