blob: cab72588db422f9d4a8cfae513753848384a96ea [file] [log] [blame]
nitindb2adeab2005-06-03 20:10:06 +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 *
11 *******************************************************************************/
12package org.eclipse.wst.sse.core.internal.provisional.tasks;
13
14import org.eclipse.core.resources.IMarker;
15
nitind11f1e702005-06-13 22:57:29 +000016/**
17 * Simple representation of the values that make up a Task Tag
18 */
nitindb2adeab2005-06-03 20:10:06 +000019public final class TaskTag {
20
21 public static final int PRIORITY_HIGH = IMarker.PRIORITY_HIGH;
22 public static final int PRIORITY_LOW = IMarker.PRIORITY_LOW;
23 public static final int PRIORITY_NORMAL = IMarker.PRIORITY_NORMAL;
24
nitind11f1e702005-06-13 22:57:29 +000025 /**
26 * this task tag's priority
27 */
nitindb2adeab2005-06-03 20:10:06 +000028 private int fPriority = PRIORITY_NORMAL;
nitind11f1e702005-06-13 22:57:29 +000029
30 /**
31 * this task tag's "tagging" text
32 */
nitindb2adeab2005-06-03 20:10:06 +000033 private String fTag = null;
34
35 public TaskTag(String tag, int priority) {
36 super();
37 fTag = tag;
38 fPriority = priority;
39 }
40
41 public int getPriority() {
42 return fPriority;
43 }
44
45 public String getTag() {
46 return fTag;
47 }
48
49 public String toString() {
david_williamsbd596282005-06-07 22:10:42 +000050 return getTag() + ":" + getPriority(); //$NON-NLS-1$
nitindb2adeab2005-06-03 20:10:06 +000051 }
52}