/[svn]/jsampler/trunk/src/org/jsampler/JSampler.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/JSampler.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 910 by iliev, Thu Mar 16 18:08:34 2006 UTC revision 911 by iliev, Mon Aug 7 18:25:58 2006 UTC
# Line 1  Line 1 
1  /*  /*
2   *   JSampler - a java front-end for LinuxSampler   *   JSampler - a java front-end for LinuxSampler
3   *   *
4   *   Copyright (C) 2005 Grigor Kirilov Iliev   *   Copyright (C) 2005, 2006 Grigor Kirilov Iliev
5   *   *
6   *   This file is part of JSampler.   *   This file is part of JSampler.
7   *   *
# Line 24  package org.jsampler; Line 24  package org.jsampler;
24    
25  import java.awt.Frame;  import java.awt.Frame;
26    
27  import org.jsampler.view.classic.ProgressDlg;  import org.jsampler.view.JSViews;
28    
29  import static org.jsampler.JSI18n.i18n;  import static org.jsampler.JSI18n.i18n;
30    
31    
32  /**  /**
33   *   * The main class of the application.
34   * @author  Grigor Iliev   * @author  Grigor Iliev
35   */   */
36  public class JSampler {  public class JSampler {
37            /** The application name. */
38          public final static String NAME = "JSampler";          public final static String NAME = "JSampler";
39          public final static String VERSION = "0.02a";          
40            /** The application version. */
41            public final static String VERSION = "0.03a";
42                    
43                    
44            /**
45             * The entry point of the application.
46             * @param args The command line arguments.
47             * @see CC#cleanExit
48             */
49          public static void          public static void
50          main(String[] args) {          main(String[] args) {
51                  CC.initJSampler();                  CC.initJSampler();
# Line 50  public class JSampler { Line 58  public class JSampler {
58                    
59          private static void          private static void
60          initGUI() {          initGUI() {
61                  String view = Prefs.getView();                  JSViews.parseManifest();
62                                    JSViews.setView(JSViews.getDefaultView());
                 if(view.equals("classic")) {  
                         CC.setMainFrame(new org.jsampler.view.classic.MainFrame());  
                         CC.setProgressIndicator(new ProgressDlg(CC.getMainFrame()));  
                 } else {  
                         HF.showErrorMessage(i18n.getError("unknownError"), (Frame)null);  
                         CC.cleanExit(-1);  
                         return;  
                 }  
                   
                 CC.getMainFrame().setVisible(true);  
63                                    
64                  CC.initSamplerModel();                  CC.reconnect();
65          }          }
66  }  }

Legend:
Removed from v.910  
changed lines
  Added in v.911

  ViewVC Help
Powered by ViewVC