|
Re: Bug in PolylineConnection#getRoutingConstraint? [message #191490 is a reply to message #191473] |
Wed, 10 August 2005 16:42 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03234 seconds