-
This patch allows to customize the color of the chart's label. It defaults to the current color (70,70,70).
2009-03-06 16:03:36 UTC in pChart
-
This patch makes drawPieLegend more similar to drawLegend.
Now is possible to customize shadow color, text color and surrounding box.
2009-03-06 16:00:46 UTC in pChart
-
Try calling Serialize twice in your code - this is a known issue, but since this kind of indirect referencing is allowed and specified in the XMI standard, it's not a bug. In fact, with nUML is possible for an object to reference objects from another file using xmi:href.
I use this:
driver.Serialize (model, fileName);
//serialized twice in order to avoid spurious...
2009-01-09 12:53:07 UTC in nUML - UML library for .NET
-
Hello Pashec,
I'm glad you found nUML helpful.
Regarding your problem, I had to modify a little bit your code in order to make it work; I replaced
model.OwnedMember.Add(mypkg);
model.OwnedMember.Add(mypkg2);
by
model.NestedPackage.Add(mypkg);
model.NestedPackage.Add(mypkg2);
Other than that, the code compiles and runs fine, producing this output:
<?xml...
2009-01-08 17:41:38 UTC in nUML - UML library for .NET
-
Sorry for the long delay, I was on a trip. I created a new set of files for VS 2008 based on your patch.
Thanks!
2008-10-25 13:47:28 UTC in nUML - UML library for .NET
-
rodolfocampero committed revision 147 to the nUML - UML library for .NET SVN repository, changing 10 files.
2008-10-25 13:44:38 UTC in nUML - UML library for .NET
-
For each superclass of a given class, a nested "generalization" element must be created. This element can have its own "xmi:id" attribute, but that's not necessary. The superclass is specified using the "general" attribute of generalization, using the superclass' xmi:id.
Hope this helps,
Rodolfo.
2008-10-12 20:08:56 UTC in nUML - UML library for .NET
-
Hello,
The problem is that ownedMember is a collection of NamedElements, but Generalization is not a NamedElement. Classifiers are allowed to own Generalizations, under its "generalization" attribute.
Try this (I can't test it right now):
<?xml version="1.0" encoding="utf-8"?>
<xmi:XMI...
2008-10-11 19:06:09 UTC in nUML - UML library for .NET
-
OK, fixed in SVN, revision 143.
This piece of code now works:
using System;
using NUml.Uml2;
using NUml.Xmi2;
class Test
{
public static void Main(string[] args)
{
SerializationDriver driver = new SerializationDriver();
driver.AddSerializer(new NUml.Uml2.Serialization.Serializer());
Model m = Create.Model();
Collaboration c = Create.Collaboration();...
2008-08-09 00:20:07 UTC in nUML - UML library for .NET
-
rodolfocampero committed revision 143 to the nUML - UML library for .NET SVN repository, changing 3 files.
2008-08-09 00:17:40 UTC in nUML - UML library for .NET