Package org.jboss.forge.shell.util

Examples of org.jboss.forge.shell.util.FormatCallback


         {
            attr = GeneralUtils.calculateOutputAttributs(entry.getValue(), shell, attr);
         }
      }

      FormatCallback formatCallback = new FormatCallback()
      {
         @Override
         public String format(final int column, final String value)
         {
            return value.endsWith("*") ? pipeOut.renderColor(ShellColor.BOLD, value) : value;
View Full Code Here


       * print the results.
       */

      if (list)
      {
         FormatCallback formatCallback = new FormatCallback()
         {
            @Override
            public String format(int column, String value)
            {
               if ((column == 7) && value.endsWith("/"))
               {
                  return shell.renderColor(ShellColor.BLUE, value);
               }
               else
               {
                  return value;
               }
            }
         };

         printOutTables(
                  listBuild,
                  new boolean[] { false, false, false, true, false, false, true, false },
                  out,
                  formatCallback);
      }
      else
      {
         FormatCallback formatCallback = new FormatCallback()
         {
            @Override
            public String format(int column, String value)
            {
               if (value.endsWith("/"))
View Full Code Here

         {
            attr = GeneralUtils.calculateOutputAttributs(entry.getValue(), shell, attr);
         }
      }

      FormatCallback formatCallback = new FormatCallback()
      {
         @Override
         public String format(final int column, final String value)
         {
            return value.endsWith("*") ? pipeOut.renderColor(ShellColor.BOLD, value) : value;
View Full Code Here

       * print the results.
       */

      if (list)
      {
         FormatCallback formatCallback = new FormatCallback()
         {
            @Override
            public String format(int column, String value)
            {
               if ((column == 7) && value.endsWith("/"))
               {
                  return shell.renderColor(ShellColor.BLUE, value);
               }
               else
               {
                  return value;
               }
            }
         };

         try
         {
            shell.bufferingMode();
            printOutTables(
                     listBuild,
                     new boolean[]{false, false, false, true, false, false, true, false},
                     out,
                     formatCallback);
         }
         finally
         {
            shell.directWriteMode();
         }
      }
      else
      {
         FormatCallback formatCallback = new FormatCallback()
         {
            @Override
            public String format(int column, String value)
            {
               if (value.endsWith("/"))
View Full Code Here

         {
            attr = GeneralUtils.calculateOutputAttributs(entry.getValue(), shell, attr);
         }
      }

      FormatCallback formatCallback = new FormatCallback()
      {
         @Override
         public String format(final int column, final String value)
         {
            return value.endsWith("*") ? pipeOut.renderColor(ShellColor.BOLD, value) : value;
View Full Code Here

         {
            attr = GeneralUtils.calculateOutputAttributs(entry.getValue(), shell, attr);
         }
      }

      FormatCallback formatCallback = new FormatCallback()
      {
         @Override
         public String format(final int column, final String value)
         {
            return value.endsWith("*") ? pipeOut.renderColor(ShellColor.BOLD, value) : value;
View Full Code Here

       * print the results.
       */

      if (list)
      {
         FormatCallback formatCallback = new FormatCallback()
         {
            @Override
            public String format(int column, String value)
            {
               if ((column == 7) && value.endsWith("/"))
               {
                  return shell.renderColor(ShellColor.BLUE, value);
               }
               else
               {
                  return value;
               }
            }
         };

         try
         {
            shell.bufferingMode();
            printOutTables(
                     listBuild,
                     new boolean[] { false, false, false, true, false, false, true, false },
                     out,
                     formatCallback);
         }
         finally
         {
            shell.directWriteMode();
         }
      }
      else
      {
         FormatCallback formatCallback = new FormatCallback()
         {
            @Override
            public String format(int column, String value)
            {
               if (value.endsWith("/"))
View Full Code Here

TOP

Related Classes of org.jboss.forge.shell.util.FormatCallback

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.