Setting documentation programatically

Hi,

I’m developping a plugin which sets the documentation of a model element programatically.

I use a method like this:



void setDoc(IClass element, String string)
{
	element.setDocumentation(string);
}


The problem is that even if the documentation I set appears in the specification panel of the class, the exported XMI doesn’t contain it, nor the generated documentation.

I get the same behaviour for all the elements that have a setDocument method (IPackage, IOperation etc)

What am I doing wrong?

10x

pappy

Dear Razvan,

Thank you for reporting the problem. I’ve forwarded this problem to our engineers to follow-up. Once there are any feedbacks, I’ll comeback to you immediately. If you have any further questions, please feel free to contact us again.

Best regards,
Rain

Dear Razvan,

Sorry for comeback to you so late. The problem you reported has been fixed and deployed to the VP Suite 2.1 RC2. Could you mind send me your email address so that I can prepare the latest RC2 for you? Please send me your email address to rain@visual-paradigm.com and through private message. If you have any further questions, please feel free to contact us again.

Best regards,
Rain