Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Updating text in graphiti
Updating text in graphiti [message #676714] Mon, 06 June 2011 09:40 Go to next message
Ashwani Kr Sharma is currently offline Ashwani Kr SharmaFriend
Messages: 119
Registered: July 2009
Location: Bangalore, India
Senior Member

Hi,

I have following scenario:

A rectangle shape S1 for a model element m1.
Inside S1 i have a multitext T1 which shouws m1.getName().
I have linked S1 to m1.

Now, when m1.name is changed from properties tab, i am updating the model element and wants to update the text in S1. How can acheive it ?

Regards,
Ashwani Kr Sharma
Re: Updating text in graphiti [message #676730 is a reply to message #676714] Mon, 06 June 2011 10:52 Go to previous message
Murthy Bhat is currently offline Murthy BhatFriend
Messages: 159
Registered: July 2009
Senior Member
Hi,

I guess you will have to provide a update feature for your model. [Look for TutorialUpdateEClassFeature.java in the tutorial] So when your model changes you will get a 'Name is out of date' error. You will then have to explicitly make a call to update method with a IUpdateContext. Hope it helps.

Regards,
Murthy
Previous Topic:Edit Model using Commands
Next Topic:Collapse/Minimize for shape
Goto Forum:
  


Current Time: Fri Apr 26 23:16:42 GMT 2024

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

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

Back to the top