Global change

This plug-out defined in C++ allows to do global modification of the artifact, classes, operations, attributes and relations definitions, working recursively from the browser element on which it is applied.

When you change default definitions or declarations in the generation settings, these changes are not propagated in the already existing elements to not broke them. This plug-out allows you to apply these changes if needed on a controlled way.

This plug-out may be applied on a package (including the project itself), class view, deployment view or a class, and works through this dialog :

The filters are optional are allow to not do the change on all the potential definitions and declarations. An empty filter is ignored, else a filter may be used to consider the forms containing it (with is set) or not containing it (without is set). When you have several filters you may conjugate them with and or or, the priority of and and or are the standard ones (like in C++ Java Php or Python). In case you have one filter, you must use filter 1. In case you have two filters you must use filter 1 and 2.

It is also possible to filter through the stereotype. Choose any to not consider the stereotypes, is to consider only the elements having the specified stereotype (may be an empty one), and is not to not consider the elements having the specified stereotype (may be an empty one).

Several targets may be set, to choose on which kind of elements the change must be done.

Several languages may be set too, to choose for which language the definition / declarations the changes must be done.

Current indicates the current form to be changed, new the value, the substitution being done on the element definitions / declarations compatible with all the previous indications.

Notes : except for the stereotype where there are not available, a \n is used to indicate a line break and a \t indicates a tab in the inputs. At most one replacement is done by form.

Examples of use :

When you ask for a replacement, a dialog indicate how many changes was done, and may be how many can't be done because it is not possible to set the definition / declaration of a read only element.

Warning, global changes may have dramatic consequences when the filtering is not sufficient,because you can't undo them it is a good idea to save the project before changes !

Previous : Deploy classes

Next : plug-outs