Compiler Window

The compiler window is used to create java objects whose methods can be triggered from expressions in events , MIDI cotrols , filters, etc.

Timeline.compiler.png

Fig. The compiler window

This is an overview of the window (from top to bottom) :-

  • The very top text box shows libraries used these shoud go in the lib dir in the file save directory. The button next to it is for selectin the jars. Once a jar is selected it will reload if change so if more complex java work is being done in another edit then it can be exported as a jar file and will reload in the timeline, and dependenceies will be recompiled.
  • below this, the next text input below is for java imports for the current class, just enter the full class name (with package)
  • below this, the select box allows selection of classes in this file.
  • new classes are created by clicking the "A" (Add) button beside it, then a text box is dispaled to enter the full class name (with package), the a changes to a "Y" to confirm creation of the class.
  • The D button deletes the class.
  • the text box beside the D button is for the superclass declaration (i.e. java keyword extends)
  • The large text box is the java editor, pressing F1 opens the object helper, for looking up classes and methods. The background is green when the class has compiled successfully, red (well, pink) otherwise.
  • The text box under the editor is the test expression input box, for simple testing of the class
  • Under the editor there a number of buttons and checkboxes from left to right, these are:-
    • Generate: saves the java file. (NOT the timeline file)
    • Compile: Compile the class
    • The first check box is for auto-compile, the class is automatically save and compiled so the class checked as you type.
    • The second checkbox tell the compiler to rebuild dependencies, this is to rebuild class that use this class.
    • The third checkbox tell the timeline to re-instantiate objects in the timeline namespace. public fields and properties with getter and setters are copied to the new class, so the state is maintained.
    • Rebuild all rebiulds all classes
    • Execute executes the test expression in the above input box.
    • Save : saves this object in an xml file.
    • Load : loads and object from an xml file.
    • ^ : makes the output window bigger
  • The bottom box is the output window the dispalys errors and build state of the object. these messages ar ealso shown in the log window

This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 1.6.1.13621 - Documentation