Book a Demo

Author Topic: BUG: VS MDG vs RE incompatibility!  (Read 2314 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
BUG: VS MDG vs RE incompatibility!
« on: October 04, 2006, 09:29:18 pm »
[EDIT: The following posting has been edited as a result of background discussions with Sparx]

I deem this defect to be serious.  Hopefully, there is a simple solution.  If there is, I would request that it be made available soon.
I have consulted colleagues and we all agree this appears to be a defect and that it needs to be fixed as soon as practicable!

Setting a package to be a Namespace Root formally defines the UML fully qualified name for the classifier, in the following manner:
Package:        MyPackage    <-Set as Namespace Root
    Classifier:        MyClassifier        (within MyPackage)

The UML fully qualified name for MyClassifier is:   MyClassifier

In the structure:
Package:        MyPackage    <-Set as Namespace Root
    Package:        MySubPackage       (within MyPackage)
        Classifier:        MyClassifier        (within MySubPackage)

The UML fully qualified name for MyClassifier is:   MySubPackage::MyClassifier

Connection via Visual Studio is achieved by associating a single VS Project within a VS Solution with a Package in the model.  Making the connection sets the selected package to be the Namespace Root.

Connection via the Visual Studio MDG link must not not invalidate any structure created by Import Source Directory mechanism (if the folders are in the same structure as the Namespaces).

That is, given that once the connection between a package in the model and its associated VS Project is a loose coupling - so that merging of the model with the code is initiated only on user command (via the Merge with Visual Studio menu item); it should be possible to create a new repository by Import Source Directory then connect each imported package with its Visual Studio project (via Connect External Project) without any changes!

Now if you have a series of overlapping VS Solutions re-using common VS Projects, setting the Namespace Root to the selected package will cause severe problems.  A related thread: Packages, Artifacts and Namespaces discusses similar, but not identical issues.

It seems to us, that the simple expedient of allowing the VS mapping to determine the Namespace Root at connection time (defaulting to the selected package - thus defaulting to the current behaviour) would allow better sharing of common packages among VS solutions.

Sparx have indicated they may look at this in a future unspecified release.

A work-around is available, but it is tiresome and potentially error prone.

Thoughts?  Votes?

Paolo

[Edit:  BTW: Sparx's response returned within 15 mins of reporting the bug - You gotta be impressed!]
« Last Edit: October 06, 2006, 12:57:55 am by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: BUG: VS MDG vs RE incompatibility!
« Reply #1 on: October 06, 2006, 01:00:28 am »
This is just a bump to alert you to a number of corrections to the original posting...

I've been set straight on one of the assumptions  :-[ and I've clarified what and why I think is the bug.

Cheerz,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!