tool/cli/templates/skeleton/contrib/source/class/custom/demo/Application.tmpl.js
function()
    {
      // Call super class
      this.base(arguments);

      // Enable logging in debug variant
      if (qx.core.Environment.get("qx.debug"))
      {
        // support native logging capabilities, e.g. Firebug for Firefox
        qx.log.appender.Native;
        // support additional cross-browser console. Press F7 to toggle visibility
        qx.log.appender.Console;
      }

      /*
      -------------------------------------------------------------------------
        Below is your actual application code...
      -------------------------------------------------------------------------
      */

      // Create a button
      var button1 = new ${namespace}.Button("Very special button", "${namespace_as_path}/test.png");

      // Document is the application root
      var doc = this.getRoot();

      // Add button to document at fixed coordinates
      doc.add(button1, {left: 100, top: 50});

      // Add an event listener
      button1.addListener("execute", function(e) {
        alert("Hello World!");
      });
    }
function()
    {
      // Call super class
      this.base(arguments);

      // Enable logging in debug variant
      if (qx.core.Environment.get("qx.debug"))
      {
        // support native logging capabilities, e.g. Firebug for Firefox
        qx.log.appender.Native;
        // support additional cross-browser console. Press F7 to toggle visibility
        qx.log.appender.Console;
      }

      /*
      -------------------------------------------------------------------------
        Below is your actual application code...
      -------------------------------------------------------------------------
      */

      // Create a button
      var button1 = new ${namespace}.Button("Very special button", "${namespace_as_path}/test.png");

      // Document is the application root
      var doc = this.getRoot();

      // Add button to document at fixed coordinates
      doc.add(button1, {left: 100, top: 50});

      // Add an event listener
      button1.addListener("execute", function(e) {
        alert("Hello World!");
      });
    }
function ( ) { // Call super class this . base ( arguments ) ; // Enable logging in debug variant if ( qx . core . Environment . get ( "qx.debug" ) ) { // support native logging capabilities, e.g. Firebug for Firefox qx . log . appender . Native ; // support additional cross-browser console. Press F7 to toggle visibility qx . log . appender . Console ; } /*
      -------------------------------------------------------------------------
        Below is your actual application code...
      -------------------------------------------------------------------------
      */ // Create a button var button1 = new $ { namespace } . Button ( "Very special button" , "${namespace_as_path}/test.png" ) ; // Document is the application root var doc = this . getRoot ( ) ; // Add button to document at fixed coordinates doc . add ( button1 , { left : 100 , top : 50 } ) ; // Add an event listener button1 . addListener ( "execute" , function ( e ) { alert ( "Hello World!" ) ; } ) ; }
This method contains the initial application code and gets called
during startup of the application

@lint ignoreDeprecated(alert)
This method contains the initial application code and gets called during startup of the application