Bug 44204 Promote individual methods to interface.
Methods should be able to be promoted to an implemented interface. IE interface SomeThing { public DoDad getDoDad(); } class MyThing implements Something { private DoDad doDad=new DoDad(); public DoDad getDoDad() { return doDad; } public void setDoDad(DoDad dad) { this.doDad=dad; } ^^^^^^^^ } Ctrl-1 on the ^'d should produce 'Declare in interface 'Something''. if more than on interface, multiple options should be given, much like what import does. This enhancement would save time copying, pasting and trimming. Regards, Andy
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnresolvedElementsSubProcessor.java
String def= String.valueOf(index + 1);
		
		ASTNode expr= (ASTNode) arguments.get(index);
		if (expr.getLength() > 18) {
			return def;
		}
		try {
			String str= cu.getBuffer().getText(expr.getStartPosition(), expr.getLength());
			for (int i= 0; i < str.length(); i++) {
				if (Strings.isLineDelimiterChar(str.charAt(i))) {
					return def;
				}
			}
			ASTMatcher matcher= new ASTMatcher();
			for (int i= 0; i < arguments.size(); i++) {
				if (i != index && matcher.safeSubtreeMatch(expr, arguments.get(i))) {
					return def;
				}
			}
			return '\'' + str + '\'';
			
		} catch (JavaModelException e) {
			JavaPlugin.log(e);
		}
		return def;
	}
	private static void doMoreArguments(IInvocationContext context, IProblemLocation problem, ASTNode invocationNode, List arguments, ITypeBinding[] argTypes, IMethodBinding methodBinding, Collection proposals) throws CoreException {
		ITypeBinding[] paramTypes= methodBinding.getParameterTypes();
		int k= 0, nSkipped= 0;
		int diff= argTypes.length - paramTypes.length;