Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » logic example error
logic example error [message #205553] Mon, 19 December 2005 16:48 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
Previous Topic:Can Connections be clustered and explanded?
Next Topic:popup menu
Goto Forum:
  


Current Time: Mon Jan 20 17:17:27 GMT 2025

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

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

Back to the top