diff --git a/AlgebraicDataflowArchitectureModel/src/graphicalrefactor/actions/SaveAsAction.java b/AlgebraicDataflowArchitectureModel/src/graphicalrefactor/actions/SaveAsAction.java index 8245aa8..05a90ca 100644 --- a/AlgebraicDataflowArchitectureModel/src/graphicalrefactor/actions/SaveAsAction.java +++ b/AlgebraicDataflowArchitectureModel/src/graphicalrefactor/actions/SaveAsAction.java @@ -32,7 +32,6 @@ JFileChooser fc = new JFileChooser(wd); FileFilter model = new FileNameExtensionFilter("model","model"); FileFilter dtram = new FileNameExtensionFilter("dtram", "dtram"); - String extension = ""; // Adds file filter for supported file format FileFilter defaultFilter = new FileFilter() { @@ -54,21 +53,6 @@ if (rc == JFileChooser.APPROVE_OPTION) { lastDir = fc.getSelectedFile().getParent(); editor.setCurFilePath(fc.getSelectedFile().getAbsolutePath()); - - File file = fc.getSelectedFile(); - - if(file != null && file.exists()) { - //�t�@�C�������擾 - String name = file.getName(); - - //�g���q���擾 - extension = name.substring(name.lastIndexOf(".")); - - } - if( extension.contains(".model")) { - editor.saveModel(); - System.out.println("extension"); - } editor.save(); frame.setTitle(frame.title + " - " + fc.getSelectedFile().getAbsolutePath()); }