Bug 111496 [API] access to AddUnimplementedMethodsOperation
We are using internal jdt calls to perform some of our operations. In order to add method stubs for unimplemented inherited members, we are using the following internal classes / apis - AddMethodStubOperation - IRequestQuery (requried for AddMethodStubOperation) - StubUtility2 (to find unimplemented methods) - ASTNodes - NodeFinder - RefactoringASTParser - JavaPreferenceSettings (to get CodeGenerationSettings for AddMethodStubOperation) We couldn't find public API to replace this usage. This is blocking our effort to remove access to JDT internal source.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java
* 
	 * @see #createType(IProgressMonitor)
	 */		
	protected void createTypeMembers(IType newType, final ImportsManager imports, IProgressMonitor monitor) throws CoreException {
		
		IImportsStructure wrapper= new IImportsStructure() {
			public String addImport(String qualifiedTypeName) {
				return imports.addImport(qualifiedTypeName);
			}
			public String addStaticImport(String qualifiedTypeName, String selector, boolean isField) {
				return qualifiedTypeName + '.' + selector;
			}
		};
		createTypeMembers(newType, wrapper, monitor);
		
		
		
		
		
		
	}
	
	/**
	 * @deprecated Overwrite createTypeMembers(IType, IImportsManager, IProgressMonitor) instead
	 */		
	protected void createTypeMembers(IType newType, IImportsStructure imports, IProgressMonitor monitor) throws CoreException {
		
		if (false) {
			throw new CoreException(JavaUIStatus.createError(IStatus.ERROR, null));
		}