This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 181989
Collapse All | Expand All

(-)src/org/netbeans/modules/openfile/Bundle.properties (-1 lines)
Lines 38-44 Link Here
38
# made subject to such option by the copyright holder.
38
# made subject to such option by the copyright holder.
39
39
40
# OpenFileDialogFilter
40
# OpenFileDialogFilter
41
OFDFD_Java=Java Files
42
OFDFD_Txt=Text Files
41
OFDFD_Txt=Text Files
43
42
44
# OpenFileAction
43
# OpenFileAction
(-)src/org/netbeans/modules/openfile/FileChooser.java (-16 lines)
Lines 127-148 Link Here
127
        }
127
        }
128
    }
128
    }
129
129
130
131
    @ServiceProvider(service=org.netbeans.modules.openfile.OpenFileDialogFilter.class)
132
    public static class JavaFilesFilter extends OpenFileDialogFilter {
133
134
        @Override
135
        public String getDescriptionString() {
136
            return NbBundle.getMessage(getClass(), "OFDFD_Java"); // NOI18N
137
        }
138
139
        @Override
140
        public String[] getSuffixes() {
141
            return new String[] {".java"};
142
        }
143
144
    }
145
146
    @ServiceProvider(service=OpenFileDialogFilter.class)
130
    @ServiceProvider(service=OpenFileDialogFilter.class)
147
    public static class TxtFileFilter
131
    public static class TxtFileFilter
148
            extends OpenFileDialogFilter.ExtensionFilter {
132
            extends OpenFileDialogFilter.ExtensionFilter {

Return to bug 181989