Skip to content

Commit 18e228e

Browse files
eclipse-platform-botakurtakov
authored andcommitted
Perform clean code of debug/org.eclipse.debug.ui
1 parent 77724b2 commit 18e228e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/importexport/breakpoints/WizardExportBreakpointsPage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ protected void handlePathTextModifiedEvent() {
144144
*/
145145
protected void handleDestinationBrowseButtonPressed() {
146146
FileDialog dialog = new FileDialog(getContainer().getShell(), SWT.SAVE | SWT.SHEET);
147-
dialog.setFilterExtensions(new String[]{"*."+IImportExportConstants.EXTENSION}); //$NON-NLS-1$
147+
dialog.setFilterExtensions("*."+IImportExportConstants.EXTENSION); //$NON-NLS-1$
148148
dialog.setText(ImportExportMessages.WizardExportBreakpoints_0);
149149
String file = dialog.open();
150150
if(file != null) {

debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/importexport/breakpoints/WizardImportBreakpointsPage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public void handleEvent(Event event) {
9191
*/
9292
protected void handleBrowseForFileButtonPressed() {
9393
FileDialog dialog = new FileDialog(getContainer().getShell(), SWT.OPEN | SWT.SHEET);
94-
dialog.setFilterExtensions(new String[]{"*."+IImportExportConstants.EXTENSION}); //$NON-NLS-1$
94+
dialog.setFilterExtensions("*."+IImportExportConstants.EXTENSION); //$NON-NLS-1$
9595
String file = dialog.open();
9696
if(file != null) {
9797
fFileNameField.setText(file);

debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/browsers/ExternalArchiveSourceContainerBrowser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public ISourceContainer[] addSourceContainers(Shell shell, ISourceLookupDirector
4242
.getDialogSettings();
4343
String rootDir = dialogSettings.get(ROOT_DIR);
4444
dialog.setText(SourceLookupUIMessages.ExternalArchiveSourceContainerBrowser_2);
45-
dialog.setFilterExtensions(new String[]{"*.jar;*.zip"}); //$NON-NLS-1$
45+
dialog.setFilterExtensions("*.jar;*.zip"); //$NON-NLS-1$
4646
if (rootDir != null) {
4747
dialog.setFilterPath(rootDir);
4848
}

0 commit comments

Comments
 (0)