Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Bug in PolylineConnection#getRoutingConstraint?
Bug in PolylineConnection#getRoutingConstraint? [message #191473] Wed, 10 August 2005 16:21 Go to next message
Andreas Hagerer is currently offline Andreas HagererFriend
Messages: 6
Registered: July 2009
Junior Member
Hello,

I am currently trying to extend a connection router by
a single constraint, e.g. a figure's size.

I noted that the method Polyline#getRoutingConstraint is implemented
as follows:
public Object getRoutingConstraint() {
if (getConnectionRouter() != null)
return (List)getConnectionRouter().getConstraint(this);
else
return null;
}

I would appreciate it if someone could confirm that this is not
properly working.

Thanks,
Andreas
Re: Bug in PolylineConnection#getRoutingConstraint? [message #191490 is a reply to message #191473] Wed, 10 August 2005 16:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

What's not working properly? The constraint is usually set by the
connection editpart. See our examples.

"A. Hagerer" <Andreas.Hagerer@t-online.de> wrote in message
news:ddd9i6$23v$1@news.eclipse.org...
> Hello,
>
> I am currently trying to extend a connection router by
> a single constraint, e.g. a figure's size.
>
> I noted that the method Polyline#getRoutingConstraint is implemented
> as follows:
> public Object getRoutingConstraint() {
> if (getConnectionRouter() != null)
> return (List)getConnectionRouter().getConstraint(this);
> else
> return null;
> }
>
> I would appreciate it if someone could confirm that this is not
> properly working.
>
> Thanks,
> Andreas
>
Re: Bug in PolylineConnection#getRoutingConstraint? [message #191553 is a reply to message #191473] Wed, 10 August 2005 17:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

I have no idea why there is a cast to List when the return type is Object.
You can override this method of course, but we'll remove the cast for 3.1.1.
I've opened:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=106661

"A. Hagerer" <Andreas.Hagerer@t-online.de> wrote in message
news:ddd9i6$23v$1@news.eclipse.org...
> Hello,
>
> I am currently trying to extend a connection router by
> a single constraint, e.g. a figure's size.
>
> I noted that the method Polyline#getRoutingConstraint is implemented
> as follows:
> public Object getRoutingConstraint() {
> if (getConnectionRouter() != null)
> return (List)getConnectionRouter().getConstraint(this);
> else
> return null;
> }
>
> I would appreciate it if someone could confirm that this is not
> properly working.
>
> Thanks,
> Andreas
>
Re: Bug in PolylineConnection#getRoutingConstraint? [message #191581 is a reply to message #191553] Wed, 10 August 2005 17:15 Go to previous message
Eclipse UserFriend
Originally posted by: none.unknown.com

Aah, I didn't even notice that.

"Randy Hudson" <none@us.ibm.com> wrote in message
news:dddcid$5un$1@news.eclipse.org...
> I have no idea why there is a cast to List when the return type is Object.
> You can override this method of course, but we'll remove the cast for
3.1.1.
> I've opened:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=106661
>
> "A. Hagerer" <Andreas.Hagerer@t-online.de> wrote in message
> news:ddd9i6$23v$1@news.eclipse.org...
> > Hello,
> >
> > I am currently trying to extend a connection router by
> > a single constraint, e.g. a figure's size.
> >
> > I noted that the method Polyline#getRoutingConstraint is implemented
> > as follows:
> > public Object getRoutingConstraint() {
> > if (getConnectionRouter() != null)
> > return (List)getConnectionRouter().getConstraint(this);
> > else
> > return null;
> > }
> >
> > I would appreciate it if someone could confirm that this is not
> > properly working.
> >
> > Thanks,
> > Andreas
> >
>
>
Previous Topic:Adding a tree to a figure
Next Topic:Logic Diagram - Selection in Outline View Selects Figure ??
Goto Forum:
  


Current Time: Thu Dec 12 17:25:56 GMT 2024

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

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

Back to the top