Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to add Custom ConnectionRouter to GMF Appearance Properties View
How to add Custom ConnectionRouter to GMF Appearance Properties View [message #121244] Mon, 23 April 2007 08:35 Go to next message
Eclipse UserFriend
Originally posted by: umamahesh.pramati.com

Hi,

I am trying to add ManhattanConnectionRouter to the existing
ConnectionRouters like Oblique ,Rectilinear and Tree in the GMF Appearance
Properties View. This seems to be difficult as the Properties View is
working based on Routing class which is a final class and has private
constructor. Is there a way to add this to Properties? If not, Could
anyone help me to set ManhattanConnectionRouter as ConnectionRouter.

Thanking you in anticipation!

Thanks,
Uma Mahesh
Re: How to add Custom ConnectionRouter to GMF Appearance Properties View [message #121252 is a reply to message #121244] Mon, 23 April 2007 08:59 Go to previous messageGo to next message
Eclipse UserFriend
By the way, ManhattanRouter is the Rectilinear Router ;-)

If you want to set ManhattanRouter as default router add to
DiagramPreferenceInitializer#initializeDefaultPreferences the following
line:
getPreferenceStore().setValue(IPreferenceConstants.PREF_LINE _STYLE,Routing.RECTILINEAR);

Uma Mahesh schrieb:
> Hi,
>
> I am trying to add ManhattanConnectionRouter to the existing
> ConnectionRouters like Oblique ,Rectilinear and Tree in the GMF
> Appearance Properties View. This seems to be difficult as the Properties
> View is working based on Routing class which is a final class and has
> private constructor. Is there a way to add this to Properties? If
> not, Could anyone help me to set ManhattanConnectionRouter as
> ConnectionRouter.
>
> Thanking you in anticipation!
>
> Thanks,
> Uma Mahesh
>
>
Re: How to add Custom ConnectionRouter to GMF Appearance Properties View [message #121460 is a reply to message #121252] Tue, 24 April 2007 05:17 Go to previous message
Eclipse UserFriend
Originally posted by: umamahesh.pramati.com

Thanks Andreas. Worked for me.
Previous Topic:Zoom support to innner figure
Next Topic:Creating links between links
Goto Forum:
  


Current Time: Wed Jul 02 20:54:16 EDT 2025

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

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

Back to the top