Package net.suncrescent.clicker

Source Code of net.suncrescent.clicker.Main

package net.suncrescent.clicker;

import java.awt.AWTException;

import net.suncrescent.clicker.ui.ControlFrame;

import org.apache.log4j.Logger;

public class Main {

  private final static Logger log = Logger.getLogger(Main.class);

  public static void main(final String[] args) {

    // setup options and use args to override default options
    final Options options = new Options();
    options.readArguments(args);

    Main.log.debug("Application started");

    try {
      final ControlFrame frame = new ControlFrame(options);
      frame.setActionSource(new XActionLoader());
      Main.log.debug("Going into SWT");
      frame.display();
    } catch (final AWTException e) {
      Main.log.error(e, e);
    }
    Main.log.debug("Application terminated");
  }

}
TOP

Related Classes of net.suncrescent.clicker.Main

TOP
Copyright © 2018 www.massapi.com. 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.