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:
1 parent
c5beff7ad9
commit
3e28599cf1
1 file changed
+14
-1
+14
-1
@@ -36,6 +36,8 @@
|
||||
|
||||
package net.sourceforge.pmd.eclipse.ui;
|
||||
|
||||
import net.sourceforge.pmd.RulePriority;
|
||||
|
||||
|
||||
/**
|
||||
* This interface groups all plugin constants
|
||||
@@ -133,6 +135,17 @@ public class PMDUiConstants {
|
||||
*/
|
||||
private 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