Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Problem in set property value
Problem in set property value [message #642908] Fri, 03 December 2010 05:11 Go to previous message
123star  is currently offline 123star
Messages: 70
Registered: June 2010
Member
Hi,

I have a Port that is stereotyped with RtFeature, this stereotype has a property named "specification" that is a list.
I'd like to add comments that annotate that port, but when I try with this code it doesn't work:
Object tmp = thePort.getValue(stereoRtFeature, "specification");
		
if(tmp instanceof List){
				
	List specList = (List)tmp;
	specList.add(theComment);
}


How can I add a value to a property that is a list?
Thanks in advance, 123star
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Unable to create 'ResourceSetImpl' instance in Eclipse 3.4.1
Next Topic:Modifying UML2 profile makes stereotype references invalid
Goto Forum:
  


Current Time: Sun May 19 01:57:51 EDT 2013

Powered by FUDForum. Page generated in 0.05724 seconds