Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » DirectEditing in two or more texts
DirectEditing in two or more texts [message #900372] Mon, 06 August 2012 17:20 Go to next message
Rui Domingues is currently offline Rui DominguesFriend
Messages: 194
Registered: October 2010
Senior Member
Regarding direct editing, tutorial project just search for all texts and updates the one with Eclass name. But if I want to associate an element attribute to a text and another element attribute to another text, and so forth?

How can I distinguish the texts? have I to provide my model with references to some LabelObject,.. in order to be able to distinguish the diferent elements.

Thanks in advance
Re: DirectEditing in two or more texts [message #900701 is a reply to message #900372] Wed, 08 August 2012 08:33 Go to previous message
Matthias Gorning is currently offline Matthias GorningFriend
Messages: 81
Registered: April 2010
Location: Germany
One way is to set properties (unique keys within the shape) on your graphics algorithm at creation time.

If your feature provider will be asked for a direct editing feature, you can simply distinguish your ga's.

For the property handling you can use these methods from the pe service:

String getPropertyValue(PropertyContainer propertyContainer, String key);
void setPropertyValue(PropertyContainer propertyContainer, String key, String value);

Previous Topic:Collapse/expand
Next Topic:Expand/Collapse Custom Feature
Goto Forum:

Current Time: Mon Apr 15 22:19:58 GMT 2024

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

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

Back to the top