Chapter 6. Extending ArgoUML

Table of Contents

6.1. How do I ...?
6.2. Modules and PlugIns
6.2.1. Differences between modules and plugins
6.2.2. Modules
6.2.3. Plugins
6.2.4. Tip for creating new modules (from Florent de Lamotte)
6.3. How are modules organized in the java code
6.3.1. Requirements on modules
6.3.2. How do I ...?

This section explains some general concepts which come in handy, when developing additions to ArgoUML.

[Warning]Warning

There are two module loading mechanisms, "the old one", and "the new one". This is so because we have made a change of the design used for this in order to simplify the writing of modules.

Eventually "the old module loader" will be removed so for all new additions, the new module loader shall be used.

6.1. How do I ...?

  • ...get the according NS-UML element for a given FigXXX class?

    Each FigXXX implements the method getOwner() which returns the appropriate owner element which is responsible for this Fig element.

  • ...get the according Fig element for a given MModelElement?

    for this one needs to iterate through all fig elements and invoke getOwner. Compare the result with the given MModelElement. Beware that there might be more than one Fig Element per MModelElement.