Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » How can I use my AutomaticRouter?
How can I use my AutomaticRouter? [message #148006] Mon, 27 August 2007 23:29 Go to next message
Eclipse UserFriend
Dear all,

The only AutomaticRouter realized in gmf is FanRouter,but now I want
use another AutomaticRouter to give more functions such as when two line
are metches(even when their sources and ends are not the same), the
algorithom can also identified, and can give some nice solutions.

But currently I have a problem, I noticed that the defalut
connectionLayer registered is ConnectionLayerEx,when get ObliqueRouter
from the layer, it returns the FanRouter.

I don't know how can I register my ConnectionLayer, or whether if there
are other nice ways to achieve that goal. Please give me some
suggestions about this.

Thank you!
Re: How can I use my AutomaticRouter? [message #148120 is a reply to message #148006] Tue, 28 August 2007 16:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vinsarwate.rediffmail.com

Hi,

Not sure but there is "installRouter" method available in
ConnectionEditPart. Is it possible to use this method for having custom
router ?

Thanks,
Vinay
Re: How can I use my AutomaticRouter? [message #148122 is a reply to message #148120] Tue, 28 August 2007 20:42 Go to previous messageGo to next message
Eclipse UserFriend
Thank you Vinay,

The installRouter() method needs the support of the ConnectionLayer,
which applied getXXXRouter() method. But the default ConnectionLayer is
the ConnectionLayerEx, I have no idear about how to change it. I can
override the methods in my own way, but I don't know how the new
ConnectionLayerEx be used.

Could any one give me some more help?


Thanks,
Nemo








Vinay 写道:
> Hi,
>
> Not sure but there is "installRouter" method available in
> ConnectionEditPart. Is it possible to use this method for having custom
> router ?
>
> Thanks,
> Vinay
>
Re: How can I use my AutomaticRouter? [message #149442 is a reply to message #148122] Thu, 06 September 2007 11:44 Go to previous message
Eclipse UserFriend
Nemo,

Is this the same issue?
https://bugs.eclipse.org/bugs/show_bug.cgi?id=149861

- Cherie

nemo wrote:
> Thank you Vinay,
>
> The installRouter() method needs the support of the ConnectionLayer,
> which applied getXXXRouter() method. But the default ConnectionLayer is
> the ConnectionLayerEx, I have no idear about how to change it. I can
> override the methods in my own way, but I don't know how the new
> ConnectionLayerEx be used.
>
> Could any one give me some more help?
>
>
> Thanks,
> Nemo
>
>
>
>
>
>
>
>
> Vinay 写道:
>> Hi,
>>
>> Not sure but there is "installRouter" method available in
>> ConnectionEditPart. Is it possible to use this method for having
>> custom router ?
>>
>> Thanks,
>> Vinay
>>
Previous Topic:Change connection ends programatically
Next Topic:How to create edit part for specialized model object
Goto Forum:
  


Current Time: Thu Mar 13 15:14:25 EDT 2025

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

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

Back to the top