Bug 93564 Preference setting for @Override annotation
20050503 The story for adding the @Override annotation is currently abit confusing. Only the override dialog offers to add the annotation, all other override actions (quick fix, code assist) don't add it. A code style preference setting should be added to be used by all of them and the override wizatd checkbox removed. Requesting PMC approval for new the preference constant /** * A named preference that controls whether to add a override annotation for newly created methods * <p> * Value is of type <code>Boolean</code>. * </p> * @since 3.1 */ PreferenceConstants.CODEGEN_USE_OVERRIDE_ANNOTATION
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java
private final static String DIALOGSETTINGS_ADDCOMMENTS= "NewTypeWizardPage.add_comments"; 
	
	
	protected final static String PACKAGE= PAGE_NAME + ".package";	 
	
	protected final static String ENCLOSING= PAGE_NAME + ".enclosing"; 
	
	protected final static String ENCLOSINGSELECTION= ENCLOSING + ".selection"; 
		
	protected final static String TYPENAME= PAGE_NAME + ".typename"; 
	
	protected final static String SUPER= PAGE_NAME + ".superclass"; 
	
	protected final static String INTERFACES= PAGE_NAME + ".interfaces"; 
	
	protected final static String MODIFIERS= PAGE_NAME + ".modifiers"; 
	
	protected final static String METHODS= PAGE_NAME + ".methods"; 
	private class InterfacesListLabelProvider extends LabelProvider {
		
		private Image fInterfaceImage;
		
		public InterfacesListLabelProvider() {
			super();
			fInterfaceImage= JavaPluginImages.get(JavaPluginImages.IMG_OBJS_INTERFACE);
		}
		
		public String getText(Object element) {
			return ((StringWrapper) element).getString();
		}