/*******************************************************************************
 * Copyright (c) 2005, 2011 IBM Corporation and others.
 *
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jdt.internal.ui.text.javadoc;

import org.eclipse.jdt.core.CompletionProposal;

import org.eclipse.jdt.ui.text.java.CompletionProposalCollector;
import org.eclipse.jdt.ui.text.java.JavaContentAssistInvocationContext;

import org.eclipse.jdt.internal.ui.text.java.JavaCompletionProposalComputer;

/**
 *
 * @since 3.2
 */
public class JavadocCompletionProposalComputer extends JavaCompletionProposalComputer {
	/*
	 * @see org.eclipse.jdt.internal.ui.text.java.JavaCompletionProposalComputer#createCollector(org.eclipse.jdt.ui.text.java.JavaContentAssistInvocationContext)
	 */
	@Override
	protected CompletionProposalCollector createCollector(JavaContentAssistInvocationContext context) {
		CompletionProposalCollector collector= super.createCollector(context);
		collector.setIgnored(CompletionProposal.JAVADOC_TYPE_REF, false);
		collector.setIgnored(CompletionProposal.JAVADOC_FIELD_REF, false);
		collector.setIgnored(CompletionProposal.JAVADOC_METHOD_REF, false);
		collector.setIgnored(CompletionProposal.JAVADOC_PARAM_REF, false);
		collector.setIgnored(CompletionProposal.JAVADOC_VALUE_REF, false);
		collector.setIgnored(CompletionProposal.JAVADOC_BLOCK_TAG, false);
		collector.setIgnored(CompletionProposal.JAVADOC_INLINE_TAG, false);
		collector.setIgnored(CompletionProposal.TYPE_REF, false);
		collector.setIgnored(CompletionProposal.FIELD_REF, false);
		collector.setIgnored(CompletionProposal.METHOD_REF, false);
		return collector;
	}
}
