Browse Source

texture editor : removed warnings

Dokthar 9 years ago
parent
commit
6e0419b60c

+ 1 - 1
jme3-texture-editor/src/com/jme3/gde/textureeditor/IOModule.java

@@ -36,7 +36,7 @@ public class IOModule {
 
 
     public BufferedImage load(FileObject file) throws IOException, URISyntaxException {
     public BufferedImage load(FileObject file) throws IOException, URISyntaxException {
         if (file.getExt().equalsIgnoreCase("tga")) {
         if (file.getExt().equalsIgnoreCase("tga")) {
-            ImageInputStream in = new FileImageInputStream(new File(file.getURL().toURI()));
+            ImageInputStream in = new FileImageInputStream(new File(file.toURI()));
             TGAImageReaderSpi spi = new TGAImageReaderSpi();
             TGAImageReaderSpi spi = new TGAImageReaderSpi();
             TGAImageReader rea = new TGAImageReader(spi);
             TGAImageReader rea = new TGAImageReader(spi);
             rea.setInput(in);
             rea.setInput(in);

+ 1 - 1
jme3-texture-editor/src/com/jme3/gde/textureeditor/ImageEditorComponent.java

@@ -260,7 +260,7 @@ public class ImageEditorComponent implements EditorToolTarget {
         if (NotifyDescriptor.YES_OPTION.equals(result)) {
         if (NotifyDescriptor.YES_OPTION.equals(result)) {
             String name = editedFile.getExt();
             String name = editedFile.getExt();
             try {
             try {
-                IOModule.create().store(editedImage, name, new File(editedFile.getURL().toURI()));
+                IOModule.create().store(editedImage, name, new File(editedFile.toURI()));
                 disableSaving();
                 disableSaving();
             } catch (Exception ex) {
             } catch (Exception ex) {
                 Exceptions.printStackTrace(ex);
                 Exceptions.printStackTrace(ex);