import es.iiia.shapegrammar.rule.RuleModel;
public class RuleLabelProvider implements ILabelProvider {
public Image getImage(Object element) {
ShapeGrammarRuleType type = (((RuleModel) element).getRuleType());
if (type.equals(ShapeGrammarRuleType.Addition)) {
return this.getImage("icons/rule_addition.png");
} else if (type.equals(ShapeGrammarRuleType.Modification)) {
return this.getImage("icons/rule_modification.png");
}
return this.getImage("icons/rule_substitution.png");
//return PlatformUI.getWorkbench()..getSharedImages().getImage(