Last missing class (I hope)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6782 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -36,6 +36,8 @@
|
||||
|
||||
package net.sourceforge.pmd.eclipse.ui;
|
||||
|
||||
import net.sourceforge.pmd.RulePriority;
|
||||
|
||||
|
||||
/**
|
||||
* This interface groups all plugin constants
|
||||
@ -135,4 +137,15 @@ public class PMDUiConstants {
|
||||
super();
|
||||
}
|
||||
|
||||
public static String buttonCodePathFor(RulePriority priority) {
|
||||
|
||||
switch (priority.getPriority()) {
|
||||
case 1: return ICON_BUTTON_PRIO1;
|
||||
case 2: return ICON_BUTTON_PRIO2;
|
||||
case 3: return ICON_BUTTON_PRIO3;
|
||||
case 4: return ICON_BUTTON_PRIO4;
|
||||
case 5: return ICON_BUTTON_PRIO5;
|
||||
default : throw new RuntimeException("unknown priority level");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user