StyledString text(ImportExpression ele) { // StyledString label = new StyledString("import declaration" + (ele.getValues().size() >1 ? "s" // : "")); List<EObject> names = Lists.newArrayList(); names.addAll(ele.getValues()); StyledString label = new StyledString("import "); appendStyled(label, literalNames(names), EXPR_STYLER); return label; }
public Object image(ImportExpression element) { if (element.getValues().size() <= 1) return IMPORT; return IMPORTS; }