jTracer  1.03
Stack trace visualization tool
static void org.libcsdbg.jtracer.MainFrame.main ( String[]  argv)
static

Process entry point.

Parameters
[in]argvCommand line argument vector

Definition at line 206 of file MainFrame.java.

References org.libcsdbg.jtracer.Registry.get(), and org.libcsdbg.jtracer.MainFrame.lock.

207  {
208  try {
209  Registry conf = new Registry();
210  conf.setup();
211 
212  Highlighter h = new Highlighter();
213  MainFrame app = new MainFrame();
214 
215  File lockf = conf.getResource("log/.lock");
216  FileOutputStream fs = new FileOutputStream(lockf);
217 
218  app.lock = fs.getChannel().tryLock();
219  if (app.lock == null) {
220  String nm = (String) conf.get("generic", "name");
221  Alert.error(null, nm + " is already running", true);
222  }
223 
224  lockf.deleteOnExit();
225  UIManager.setLookAndFeel((String) conf.get("generic", "lnf"));
226  app.setVisible(true);
227  }
228 
229  catch (Throwable t) {
230  Registry.debug(t);
231  System.exit(1);
232  }
233  }

+ Here is the call graph for this function: