logic example error [message #205553] |
Mon, 19 December 2005 16:48 |
Eclipse User |
|
|
|
Originally posted by: harsh.ti.com
I guess it's a version issue but I am getting a compilation error with the
code below...
protected void refreshVisuals() {
ConnectionLayer cLayer = (ConnectionLayer) getLayer(CONNECTION_LAYER);
if (cLayer.getConnectionRouter() instanceof ShortestPathConnectionRouter)
getContentPane().removeLayoutListener(
((ShortestPathConnectionRouter)cLayer.getConnectionRouter())
.getLayoutListener());
if
(getLogicDiagram().getConnectionRouter().equals(LogicDiagram .ROUTER_MANUAL))
{
AutomaticRouter router = new FanRouter();
router.setNextRouter(new BendpointConnectionRouter());
cLayer.setConnectionRouter(router);
} else if
(getLogicDiagram().getConnectionRouter().equals(LogicDiagram .ROUTER_MANHATTAN))
cLayer.setConnectionRouter(new ManhattanConnectionRouter());
else {
ShortestPathConnectionRouter router =
new ShortestPathConnectionRouter(getFigure());
cLayer.setConnectionRouter(router);
getContentPane().addLayoutListener(router.getLayoutListener( ));
}
}
The compiler complains about the getLayoutListener object not being
defined in the ShortestPathConnectionRouter class.
Any ideas?
Thank you,
Harsh
|
|
|
Re: logic example error [message #205687 is a reply to message #205553] |
Tue, 20 December 2005 16:57 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
What build are you using? It sounds like a pre-3.1 release. Download an
official release and that should solve the problem.
"Harsh" <harsh@ti.com> wrote in message
news:5faea10ed6e95cb947b84d72a1018d0e$1@www.eclipse.org...
>I guess it's a version issue but I am getting a compilation error with the
>code below...
>
> protected void refreshVisuals() {
> ConnectionLayer cLayer = (ConnectionLayer) getLayer(CONNECTION_LAYER);
>
> if (cLayer.getConnectionRouter() instanceof ShortestPathConnectionRouter)
> getContentPane().removeLayoutListener(
> ((ShortestPathConnectionRouter)cLayer.getConnectionRouter())
> .getLayoutListener());
> if
> (getLogicDiagram().getConnectionRouter().equals(LogicDiagram .ROUTER_MANUAL))
> {
> AutomaticRouter router = new FanRouter();
> router.setNextRouter(new BendpointConnectionRouter());
> cLayer.setConnectionRouter(router);
> } else if
> (getLogicDiagram().getConnectionRouter().equals(LogicDiagram .ROUTER_MANHATTAN))
> cLayer.setConnectionRouter(new ManhattanConnectionRouter());
> else {
> ShortestPathConnectionRouter router =
> new ShortestPathConnectionRouter(getFigure());
> cLayer.setConnectionRouter(router);
> getContentPane().addLayoutListener(router.getLayoutListener( ));
> }
> }
>
> The compiler complains about the getLayoutListener object not being
> defined in the ShortestPathConnectionRouter class.
>
> Any ideas?
>
> Thank you,
> Harsh
>
|
|
|
Powered by
FUDForum. Page generated in 0.02562 seconds