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
protected void updateButtonsEnableState(IStatus status) {
	    super.updateButtonsEnableState(status);
	    Button addButton = getButton(ADD_ID);
	    if (addButton != null && !addButton.isDisposed())
	        addButton.setEnabled(!status.matches(IStatus.ERROR));
	}
	
	protected void handleShellCloseEvent() {
		super.handleShellCloseEvent();
		
		fList.setElements(fOldContent);
	}	
	protected void cancelPressed() {
		fList.setElements(fOldContent);
		super.cancelPressed();
	}
	
	protected void buttonPressed(int buttonId) {
		if (buttonId == ADD_ID){
			addSelectedInterface();
		}
		super.buttonPressed(buttonId);	
	}
	
	protected void okPressed() {
		addSelectedInterface();
		super.okPressed();
	}
		
	private void addSelectedInterface() {