Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » straight line without source and target
straight line without source and target [message #196374] Wed, 09 July 2008 20:53 Go to next message
Eclipse UserFriend
Originally posted by: jk6803.yahoo.com

Is it possible to a draw straight line without source and target?.In GMF
generated code, a line should have a source and target but I would want to
draw just a line.

like this ------------------------
Re: straight line without source and target [message #196382 is a reply to message #196374] Wed, 09 July 2008 21:13 Go to previous message
Eclipse UserFriend
Originally posted by: kelvinng.db.gmail.com

Yes, it is possible. You need to extend the PolylineConnectionEx class

http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. gmf.doc/reference/api/runtime/org/eclipse/gmf/runtime/draw2d /ui/figures/PolylineConnectionEx.html

in

your class's OutlineShape method, you should call
setTargetDecoration(null) and setSourceDecoration(null)

~Kelvin Ng

On 2008-07-09 16:53:04 -0400, jk6803@yahoo.com (YJ) said:

> Is it possible to a draw straight line without source and target?.In
> GMF generated code, a line should have a source and target but I would
> want to draw just a line.
> like this ------------------------
Previous Topic:contributionItemProviders extention piont has no effect
Next Topic:Problems Validatin with OCL an atribute of EDataType
Goto Forum:
  


Current Time: Fri Apr 26 05:54:50 GMT 2024

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

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

Back to the top