コード例 #1
0
  /**
   * @see
   *     org.modelio.api.module.commands.DefaultModuleContextualCommand#actionPerformed(java.util.List,
   *     org.modelio.api.module.IModule)
   */
  @Override
  public void actionPerformed(List<MObject> selectedElements, IModule module) {

    this.logService.info(module, "HelloWorldCommand - actionPerformed(...)");

    IModelingSession session = Modelio.getInstance().getModelingSession();
    List<MObject> root = session.getModel().getModelRoots();
    IModuleUserConfiguration configuration = module.getConfiguration();

    ModelElement modelelt = (ModelElement) selectedElements.get(0);
    MessageDialog.openInformation(null, "Hello", modelelt.getName());
  }
コード例 #2
0
 /** Constructor. */
 public HelloWorldCommand() {
   super();
   // services logs
   this.logService = Modelio.getInstance().getLogService();
 }