Compartiment with multiple classes to be added

Is there a way to add two or more attributes from diferent classes in the same compartment?

Thanks

[108 byte] By [LuizRicci] at [2007-12-16]
# 1
Hi Luiz, I'm afraid that's not possible in the DSL Tools at present.

Would it be possible to give a little more detail on your domain model and scenario so we can evaluate it for our candidate feature set?

thanks,
Gareth

GarethJMSFT at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Extensibility...
# 2

I am developing a UML like model, but there are several differences from UML one of them is the attribute types.
Using UML as example I would like to add an Abstract Class called Attribute and several concrete types attributes which inherit from the abstract class.
I would like to add these concrete classes in only one compartment called Attribute instead of creating one compartment for each class.

LuizRicci at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Extensibility...
# 3
Hi Luiz,
I see your problem.

I'm guessing that EITHER this feature or the resolution of your other issue would solve the problem?
Gareth

GarethJMSFT at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Extensibility...
# 4
Exactly ! But when I add a relationship between an abstract class and a concrete one, VS shows me an error. I overcome the problem creating relationships between each concrete type and the X classes.

Would be great if I could associate abstract classes when I am developing the metamodel and later, in the built editor, instantiate concrete classes to "replace" the abstracts

Thanks!

LuizRicci at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Extensibility...
# 5

Luiz

I'm now trying to create exactly the same behaviour in a designer and hoped that the DSL tools would support this.
Any idea's on a solution yet?

Regards,

Jacques

JacquesvantEnde at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Extensibility...
# 6
Hi Jacques,

Honestly, I didnt try with the actual CTP version of DSL tools
To work with this problem I have created one compartment for each type of class.

If you have any diferent solution
Please let me know !

If I find the solution I will post it here

Regards

Luiz Ricci

LuizRicci at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Extensibility...
# 7
Luiz,

It works (good enough to me)!
This is what I did.

Create a "abstract" class in your model and relate that to your 'Entity class'
Then derive classes from the abstract class.

In the designer define the connector for the relation above and bind that to your listAppartment.

Presto, it works!

Regards,

Jacques

JacquesvantEnde at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Extensibility...
# 8
Mapping compartments to relationships to abstract classes is now enabled in DSL Tools December CTP, so Luiz's initial issue shoudl be solved.
GarethJMSFT at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Extensibility...

Visual Studio

Site Classified