blob: 71ede2d9d7c4b4846e765117cfd32fd733cf1bc3 [file] [log] [blame]
david_williams49d24fb2005-04-08 21:16:59 +00001/*******************************************************************************
2 * Copyright (c) 2001, 2005 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
david_williams96643dd2005-04-13 04:35:24 +000011package org.eclipse.wst.html.internal.validation;
paverye6107e62005-02-23 18:01:10 +000012
13import org.eclipse.core.resources.IResource;
14import org.eclipse.core.runtime.CoreException;
15
paverye6107e62005-02-23 18:01:10 +000016/**
paverye6107e62005-02-23 18:01:10 +000017 *
david_williamse59c80f2005-10-03 00:53:44 +000018 * Class to help this Problem's list.
19 *
paverye6107e62005-02-23 18:01:10 +000020 */
david_williamse59c80f2005-10-03 00:53:44 +000021class TaskListHelper {
paverye6107e62005-02-23 18:01:10 +000022 private static TaskListHelper _taskListHelper = null;
23
24 public static TaskListHelper getTaskList() {
25 if (_taskListHelper == null) {
26 _taskListHelper = new TaskListHelper();
27 }
28 return _taskListHelper;
29 }
30
31 /**
32 * This method adds a message to a resource in the task list.
33 */
34 public void addTask(String pluginId, IResource resource, String location, String messageId, String message, int markerType, String targetObjectName, String groupName, int offset, int length) throws CoreException {
35 TaskListUtility.addTask(pluginId, resource, location, messageId, message, markerType, targetObjectName, groupName, offset, length);
36 }
37
38 /**
39 * This method removes all messages from a resource in the task list.
40 */
41 public void removeAllTasks(IResource resource, String owner, String objectName) throws CoreException {
42 TaskListUtility.removeAllTasks(resource, owner, objectName);
43 }
44}