Skip to content
Commit 801d607a authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Automate required namespace/package user interaction on c++ import.

If the type of an imported uml object could not be determined the import
creates an uml class object and flags the stereotype to be "class-or-package".
Such uml objects are displayed in the tree view by a dedicated icon.

If the real type of the related uml object is determined later as a class,
the flag is removed and the uml object is usable as a generic class.

If the real object is a namespace, the flag is removed and the uml object
is set to a package type and could be used as regular created package.
This is possible because the initial created object of type UMLClassifier
is derived from UMLPackage. In the latter case ClassifierWidget paints
the object as Package.

The tree view and classifier widget context menu has been extended to
provide functions to convert a "class or package" uml object to a class
or package.

Because the "class or package" state is flagged in the stereotype, saving
and loading of an umbrello project containing "class or package"
flagged uml objects is completly transparent.

CCBUG:336012
parent f830b058
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment