blob: 24831e90ce75f5ba0d13c55507f4061e6af285d7 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2001, 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.wst.xsd.ui.internal.adt.design.editparts;
import org.eclipse.draw2d.BendpointConnectionRouter;
import org.eclipse.draw2d.ConnectionLayer;
import org.eclipse.gef.LayerConstants;
import org.eclipse.gef.editparts.ScalableRootEditPart;
public class RootEditPart extends ScalableRootEditPart implements org.eclipse.gef.RootEditPart
{
public void activate()
{
super.activate();
// Set up Connection layer with a router, if it doesn't already have one
ConnectionLayer connectionLayer = (ConnectionLayer) getLayer(LayerConstants.CONNECTION_LAYER);
if (connectionLayer != null)
{
connectionLayer.setConnectionRouter(new BendpointConnectionRouter());
}
refresh();
}
}