Skip to content

Commit 032120e

Browse files
committed
Fix SelectImportsDialog
This is instead of saving the user input didn't do anything, because it was used the incorrect 'imports' not the user provided 'filters'
1 parent f7ab749 commit 032120e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/SelectImportsDialog.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ public Filter[] getStoredFilters(boolean defaults) {
5959

6060
@Override
6161
public void setStoredFilters(IPreferenceStore store, Filter[] filters) {
62-
fEditor.setImports(imports);
62+
String[] newImports = new String[filters.length];
63+
for (int i = 0; i < filters.length; i++) {
64+
newImports[i] = filters[i].getName();
65+
}
66+
fEditor.setImports(newImports);
6367
}
6468

6569
},

0 commit comments

Comments
 (0)