Bug 299031 [Preferences] BIDI_BDL: Incorrect file path display in Recent workspaces list of Preferences dialog
bundles/org.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application/dialogs/RecentWorkspacesPreferencePage.java
for (int i = selected.length-1; i >= 0; i--) {
			workspaces.remove(selected[i]);
		}
		String[] newItems = new String[workspaces.size()];
		workspaces.toArray(newItems);
		workspacesList.setItems(newItems);
	}
	protected void performDefaults() {
		promptOption.setSelection(true);
		super.performDefaults();
	}
	public boolean performOk() {
		int maxWorkspaces = maxWorkspacesField.getSelection();
		String[] workspaces = new String[maxWorkspaces];
		String[] listItems = workspacesList.getItems();
		if (maxWorkspaces < listItems.length) {
			
			System.arraycopy(listItems, 0, workspaces, 0, maxWorkspaces);
		} else  {
			System.arraycopy(listItems, 0, workspaces, 0, listItems.length);
		}
		workspacesData.setRecentWorkspaces(workspaces);
		workspacesData.writePersistedData();
		return true;
	}
	protected void updateRemoveButton() {
		removeButton.setEnabled(workspacesList.getSelectionCount() > 0);
	}
}