Exemplo n.º 1
0
 @Override
 protected CommandExecutionResult executeArg(ClassDiagram diagram, List<String> arg) {
   final Code code = Code.of(arg.get(0));
   final String stereotype = arg.get(1);
   final IEntity entity = diagram.getOrCreateLeaf(code, null, null);
   entity.setStereotype(
       new Stereotype(
           stereotype,
           diagram.getSkinParam().getCircledCharacterRadius(),
           diagram.getSkinParam().getFont(FontParam.CIRCLED_CHARACTER, null, false),
           diagram.getSkinParam().getIHtmlColorSet()));
   return CommandExecutionResult.ok();
 }