FileDocCategorySizeDatePackage
Lesson1.javaAPI DocExample1451Thu Feb 17 20:00:56 GMT 2000com.togethersoft.modules.tutorial

Lesson1.java

/*----------------------------------------------------------------------------
Copyright (c)2000 TogetherSoft LLC. 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 script. As you can see, Together provides a very flexible way for
 * defining and using custom scripts. If you are not interested in using any of Together's features you can use this script as
 * a skeleton for your custom scripts. To use the power of Together in your scripts you must use Together's APIs
 * (UML,RWI,SCI,IDE). The detailed description of them can be found in Together's installation folder (doc/api directory).
 * A script must implement IdeScript interface and define the public run(IdeContext context) method.
 * IdeContext instance contains the current selection. The usage of it will be shown in the other tutorial scripts.
 * @author TogetherSoft LLC
 */
public class Lesson1 implements IdeScript {
    public void run(IdeContext context) {
        IdeMessageManagerAccess.printMessage(IdeMessageType.INFORMATION, "This is the simplest Together script.");
    }
}