Bug 66170 Different implementation of method override - ctrl+space vs Override/Implement method dialog [code manipulation]
I'm in a class that extends Wizard. Seems strange (wrong) to me that when I type "createp" and ctrl+space in the editor I get: public void createPageControls(Composite pageContainer) { // TODO Auto-generated method stub } But when I use the Source > Override/Implement Methods... to get the dialog and select createControl I get: public void createPageControls(Composite pageContainer) { // TODO Auto-generated method stub super.createPageControls(pageContainer); } Why no super in the ctrl+space generation of the overridden method? If by design it seems confusing by design (the inconsistency). This 3.0 behavior is consistent with what happens in 2.1 - but not sure if that means it is right. Feels wrong.
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/CodeCompletionTest.java
} finally {
			part.getSite().getPage().closeAllEditors(false);
		}		
	}
	
	public void testMethodCompletion() throws Exception {
		IPackageFragmentRoot sourceFolder= JavaProjectHelper.addSourceContainer(fJProject1, "src");
		IPackageFragment pack1= sourceFolder.createPackageFragment("test1", false, null);
		StringBuffer buf= new StringBuffer();
		buf.append("package test1;\n");
		buf.append("\n");
		buf.append("import java.io.BufferedWriter;\n");
		buf.append("\n");
		buf.append("public class A {\n");
		buf.append("    private BufferedWriter writer;\n");
		buf.append("    foo//here\n");
		buf.append("}\n");
		String contents= buf.toString();
		
		ICompilationUnit cu= pack1.createCompilationUnit("A.java", contents, false, null);
		IEditorPart part= EditorUtility.openInEditor(cu);
		try {
			String str= "//here";
			int offset= contents.indexOf(str);
			ResultCollector collector= new ResultCollector();
			collector.reset(offset, cu.getJavaProject(), cu);
			collector.setViewer(null);
			collector.setReplacementLength(0);
			collector.setPreventEating(true);
			cu.codeComplete(offset, collector);