Java Code Examples for org.eclipse.core.resources.IMarker#PRIORITY_HIGH

The following examples show how to use org.eclipse.core.resources.IMarker#PRIORITY_HIGH . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TaskMarkerCreator.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
private int getPriority(Priority priority) {
	switch(priority) {
		case HIGH:
			return IMarker.PRIORITY_HIGH;
		case NORMAL:
			return IMarker.PRIORITY_NORMAL;
		case LOW:
			return IMarker.PRIORITY_LOW;
		default:
			return IMarker.PRIORITY_NORMAL;
	}
}
 
Example 2
Source File: TaskTag.java    From APICloud-Studio with GNU General Public License v3.0 5 votes vote down vote up
private static int toIntegerValue(String priority)
{
	if (HIGH.equalsIgnoreCase(priority))
	{
		return IMarker.PRIORITY_HIGH;
	}
	if (LOW.equalsIgnoreCase(priority))
	{
		return IMarker.PRIORITY_LOW;
	}
	return IMarker.PRIORITY_NORMAL;
}
 
Example 3
Source File: TaskTag.java    From APICloud-Studio with GNU General Public License v3.0 5 votes vote down vote up
public String getPriorityName()
{
	switch (fPriority)
	{
		case IMarker.PRIORITY_HIGH:
			return HIGH;
		case IMarker.PRIORITY_LOW:
			return LOW;
		default:
			return NORMAL;
	}
}