X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.diagram%2Fsrc%2Forg%2Fsimantics%2Fdiagram%2Fsymbolcontribution%2FEmptySymbolProviderFactory.java;h=81042a2102475608de7840924733b50ac0265332;hb=a96e5125d72579c43abd70eb5c23de835324eaad;hp=6f73ba55cf390c056fa331a1a3f884d1674a3dae;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.diagram/src/org/simantics/diagram/symbolcontribution/EmptySymbolProviderFactory.java b/bundles/org.simantics.diagram/src/org/simantics/diagram/symbolcontribution/EmptySymbolProviderFactory.java index 6f73ba55c..81042a210 100644 --- a/bundles/org.simantics.diagram/src/org/simantics/diagram/symbolcontribution/EmptySymbolProviderFactory.java +++ b/bundles/org.simantics.diagram/src/org/simantics/diagram/symbolcontribution/EmptySymbolProviderFactory.java @@ -1,38 +1,38 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * 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: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.diagram.symbolcontribution; - -import org.simantics.db.ReadGraph; -import org.simantics.db.exception.DatabaseException; - -/** - * @author Tuukka Lehtonen - */ -public class EmptySymbolProviderFactory implements SymbolProviderFactory { - - public static final EmptySymbolProviderFactory INSTANCE = new EmptySymbolProviderFactory(); - - static class SymbolProvider extends AbstractSymbolProvider { - public SymbolProvider() { - super(); - lockGroups(); - } - } - - SymbolProvider PROVIDER = new SymbolProvider(); - - @Override - public ISymbolProvider create(ReadGraph g) throws DatabaseException { - return PROVIDER; - } - -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * 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: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.diagram.symbolcontribution; + +import org.simantics.db.ReadGraph; +import org.simantics.db.exception.DatabaseException; + +/** + * @author Tuukka Lehtonen + */ +public class EmptySymbolProviderFactory implements SymbolProviderFactory { + + public static final EmptySymbolProviderFactory INSTANCE = new EmptySymbolProviderFactory(); + + static class SymbolProvider extends AbstractSymbolProvider { + public SymbolProvider() { + super(); + lockGroups(); + } + } + + SymbolProvider PROVIDER = new SymbolProvider(); + + @Override + public ISymbolProvider create(ReadGraph g) throws DatabaseException { + return PROVIDER; + } + +}