Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Multiple Labels on One Connection
Multiple Labels on One Connection [message #236058] Fri, 10 July 2009 11:07 Go to next message
amanulhaq is currently offline amanulhaqFriend
Messages: 2
Registered: July 2009
Junior Member
Hi All!

I am very new to GMF and trying to develop simple component connector model,
in which we can connect two components with one connection. Application
works fine. What i am trying to do is to have two labels on link instead of
one. The two properties are "Name" and "Title" (very confusing though). I am
using "Feature Label" to display thse two properties and have used
"Alignment Faced" to make them show on two extreme sides of Connection
(BEGINNING, END).
At this point these two labels show same icon. I can easily make some other
icon to be displayed instead of existing one just be replacement. My goal is
to show two different icons for these two properties. Can anybody please
help me out of it

Best Regards,
- Aman
Re: Multiple Labels on One Connection [message #236456 is a reply to message #236058] Mon, 20 July 2009 11:21 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Aman-Ul-Haq,

Looks like you have to modify XXXEditPart.getLabelIcon() method generated
for the Label.

-----------------
Alex Shatalin
Previous Topic:Template GMF migration from 2.1 to 2.2
Next Topic:Predefined Font
Goto Forum:
  


Current Time: Fri Mar 05 17:16:44 GMT 2021

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

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

Back to the top