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
private static final int ADD_ID= IDialogConstants.CLIENT_ID + 1;
	
	private ListDialogField fList;
	private List fOldContent;
	
	public SuperInterfaceSelectionDialog(Shell parent, IRunnableContext context, ListDialogField list, IJavaProject p) {
		super(parent, true, context, createSearchScope(p), IJavaSearchConstants.INTERFACE);
		fList= list;
		
		fOldContent= fList.getElements(); 
		setStatusLineAboveButtons(true);
	}
	protected void createButtonsForButtonBar(Composite parent) {
		createButton(parent, ADD_ID, NewWizardMessages.SuperInterfaceSelectionDialog_addButton_label, true); 
		super.createButtonsForButtonBar(parent);
	}