| I successfully configured my favorite Java IDE, IntelliJ? IDEA to support SuperWaba, maybe this steps will helpful for someone just like me: 1)Create a new project. Select File->Project Properties->Paths->Libraries->Add->Configure and create a library named SuperWaba in IDEA. Add SuperWaba.jar into this library and add the library into your project. 2)Select Options->File Templates, insert a new template named 'SuperWaba MainWindow?', and the following code in content field: package ${PACKAGE_NAME}; #parse("File Header.java") import waba.ui.*; import waba.fx.*; public class ${NAME} extends MainWindow? { String col0[] = {"Options","Cut","Copy","Paste"}; String col1[] = {"About ${NAME}","Info"}; public ${NAME}() { setDoubleBuffer(true); setBorderStyle(TAB_ONLY_BORDER); setTitle("${NAME}"); setMenuBar(new MenuBar?(new String[][]{col0,col1})); } public void onStart() { } public void onEvent(Event event) { } public void onPaint(Graphics g) { } } This template are copied form MobileCreator PL, and you can add more templates as you wish. 3)Now you can right click anywhere in your source code folder, select New->SuperWaba MainWindow? and create a mainwindow in seconds. In the newly created source file, you automaticly get syntax highlight, code complete and other goodies of IntelliJ? IDEA! 4)To test your code in Waba Applet, select File->Project Properties->Run/Debug->Application, insert a new configuration named 'AppletRunner', set 'waba.applet.Applet' as the main class, and the path to your project as the working directory, and the mainwindow class as the program parameter. Then you can click Shift+F10 to see your SuperWaba program up and running! (Could someone please post a wiki for steps to deploy and run programs in Palm emulator or simulator from IntelliJ? IDEA?) 5)You can also import ant build file from SuperWaba sample projects and let ant task automaticly create *.PDB, *.PRC files from your source code. 6)A tip for programmers using Simplified Chinese version of Windows just like me, or other Far East Asia versions of Windows: the code complete hotkey of IntelliJ? IDEA, Ctrl-Space conflicts with system IME, you can select Options->Keymaps, make a copy of Default keymap, and change the hotkey of code complete under Main Window->Code->Complete Code->Basic to Alt-/. Then in your source code, press Alt-/ and see what IDEA suggests! ;-) Have fun!! Greetings form China, Happy Chinese Lunar Year! -- RichardYu - 18 Jan 2004 |
| Topic ConfigIntelliJIDEAForSuperWaba . { Edit | Attach | Ref-By | Printable | Diffs | r1.1 | More } |
|
Revision r1.1 - 18 Jan 2004 - 15:54 GMT - RichardYu Parents: WebHome > SuperWabaDocs |
Copyright© 2002-2004 Superwaba. The Palm OS and Windows CE logos are registered trademarks of their copyright owners. All material on this collaboration platform is the property of the contributing authors. Ideas, requests, problems regarding Superwaba ? Send feedback. |