1.1 --- a/launcher/src/main/java/org/apidesign/bck2brwsr/launcher/Console.java Tue Jan 22 19:16:38 2013 +0100
1.2 +++ b/launcher/src/main/java/org/apidesign/bck2brwsr/launcher/Console.java Tue Jan 22 19:21:34 2013 +0100
1.3 @@ -34,12 +34,6 @@
1.4 static {
1.5 turnAssetionStatusOn();
1.6 }
1.7 - public static String welcome() {
1.8 - return "HellofromBck2Brwsr";
1.9 - }
1.10 - public static String multiply() {
1.11 - return String.valueOf(Integer.MAX_VALUE / 2 + Integer.MAX_VALUE);
1.12 - }
1.13
1.14 @JavaScriptBody(args = {"id", "attr"}, body =
1.15 "return window.document.getElementById(id)[attr].toString();")
2.1 --- a/launcher/src/main/resources/org/apidesign/bck2brwsr/launcher/console.xhtml Tue Jan 22 19:16:38 2013 +0100
2.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
2.3 @@ -1,52 +0,0 @@
2.4 -<?xml version="1.0" encoding="UTF-8"?>
2.5 -<!--
2.6 -
2.7 - Back 2 Browser Bytecode Translator
2.8 - Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
2.9 -
2.10 - This program is free software: you can redistribute it and/or modify
2.11 - it under the terms of the GNU General Public License as published by
2.12 - the Free Software Foundation, version 2 of the License.
2.13 -
2.14 - This program is distributed in the hope that it will be useful,
2.15 - but WITHOUT ANY WARRANTY; without even the implied warranty of
2.16 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2.17 - GNU General Public License for more details.
2.18 -
2.19 - You should have received a copy of the GNU General Public License
2.20 - along with this program. Look for COPYING file in the top folder.
2.21 - If not, see http://opensource.org/licenses/GPL-2.0.
2.22 -
2.23 --->
2.24 -<!DOCTYPE html>
2.25 -<html xmlns="http://www.w3.org/1999/xhtml">
2.26 - <head>
2.27 - <title>Bck2Brwsr Launcher</title>
2.28 - </head>
2.29 - <body>
2.30 - <script src="/bck2brwsr.js"></script>
2.31 - <script src="/vm.js"></script>
2.32 -
2.33 - <h1>Bck2Browser Console Launcher</h1>
2.34 -
2.35 - Class Name:
2.36 - <input id="clazz" value="$0"/>
2.37 - <br/>
2.38 - Method Name:
2.39 -
2.40 - <input id="method" value="$1"/>
2.41 - <br/>
2.42 -
2.43 - <button onclick="vm.loadClass('org.apidesign.bck2brwsr.launcher.Console').execute__V();">Execute!</button>
2.44 -
2.45 - <hr/>
2.46 - <textarea id="result" rows="10" cols="80" disabled="">
2.47 - </textarea>
2.48 -
2.49 - <script type="text/javascript">
2.50 - if ($2) {
2.51 - vm.loadClass('org.apidesign.bck2brwsr.launcher.Console').execute__V();
2.52 - }
2.53 - </script>
2.54 - </body>
2.55 -</html>