![]() ![]() ![]() Publishing a scriptĮclipse Monkey scripts are short and easily published to blogs, wikis, bugzillas, and all sorts of other places. Learn about these DOM through the examples or by reading the source code of the Eclipse Monkey Standard DOMs plug-in. resources - indirect access to Eclipse IResources through custom wrappers: Resources, File and Line.workspace - direct acccess to the Eclipse IWorkspace object.window - direct access to the Eclipse IWorkbenchWindow object.The DOMs available with this release are: Some DOMs are primitively supported, others are supplied by Eclipse Monkey DOM plug-ins. .(ĭOM objects appear as globals in the script namespace.Here are some valid scripting expressions that show how this works Eclipse objects require that the fully qualified name be prepended with the additional name "Packages". Native Java objects can be accessed through their fully qualified class names. Scripts manipulate script objects such as strings and arrays, native Java objects including native Eclipse objects, and special DOM objects made specifically to simplify scripting. If more than one script specifies the same menu item, the menu item will appear more than once. The Menu: metadata tag specifies that this script is to be included in the Monkey menu. These are placed in the first comment block of the script. Metadata consists of keyword values pairs. Scripts include metadata that specifiy how a script is to be run and (in a future release) additional resources required for successful operation. Scripts are installed in the Monkey menu by placing them in "*.em" files in a top-level "monkey" folder of any project (obviously, scripts are un-installed by renaming or moving them). Scripts are run by selecting a script from the Monkey menu.įuture versions will offer additional ways to run scripts, such as triggering on changes to a files or other resources, or on specific events (e.g., on team synchronize, or on publish war to app server, etc). ![]() To install the examples, use the Create the examples project toolbar button. (If you're reading this outside the Eclipse help system, then Eclipse Monkey might not be installed, in in which case all you need to know is that Eclipse Monkey is an Eclipse feature (a set of plug-ins) that you can install with the Update Manager.)Įclipse Monkey comes with a few example scripts. If you're reading this, Eclipse Monkey is already installed. Monkey scripts are little Javascript programs using either the Eclipse APIs or custom Monkey DOMs. Eclipse Monkey is a dynamic scripting tool for the automation of routine programming tasks. ![]()
0 Comments
Leave a Reply. |