View | Details | Raw Unified | Return to bug 341482 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/mat/ui/messages.properties (+1 lines)
Lines 204-209 Link Here
204
OpenOQLStudioAction_OpenOQLStudio=Open Object Query Language studio to execute statements
204
OpenOQLStudioAction_OpenOQLStudio=Open Object Query Language studio to execute statements
205
OpenSampleHeapDumpAction_ErrorOpeningEditor=Error opening editor
205
OpenSampleHeapDumpAction_ErrorOpeningEditor=Error opening editor
206
OpenSampleHeapDumpAction_NoEditorToOpen=No editor available to open {0}
206
OpenSampleHeapDumpAction_NoEditorToOpen=No editor available to open {0}
207
OpenSnapshot_AllFiles=All Files
207
OpenSnapshot_AllKnownFormats=All Known Formats
208
OpenSnapshot_AllKnownFormats=All Known Formats
208
OpenSnapshot_FileAlreadyExists=The file ''{0}'' already exists
209
OpenSnapshot_FileAlreadyExists=The file ''{0}'' already exists
209
OpenSnapshot_FileMustHaveExtension=The file must have the extension ''{0}''
210
OpenSnapshot_FileMustHaveExtension=The file must have the extension ''{0}''
(-)src/org/eclipse/mat/ui/snapshot/OpenSnapshot.java (-2 / +9 lines)
Lines 137-144 Link Here
137
            sortedTypes.addAll(types);
137
            sortedTypes.addAll(types);
138
            types = new ArrayList<SnapshotFormat>(sortedTypes);
138
            types = new ArrayList<SnapshotFormat>(sortedTypes);
139
139
140
            String[] filterExtensions = new String[types.size() + 1];
140
            // Extensions length is the number of types
141
            String[] filterNames = new String[types.size() + 1];
141
            // plus 1 for "All Know Formats"
142
            // plus 1 for the *.* wildcard
143
            String[] filterExtensions = new String[types.size() + 2];
144
            String[] filterNames = new String[types.size() + 2];
142
145
143
            // first element: all heap dump formats
146
            // first element: all heap dump formats
144
            filterExtensions[0] = null;
147
            filterExtensions[0] = null;
Lines 166-171 Link Here
166
                    filterExtensions[0] += ";" + filterExtensions[ii + 1];//$NON-NLS-1$
169
                    filterExtensions[0] += ";" + filterExtensions[ii + 1];//$NON-NLS-1$
167
            }
170
            }
168
171
172
            // Add in the wildcard
173
            filterExtensions[types.size() + 1] = "*.*"; //$NON-NLS-1$
174
            filterNames[types.size() + 1] = Messages.OpenSnapshot_AllFiles;
175
169
            dialog.setFilterExtensions(filterExtensions);
176
            dialog.setFilterExtensions(filterExtensions);
170
            dialog.setFilterNames(filterNames);
177
            dialog.setFilterNames(filterNames);
171
        }
178
        }
(-)src/org/eclipse/mat/ui/Messages.java (+1 lines)
Lines 182-187 Link Here
182
    public static String OpenOQLStudioAction_OpenOQLStudio;
182
    public static String OpenOQLStudioAction_OpenOQLStudio;
183
    public static String OpenSampleHeapDumpAction_ErrorOpeningEditor;
183
    public static String OpenSampleHeapDumpAction_ErrorOpeningEditor;
184
    public static String OpenSampleHeapDumpAction_NoEditorToOpen;
184
    public static String OpenSampleHeapDumpAction_NoEditorToOpen;
185
    public static String OpenSnapshot_AllFiles;
185
    public static String OpenSnapshot_AllKnownFormats;
186
    public static String OpenSnapshot_AllKnownFormats;
186
    public static String OpenSnapshot_FileAlreadyExists;
187
    public static String OpenSnapshot_FileAlreadyExists;
187
    public static String OpenSnapshot_FileMustHaveExtension;
188
    public static String OpenSnapshot_FileMustHaveExtension;

Return to bug 341482