blob: 7cc59c70f7b8f801957f9f86936379fdbd033a21 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011 xored software, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* xored software, Inc. - initial API and Implementation (Alex Panchenko)
*******************************************************************************/
package org.eclipse.dltk.internal.javascript.ti;
import org.eclipse.dltk.compiler.problem.IProblemIdentifierExtension;
import org.eclipse.dltk.javascript.core.JSProblemFactory;
import org.eclipse.dltk.javascript.core.JavaScriptPlugin;
import org.eclipse.dltk.javascript.parser.JSProblemIdentifier;
import org.eclipse.dltk.utils.EnumNLS;
import org.eclipse.osgi.util.NLS;
public enum JSDocProblem implements JSProblemIdentifier,
IProblemIdentifierExtension {
IGNORED_TAG,
DUPLICATE_TAG,
MISSING_PARAMETER_NAME,
UNKNOWN_PARAM,
DUPLICATE_PARAM,
PARAMETER_MISSING_ANNOTATION,
WRONG_TYPE_SYNTAX,
/**
* @since 4.1
*/
WRONG_TYPE_PARAMETERIZATION,
WRONG_SUPPRESS_WARNING,
UNSUPPORTED_TYPEDEF,
TYPE_WITH_TYPEDEF;
private String message;
public String getMessage() {
return message;
}
public String formatMessage(Object... args) {
return NLS.bind(message, args);
}
public String contributor() {
return JavaScriptPlugin.PLUGIN_ID;
}
static {
EnumNLS.initializeMessages(JSDocProblem.values(), "message");
}
public String getMarkerType() {
return JSProblemFactory.JSDOC_PROBLEM;
}
}