Package es.iiia.shapegrammar.enums

Examples of es.iiia.shapegrammar.enums.ShapeGrammarRuleType


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(
View Full Code Here


import es.iiia.shapegrammar.model.ShapeGrammarModel;
import es.iiia.shapegrammar.utils.XmlUtils;

public class RuleCreationFactory {
  public static RuleModel initRuleByType(ShapeGrammarModel model, Element el) {
    ShapeGrammarRuleType type = ShapeGrammarRuleType.valueOf(XmlUtils
        .getTextValue(el, "type"));

    switch (type) {
    case Addition:
      return new RuleAddition(model, el);
View Full Code Here

TOP

Related Classes of es.iiia.shapegrammar.enums.ShapeGrammarRuleType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.