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

package com.togethersoft.modules.tutorial;

import com.togethersoft.openapi.ide.IdeContext;
import com.togethersoft.openapi.ide.IdeScript;
import com.togethersoft.openapi.ide.message.IdeMessageManagerAccess;
import com.togethersoft.openapi.ide.message.IdeMessageType;

/**
 * This is the simplest Together module. This module puts a message into
 * Together message pane.
 *
 * As you can see, Together provides a very flexible way for defining and
 * using custom modules. If you are not interested in using any of Together's
 * features, you can use this module as a skeleton for your custom modules.
 *
 * To use the power of Together in your modules you must use Together's Open APIs
 * (UML,RWI,SCI,IDE). The detailed description of API can be found in Together's
 * installation folder (doc/api directory).
 *
 * Any module must implement IdeScript or IdeStartup or IdeActivatable interface.
 *
 * @author TogetherSoft
 */
public class Lesson01 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)
    {
        // printing message
        IdeMessageManagerAccess.printMessage
            (IdeMessageType.INFORMATION, "This is the simplest Together module.");
    }
}


