Help needed with CommandManager

Help
2011-05-24
2013-05-08
  • Hi all,

    first of all I would like to apologize, if my question is a silly one, but I'm rather new to Groovy language and Groovy Monkey.

    Here's my script:

    /*
     * Menu: test
     * Script-Path: /GroovyMonkeyScripts/monkey/test.gm
     * Kudos: manni
     * License: EPL 1.0
     */
    cmd_manager = org.eclipse.core.commands.CommandManager
    cmd_manager.getAllCommands()
    

    When executed, I get the following error message:

    groovy.lang.MissingMethodException:exception from Groovy: groovy.lang.MissingMethodException: No signature of method: static org.eclipse.core.commands.CommandManager.getAllCommands() is applicable for argument types: () values:
    Possible solutions: getAllCommands(), getCommand(java.lang.String)

    Am I missing something here?
    Can anybody give me a hint?

    Thanks in advance
    Manfred