[boo]
boojay does eclipse
[ bamboo ] 00:33, Saturday, 27 October 2007

boojay does eclipse
Today history was made. The first eclipse plugin written in boo and compiled down to java bytecodes by boojay has come to life. The plugin is a direct translation of the the plugin described here.
And the boo code:

    """
    Hello World eclipse plugin.

    A direct translation of
    http://www.eclipse.org/articles/Article-Your%20First%20Plug-in/YourFirstPlugin.html
    to boo.
    """
    namespace HelloWorldPlugin

    import org.eclipse.ui
    import org.eclipse.jface.action
    import org.eclipse.jface.dialogs
    import org.eclipse.jface.viewers

    class HelloWorldAction(IWorkbenchWindowActionDelegate):

        activeWindow as IWorkbenchWindow

        def run(proxyAction as IAction):
            shell = activeWindow.getShell()
            MessageDialog.openInformation(shell, "Hello from boojay!", "Hello World!")

        def init(window as IWorkbenchWindow):
            activeWindow = window

        def dispose():
            pass

        def selectionChanged(proxyAction as IAction, selection as ISelection):
            pass



Comments

How many languages can be used to extend Eclipse? All I knew was Java, and now I know Boo. Thanks for creating boojay.

--Li Yang, October 27, 2007 04:21 AM

This is outstanding! All Python devs should switch to boo, either targeting Mono/.NET or Java.

--knocte, October 27, 2007 01:54 PM

Scala comes to mind as another language on top of the JVM that can write Eclipse plugins .

--Tassos Bassoukos, October 30, 2007 10:21 AM

And Groovy of course.

--Paul, June 6, 2008 11:44 PM
Post a comment









Remember personal info?