2006/12/21, Linus Tolke <[EMAIL PROTECTED]>:

 Hello Fabio!



1. Add a Tab in the SettingsDialog or ProjectSettingsDialog (because this
dialogs don't has a reload tabs method)
If GUI.getInstance().addSettingsTab(yourTabClass); doesn't work it is a
bug. Is this what you are saying? You shouldn't have to bother with reload
or updates or whatever, it should have been taken care of by the call.


Yes is a bug (i think) the class ActionSettings in the method
actionPerformed

   public void actionPerformed(ActionEvent event) {
       if (dialog == null) {
           dialog = new SettingsDialog();
       }
       dialog.setVisible(true);
   }

the "if" condition is necesary? or change for something like

   public void actionPerformed(ActionEvent event) {
       if (dialog == null) {
           dialog = new SettingsDialog();
       }
       (SettingsDialog dialog).reloadAllTabs();
       dialog.setVisible(true);
   }

2. Add popupActions to FigNodeModelElement with actions for script module.

I feel the need for a new kind of register… Where shall we put it?


I think that add to the ProjectBrowser o GUI or other singleton classes a
method like addPopupMenu(ArgoMenu), and this method is called into the
FigNodeModelElement.getPopUpActions() method, could be a solution.


           /Linus


  ------------------------------

*From:* Fabio Ospitia Trujillo [mailto:[EMAIL PROTECTED]
*Sent:* den 20 december 2006 23:35
*To:* [email protected]
*Subject:* [argouml-dev] Script Feature



Hi

I am do a module to add script feature to argouml, and must execute of the
follow way.

- When the module is enabled by argouml this added a tab into the
SettingsDialog or ProjectSettingsDialog with the module properties and the
name of "Scripts".
- By now the PNUTS script (https://pnuts.dev.java.net) is supported, but
could handled others. (Grovy, JRuby).
- The module search into the scripts directories, with the follow
structure.

../scripts/pnuts/AndromdaValueObjectToEntity/script.pnuts
../scripts/pnuts/AndromdaEntitytToService/script.pnuts
../scripts/groby/VerifyModel/script.grovy
....

- The module load this scripts and can be executed from the popup menu
when is selected a UML diagram

But, there are two things that i can't do into the module without modify
the argouml code.

1. Add a Tab in the SettingsDialog or ProjectSettingsDialog (because this
dialogs don't has a reload tabs method)
2. Add popupActions to FigNodeModelElement with actions for script module.

There are some way for do it?

Thanks

-Fabio

--
Fabio Ospitia Trujillo
Movil: +34 676 628 890
Madrid - España




--
Fabio Ospitia Trujillo
Movil: +34 676 628 890
Madrid - España

Reply via email to