Examples of Main


Examples of org.locationtech.geogig.web.Main

            CommandFailedException, IOException {

        String loc = repo != null && repo.size() > 0 ? repo.get(0) : ".";

        GeoGIG geogig = loadGeoGIG(loc, cli);
        Application application = new Main(geogig);

        Component comp = new Component();

        comp.getDefaultHost().attach(application);
        comp.getServers().add(Protocol.HTTP, port);
View Full Code Here

Examples of org.mozilla.javascript.tools.debugger.Main

                if ( this.rhinoWindow != null )
                {
                    return;
                }
               
                final Main sdb = new Main("Rhino JavaScript Debugger");
                swingInvoke(new Runnable() {
                    public void run() {
                        sdb.pack();
                        sdb.setSize(640, 640);
                        sdb.setVisible(true);
                    }
                    });
                sdb.setExitAction(new Runnable() {
                    public void run() {
                        sdb.clearAllBreakpoints();
                        sdb.dispose();
                        shutdown();
                    }
                });
                Context.addContextListener(sdb);
                sdb.setScopeProvider(new ScopeProvider() {
                    public Scriptable getScope() {
                        return org.mozilla.javascript.tools.shell.Main.getScope();
                    }
                });
                sdb.addWindowListener( new WindowAdapter() {
                    public void windowClosing(WindowEvent e) {
                        shutdown();
                    }
                });
                this.rhinoWindow = sdb;
View Full Code Here

Examples of org.mozilla.javascript.tools.debugger.Main

     */
    private static Main debugger;

    static synchronized Main getDebugger() {
        if (debugger == null) {
            final Main db = new Main("Cocoon Flow Debugger");
            db.pack();
            Dimension size = Toolkit.getDefaultToolkit().getScreenSize();
            size.width *= 0.75;
            size.height *= 0.75;
            db.setSize(size);
            db.setExitAction(new Runnable() {
                    public void run() {
                        db.setVisible(false);
                    }
                });
            db.setOptimizationLevel(OPTIMIZATION_LEVEL);
            db.setVisible(true);
            debugger = db;
            Context.addContextListener(debugger);
        }
        return debugger;
    }
View Full Code Here

Examples of org.mozilla.javascript.tools.debugger.Main

     */
    static Main debugger;

    static synchronized Main getDebugger() {
        if (debugger == null) {
            final Main db = new Main("Cocoon Flow Debugger");
            db.pack();
            Dimension size = Toolkit.getDefaultToolkit().getScreenSize();
            size.width *= 0.75;
            size.height *= 0.75;
            db.setSize(size);
            db.setExitAction(new Runnable() {
                    public void run() {
                        db.setVisible(false);
                    }
                });
            db.setOptimizationLevel(OPTIMIZATION_LEVEL);
            db.setVisible(true);
            debugger = db;
            Context.addContextListener(debugger);
        }
        return debugger;
    }
View Full Code Here

Examples of org.mozilla.javascript.tools.jsc.Main

   */
  protected void compile(
    String name, File baseDirectory, String encoding
  ) throws LanguageException {
    try {
      Main compiler = (Main) this.compilerClass.newInstance();

      int pos = name.lastIndexOf(File.separatorChar);
      String filename = name.substring(pos + 1);
      String pathname =
        baseDirectory.getCanonicalPath() + File.separator +
        name.substring(0, pos).replace(File.separatorChar, '/');
      String packageName =
        name.substring(0, pos).replace(File.separatorChar, '.');

      String[] args = {
        "-extends",
        "org.apache.cocoon.components.language.markup.xsp.javascript.JSGenerator",
        "-nosource",
        "-O", "9",
        "-package", packageName,
          new StringBuffer(pathname).append(File.separator)
                .append(filename).append(".").append(this.getSourceExtension()).toString()
      };

      compiler.main(args);
    } catch (Exception e) {
      getLogger().warn("JavascriptLanguage.compile", e);
      throw new LanguageException(e.getMessage());
    }
  }
View Full Code Here

Examples of org.multijava.mjc.Main

  public JmlParser parser;

  public Jml2opSem(File file) throws ExceptionJava2opSem {
    super();
    this.file = file;
    Main compiler = new Main( new CModifier( Constants.ACCESS_FLAG_ARRAY,Constants.ACCESS_FLAG_NAMES ) );
    Reader r = null;
    try {
      r = new FileReader(file);
    } catch (FileNotFoundException e) {
      throw new ExceptionJava2opSem("Cannot read " + file + ".");
View Full Code Here

Examples of org.openstreetmap.josm.Main

    Main.platform.preStartupHook();
    Main.pref.init(true);
    Main.pref.putColor(marktr("scale"), Color.decode("#007f7f"));
    Main.pref.put("wmsplugin.alpha_channel", true);
    Main.preConstructorInit(new HashMap<String, Collection<String>>());
    new Main() {
    };

    for (MarkerLayer layer : layers) {
      this.mapView.addLayer(layer);
      layer.setMapView((MapView) this.mapView);
View Full Code Here

Examples of plan_runner.main.Main

    map = pm.putAckers(plan, map);

    LOG.info(ParserUtil.toString(plan));
    LOG.info(ParserUtil.parToString(plan, map));

    new Main(plan, map, parserConfPath);
  }
View Full Code Here

Examples of smooth.demo.Main

* @deprecated use smooth.demo.Main
*/
public class DemoFrame {

    public static void main(String[] args) {
        new Main().start();
    }
View Full Code Here

Examples of starlight.taliis.core.chunks.wdt.MAIN

    super(databuffer);

    try {
      mver = new MVER(buff);
      mphd = new MPHD(buff);
      main = new MAIN(buff);
      mwmo = new MWMO(buff);

      if(databuffer.hasRemaining()
             && chunk.nextChunk(buff).compareTo("FDOM")==0){
        modf = new MODF(buff);
View Full Code Here
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.