46
46
import javax .swing .JOptionPane ;
47
47
import javax .swing .JPanel ;
48
48
import javax .swing .SwingConstants ;
49
- import javax .swing .filechooser .FileFilter ;
50
49
51
50
/**
52
51
*
@@ -71,23 +70,29 @@ public BLCMM_FileChooser(String path, String currentFileName, boolean appendBlcm
71
70
this .appendBlcmExtension = appendBlcmExtension ;
72
71
super .setPreferredSize (new Dimension (750 , 400 ));
73
72
super .setSelectedFile (new File (currentFileName ));
73
+ /*
74
74
if (saveAs) {
75
75
super.addChoosableFileFilter(new FilterToolFileFilter());
76
76
super.addChoosableFileFilter(new StructurelessFileFilter());
77
77
}
78
+ */
78
79
}
79
80
80
81
public PatchIO .SaveFormat getFormat () {
82
+ /*
81
83
if (this.getFileFilter() instanceof StructurelessFileFilter) {
82
84
return PatchIO.SaveFormat.STRUCTURELESS;
83
85
} else if (this.getFileFilter() instanceof FilterToolFileFilter) {
84
86
return PatchIO.SaveFormat.FT;
85
87
}
88
+ */
86
89
return PatchIO .SaveFormat .BLCMM ;
87
90
}
88
91
89
92
@ Override
90
93
public void approveSelection () {
94
+
95
+ /*
91
96
if (getFormat() == PatchIO.SaveFormat.STRUCTURELESS) {
92
97
if (!Options.INSTANCE.getHasSeenExportWarning()) {
93
98
Options.INSTANCE.setHasSeenExportWarning(true);
@@ -97,6 +102,8 @@ public void approveSelection() {
97
102
);
98
103
}
99
104
}
105
+ */
106
+
100
107
if (getDialogType () == SAVE_DIALOG ) {
101
108
File f = getSelectedFile ();
102
109
@@ -261,6 +268,8 @@ private static JButton directoryShortcutButton(JFileChooser fc, String label, St
261
268
return button ;
262
269
}
263
270
271
+ /*
272
+
264
273
public final static class FilterToolFileFilter extends FileFilter {
265
274
266
275
@Override
@@ -286,4 +295,6 @@ public String getDescription() {
286
295
return "Structureless File - saves only checked codes and hotfixes (All Files)";
287
296
}
288
297
}
298
+
299
+ */
289
300
}
0 commit comments