Skip to content

Commit 057fa0a

Browse files
eclipse-platform-botakurtakov
authored andcommitted
Perform clean code of ant/org.eclipse.ant.ui
1 parent 018c667 commit 057fa0a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ant/org.eclipse.ant.ui/Ant Tools Support/org/eclipse/ant/internal/ui/datatransfer/AntNewJavaProjectPage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ private void handleBrowseButtonPressed() {
270270

271271
String lastUsedPath = IAntCoreConstants.EMPTY_STRING;
272272
FileDialog dialog = new FileDialog(getShell(), SWT.SINGLE | SWT.SHEET);
273-
dialog.setFilterExtensions(new String[] { "*.xml" }); //$NON-NLS-1$ ;
273+
dialog.setFilterExtensions("*.xml"); //$NON-NLS-1$ ;
274274
dialog.setFilterPath(lastUsedPath);
275275

276276
String result = dialog.open();

ant/org.eclipse.ant.ui/Ant Tools Support/org/eclipse/ant/internal/ui/preferences/AntClasspathBlock.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ private void addExternalJars() {
239239
lastUsedPath = ResourcesPlugin.getWorkspace().getRoot().getLocation().toOSString();
240240
}
241241
FileDialog dialog = new FileDialog(treeViewer.getControl().getShell(), SWT.MULTI | SWT.SHEET);
242-
dialog.setFilterExtensions(new String[] { "*.jar;*.zip" }); //$NON-NLS-1$
242+
dialog.setFilterExtensions("*.jar;*.zip"); //$NON-NLS-1$
243243
dialog.setFilterPath(lastUsedPath);
244244

245245
String result = dialog.open();

ant/org.eclipse.ant.ui/Ant Tools Support/org/eclipse/ant/internal/ui/preferences/AntPropertiesBlock.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ private void addExternalPropertyFile() {
411411
lastUsedPath = IAntCoreConstants.EMPTY_STRING;
412412
}
413413
FileDialog dialog = new FileDialog(fileTableViewer.getControl().getShell(), SWT.MULTI | SWT.SHEET);
414-
dialog.setFilterExtensions(new String[] { "*.properties", "*.*" }); //$NON-NLS-1$ //$NON-NLS-2$ ;
414+
dialog.setFilterExtensions("*.properties", "*.*"); //$NON-NLS-1$ //$NON-NLS-2$ ;
415415
dialog.setFilterPath(lastUsedPath);
416416

417417
String result = dialog.open();

0 commit comments

Comments
 (0)