コード例 #1
0
 public void showErrorMessage(SNode node, String message) {
   SNode inputNode = (node != null) ? node : getInputNode();
   SNodeReference tn = getTemplateNodeRef();
   SNodeReference rnr = getRuleNode();
   myGenerator
       .getLogger()
       .error(
           rnr == null ? tn : rnr,
           message,
           GeneratorUtil.describeIfExists(inputNode, "input node"),
           GeneratorUtil.describeIfExists(tn, "template node"));
 }
コード例 #2
0
 private ProblemDescription[] getErrorDescriptions() {
   return new ProblemDescription[] {GeneratorUtil.describe(getInputNode(), "input node")};
 }