title: How to add custom check message in checkStyle custom check from configuration box
body: <p>I am going through adding custom check as eclipse-cs plugin, and stuck with a problem.</p>
  
  <p>I have created the java file with custom check. The check is working, but i can't change the custom check message as the box is not there. </p>
  
  <p>Java file looks like following : </p>
  
  <pre><code>package myCheck.checks;
  
  import com.puppycrawl.tools.checkstyle.api.Check;
  import com.puppycrawl.tools.checkstyle.api.DetailAST;
  import com.puppycrawl.tools.checkstyle.api.TokenTypes;
  
  public class MethodLimitCheck extends Check {
  
      private int max = 30;
  
      public int[] getDefaultTokens() {
          return new int[] { TokenTypes.CLASS_DEF, TokenTypes.INTERFACE_DEF };
      }
  
      public void setMax(int limit) {
          max = limit;
      }
  
      public void visitToken(DetailAST ast) {
          // find the OBJBLOCK node below the CLASS_DEF/INTERFACE_DEF
          DetailAST objBlock = ast.findFirstToken(TokenTypes.OBJBLOCK);
          // count the number of direct children of the OBJBLOCK
          // that are METHOD_DEFS
          int methodDefs = objBlock.getChildCount(TokenTypes.METHOD_DEF);
          // report error if limit is reached
          if (methodDefs &gt; max) {
              log(ast.getLineNo(), "methodlimit", max);
          }
      }
  }
  </code></pre>
  
  <p>The configuration box looks like:</p>
  
  <p><img src="https://i.stack.imgur.com/wKiaP.png" alt="enter image description here"></p>
  
  <p>I can't change the custom message from here. I want the Box to look like this, so I can set custom message from configuration box: </p>
  
  <p><img src="https://i.stack.imgur.com/8tJRP.png" alt="enter image description here"></p>
  
  <p>What changes to make in my code or any file to make this work? </p>