### Eclipse Workspace Patch 1.0 #P org.eclipse.platform.doc.isv Index: guide/dialogs_FilteredItemsSelectionDialog_example.htm =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.platform.doc.isv/guide/dialogs_FilteredItemsSelectionDialog_example.htm,v retrieving revision 1.4 diff -u -r1.4 dialogs_FilteredItemsSelectionDialog_example.htm --- guide/dialogs_FilteredItemsSelectionDialog_example.htm 7 Jun 2007 21:03:17 -0000 1.4 +++ guide/dialogs_FilteredItemsSelectionDialog_example.htm 8 Jun 2007 16:57:58 -0000 @@ -28,6 +28,7 @@ example we will generate our own set of random strings as follows:
private static ArrayList resources = new ArrayList(); + static { generateRescourcesTestCases('A', 'C', 8, ""); //$NON-NLS-1$ generateRescourcesTestCases('a', 'c', 4, ""); //$NON-NLS-1$ @@ -91,8 +92,16 @@ information about how the dialog information is persisted. This method can't return null, so we'll just return a simple settings object:+ private static final String DIALOG_SETTINGS = "FilteredResourcesSelectionDialogExampleSettings"; + protected IDialogSettings getDialogSettings() { - return new DialogSettings("TEST"); //$NON-NLS-1$ + IDialogSettings settings = Activator.getDefault().getDialogSettings() + .getSection(DIALOG_SETTINGS); + if (settings == null) { + settings = Activator.getDefault().getDialogSettings() + .addNewSection(DIALOG_SETTINGS); + } + return settings; }
+ public FilteredResourcesSelectionDialogExample(Shell shell) { + super(shell, true); + setTitle("Filtered Resources Selection Dialog Example"); + } +