/*-------------------------------------------------------------------------------
Copyright (c)2000 TogetherSoft Corporation. Patents pending. All rights reserved.
-------------------------------------------------------------------------------*/

package com.togethersoft.modules.helloworld;

import com.togethersoft.openapi.ide.IdeScript;
import com.togethersoft.openapi.ide.IdeContext;
import com.togethersoft.openapi.ide.IdeAccess;
import com.togethersoft.openapi.ide.window.IdeDialogType;

/**
 * Creates modal window dialog with information message "Hello World!".
 *
 * @author TogetherSoft
 */
public class HelloJava implements IdeScript
{
   /**
    * Runs this module.
    *
    * @param context the IdeContext instance containing
    * the selection information at the moment the module was called.
    */
    public void run(IdeContext context)
    {
        // show message window
        IdeAccess.getWindowManager().showMessageDialog
            ("Message", IdeDialogType.INFORMATION, "Hello World!");
    }
}
