AddGraphicalRepresentation doesn't carry properties [message #986477] |
Tue, 20 November 2012 15:34 |
Rui Domingues Messages: 194 Registered: October 2010 |
Senior Member |
|
|
Hi.
In AbstractFeature class, we have this method, which we can invoke in order to achieve a visual representation of our object. I think this doesn't handle properties.
protected PictogramElement addGraphicalRepresentation(IAreaContext context, Object newObject) {
return getFeatureProvider().addIfPossible(new AddContext(context, newObject));
}
If one, explicitlly puts a property in the context and call addGraphicalRepresentation, the constructor AddContext does not copy the properties, so properties never get on destination feature. Am I right?
Thanks
[Updated on: Tue, 20 November 2012 15:34] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02819 seconds