/** * @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()); }
/** Constructor. */ public HelloWorldCommand() { super(); // services logs this.logService = Modelio.getInstance().getLogService(); }