blob: d8e15efc15f1bfb8d013fd594f90cd72be72c132 [file] [log] [blame]
/*=============================================================================#
# Copyright (c) 2005, 2019 Stephan Wahlbrink and others.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# https://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
# which is available at https://www.apache.org/licenses/LICENSE-2.0.
#
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
#
# Contributors:
# Stephan Wahlbrink <sw@wahlbrink.eu> - initial API and implementation
#=============================================================================*/
package org.eclipse.statet.internal.r.core.builder;
import java.util.List;
import org.eclipse.statet.base.core.preferences.TaskTagsPreferences;
import org.eclipse.statet.ltk.issues.core.ITaskTag;
import org.eclipse.statet.ltk.issues.core.impl.TaskMarkerHandler;
import org.eclipse.statet.r.core.RProject;
public class RTaskMarkerHandler extends TaskMarkerHandler {
public static final String TASK_MARKER_ID= "org.eclipse.statet.r.resourceMarkers.Tasks"; //$NON-NLS-1$
public RTaskMarkerHandler() {
super(TASK_MARKER_ID);
}
public void init(final RProject project) {
final TaskTagsPreferences taskPrefs= new TaskTagsPreferences(project.getPrefs());
final List<ITaskTag> taskTags= taskPrefs.getTaskTags();
initTaskPattern(taskTags);
}
}