blob: 39801de12dcfc51669d56dcc8d08827df5558e9e [file] [log] [blame]
/******************************************************************************
* Copyright (c) 2009 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.gmf.runtime.diagram.ui.view.factories.optimal;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.gmf.runtime.diagram.ui.view.factories.ConnectionViewFactory;
import org.eclipse.gmf.runtime.notation.Connector;
import org.eclipse.gmf.runtime.notation.NotationFactory;
import org.eclipse.gmf.runtime.notation.Style;
import org.eclipse.gmf.runtime.notation.View;
/**
* Factory for {@link org.eclipse.gmf.runtime.notation.Connector} view.
* <p>Styles always present:
* <ul>
* <li>{@link org.eclipse.gmf.runtime.notation.ConnectorStyle}
* </ul>
* </p>
* <p>Smaller memory footprint then Edge + Style.</p>
*
* @author aboyko
* @since 1.2
*
*/
public class ConnectorViewFactory extends ConnectionViewFactory {
@Override
protected Connector createEdge() {
return NotationFactory.eINSTANCE.createConnector();
}
@Override
protected List createStyles(View view) {
return new ArrayList<Style>();
}
}