/****************************************************************************** * Copyright (c) 2016 Oracle * 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: * Shenxue Zhou - initial implementation and ongoing maintenance ******************************************************************************/ package org.eclipse.sapphire.ui.swt.gef; import org.eclipse.sapphire.ui.diagram.layout.DiagramLayoutPersistenceService; /** * @author <a href="mailto:shenxue.zhou@oracle.com">Shenxue Zhou</a> */ public class DiagramConfigurationManager { private SapphireDiagramEditor diagramEditor; private SapphireConnectionRouter connectionRouter; public DiagramConfigurationManager(SapphireDiagramEditor diagramEditor) { this.diagramEditor = diagramEditor; this.connectionRouter = new SapphireConnectionRouter(); } public SapphireDiagramEditor getDiagramEditor() { return this.diagramEditor; } public SapphireConnectionRouter getConnectionRouter() { return this.connectionRouter; } public DiagramLayoutPersistenceService getLayoutPersistenceService() { return this.diagramEditor.getLayoutPersistenceService(); } }