Révision 1780
| tmp/org.txm.chartsengine.svgbatik.rcp/src/org/txm/chartsengine/svgbatik/rcp/swt/SVGComposite.java (revision 1780) | ||
|---|---|---|
| 59 | 59 |
return; |
| 60 | 60 |
} |
| 61 | 61 |
this.file = file; |
| 62 |
|
|
| 62 | 63 |
Log.fine(TXMCoreMessages.bind("Loading SVG document from file: {0}...", file.getAbsolutePath()));
|
| 63 | 64 |
|
| 64 |
SwingUtilities.invokeLater(new Runnable() {
|
|
| 65 |
|
|
| 66 |
@Override |
|
| 67 |
public void run() {
|
|
| 65 |
SwingUtilities.invokeLater(new Runnable() {
|
|
| 68 | 66 |
|
| 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 |
} |
|
| 67 |
@Override |
|
| 68 |
public void run() {
|
|
| 76 | 69 |
|
| 70 |
try {
|
|
| 71 |
getPanel().loadSVGDocument(file.toURL().toExternalForm()); |
|
| 72 |
} |
|
| 73 |
catch (Exception e) {
|
|
| 74 |
Log.severe(TXMCoreMessages.bind("Can't load SVG document from file {0}.", file));
|
|
| 75 |
Log.printStackTrace(e); |
|
| 76 |
} |
|
| 77 |
|
|
| 77 | 78 |
} |
| 78 |
});
|
|
| 79 |
}); |
|
| 79 | 80 |
} |
| 80 | 81 |
|
| 81 | 82 |
|
Formats disponibles : Unified diff