You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by vh...@apache.org on 2001/05/08 00:47:05 UTC

cvs commit: xml-batik/sources/org/apache/batik/apps/svgbrowser Main.java

vhardy      01/05/07 15:47:04

  Modified:    sources/org/apache/batik/apps/svgbrowser Main.java
  Log:
  Added missing user feedback as pointed out by Neeme Praks.
  
  Revision  Changes    Path
  1.6       +16 -3     xml-batik/sources/org/apache/batik/apps/svgbrowser/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/sources/org/apache/batik/apps/svgbrowser/Main.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Main.java	2001/03/30 15:13:08	1.5
  +++ Main.java	2001/05/07 22:47:03	1.6
  @@ -25,6 +25,7 @@
   import javax.swing.AbstractAction;
   import javax.swing.Action;
   import javax.swing.ImageIcon;
  +import javax.swing.JOptionPane;
   import javax.swing.UIManager;
   
   import javax.swing.plaf.FontUIResource;
  @@ -37,7 +38,7 @@
    * This class contains the main method of an SVG viewer.
    *
    * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
  - * @version $Id: Main.java,v 1.5 2001/03/30 15:13:08 hillion Exp $
  + * @version $Id: Main.java,v 1.6 2001/05/07 22:47:03 vhardy Exp $
    */
   public class Main implements Application {
   
  @@ -46,6 +47,7 @@
        * @param args The command-line arguments.
        */
       public static void main(String[] args) {
  +        javax.swing.JOptionPane.showMessageDialog(null, "Starting latest Batik");
           new Main(args).run();
       }
   
  @@ -121,7 +123,7 @@
       public Main(String[] args) {
           arguments = args;
           CSSDocumentHandler.setParserClassName
  -            (resources.getString(CSS_PARSER_CLASS_NAME_KEY));
  +        (resources.getString(CSS_PARSER_CLASS_NAME_KEY));
       }
   
       /**
  @@ -153,8 +155,19 @@
                           (file.toURL().toString());
                       frame = null;
                   } else {
  -                    // Should let the user know that we are
  +                    // Let the user know that we are
                       // skipping this file...
  +
  +                    // Note that frame may be null, which is 
  +                    // a valid argument for showMessageDialog
  +
  +                    // NOTE: Need to revisit Resources/Messages usage to
  +                    //       have a single entry point. Should have a 
  +                    //       formated message here instead of a + ...
  +                    JOptionPane.showMessageDialog
  +                        (frame, 
  +                         resources.getString("Error.skipping.file") 
  +                         + file.getAbsolutePath());
                   }
                   i++;
               }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org