use of net.sourceforge.pmd.eclipse.ui.LabelProvider in project pmd-eclipse-plugin by pmd.
the class RulePanelManager method buildPriorityControls.
private void buildPriorityControls(Composite parent) {
Label priorityLabel = buildLabel(parent, StringKeys.PREF_RULEEDIT_LABEL_PRIORITY);
GridData data = new GridData();
data.horizontalSpan = 1;
priorityLabel.setLayoutData(data);
priorityCombo = buildPriorityCombo(parent);
priorityDisplay = new ShapePicker(parent, SWT.NONE, 14);
priorityDisplay.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 4, 1));
priorityDisplay.setShapeMap(UISettings.shapesByPriority());
priorityDisplay.tooltipProvider(new LabelProvider() {
public String labelFor(Object item) {
return UISettings.labelFor((RulePriority) item);
}
});
priorityDisplay.setSize(120, 25);
}
Aggregations