| /******************************************************************************* |
| * Copyright (c) 2010 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.javascript.core; |
| |
| import static org.eclipse.dltk.javascript.core.JavaScriptPlugin.PLUGIN_ID; |
| |
| import org.eclipse.dltk.compiler.problem.DefaultProblemFactory; |
| import org.eclipse.dltk.compiler.problem.DefaultProblemSeverityTranslator; |
| import org.eclipse.dltk.compiler.problem.IProblemSeverityTranslator; |
| import org.eclipse.dltk.core.IScriptProject; |
| |
| public class JSProblemFactory extends DefaultProblemFactory { |
| |
| public static final String JS_PROBLEM = PLUGIN_ID + ".jsproblem"; //$NON-NLS-1$ |
| |
| public static final String JS_TASK = PLUGIN_ID + ".jstask"; //$NON-NLS-1$ |
| |
| public static final String JSDOC_PROBLEM = JavaScriptPlugin.PLUGIN_ID |
| + ".jsdocproblem"; |
| |
| @Override |
| protected String getProblemMarkerType() { |
| return JS_PROBLEM; |
| } |
| |
| @Override |
| protected String getTaskMarkerType() { |
| return JS_TASK; |
| } |
| |
| @Override |
| public IProblemSeverityTranslator createSeverityTranslator( |
| IScriptProject project) { |
| return new DefaultProblemSeverityTranslator(project); |
| } |
| |
| } |