Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » AddGraphicalRepresentation doesn't carry properties
AddGraphicalRepresentation doesn't carry properties [message #986477] Tue, 20 November 2012 15:34 Go to next message
Rui Domingues is currently offline Rui DominguesFriend
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

Re: AddGraphicalRepresentation doesn't carry properties [message #986744 is a reply to message #986477] Wed, 21 November 2012 14:02 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Rui,

right. Would you please file a bugzilla?

Thanks,
Michael
Re: AddGraphicalRepresentation doesn't carry properties [message #986783 is a reply to message #986744] Wed, 21 November 2012 15:47 Go to previous message
Rui Domingues is currently offline Rui DominguesFriend
Messages: 194
Registered: October 2010
Senior Member
Ok.
It's filed: https://bugs.eclipse.org/bugs/show_bug.cgi?id=394801

Thanks
Previous Topic:Export Graphiti diagram image via API
Next Topic:Basic Questions
Goto Forum:
  


Current Time: Thu Apr 25 06:53:46 GMT 2024

Powered by FUDForum. Page generated in 0.02819 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top