Bug 94255 Implemented Interfaces Section: Adding the same Interface multiple times
Version: 3.1.0 Build id: I20050509-2010 Steps to reproduce: 1.) Create a new Class 2.) Press the "Add..." Button to add an Interface 3.) Type in Cloneable 4.) Press the "Add" Button multiple Times 5.) Press OK Actual Results: The Interface is added multiple times. Expected Results: The Interface is only added once. Regards, Ben
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/SuperInterfaceSelectionDialog.java
TypeInfo[] selection= getSelectedTypes();
		if (selection == null)
			return;
		for (int i= 0; i < selection.length; i++) {
			TypeInfo type= selection[i];
			String qualifiedName= type.getFullyQualifiedName();
			fList.addElement(new StringWrapper(qualifiedName));
			String message= Messages.format(NewWizardMessages.SuperInterfaceSelectionDialog_interfaceadded_info, qualifiedName); 
			updateStatus(new StatusInfo(IStatus.INFO, message));
		}
	}
	
	private static IJavaSearchScope createSearchScope(IJavaProject p) {
		return SearchEngine.createJavaSearchScope(new IJavaProject[] { p });
	}
	
	protected void handleDefaultSelected(TypeInfo[] selection) {
		if (selection.length > 0)
			buttonPressed(ADD_ID);
	}
	
	protected void handleWidgetSelected(TypeInfo[] selection) {
		super.handleWidgetSelected(selection);
		getButton(ADD_ID).setEnabled(selection.length > 0);
	}
	protected void configureShell(Shell newShell) {
		super.configureShell(newShell);
		PlatformUI.getWorkbench().getHelpSystem().setHelp(newShell, IJavaHelpContextIds.SUPER_INTERFACE_SELECTION_DIALOG);
	}
}