Пример #1
0
  protected MethodSourceView createMethodView(MethodInfo method) {
    if (method.isInit()) {
      MethodSourceView msv = new EnumInitMethodSourceView(method, this);
      msv.setIndent("    ");
      return msv;
    }

    if (method.isStaticInit()) {
      MethodSourceView msv = new EnumClinitMethodSourceView(method, this);
      msv.setIndent("    ");
      return msv;
    }

    return super.createMethodView(method);
  }