diff options
Diffstat (limited to 'bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSMetaModelFinder.java')
-rw-r--r-- | bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSMetaModelFinder.java | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSMetaModelFinder.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSMetaModelFinder.java deleted file mode 100644 index 75da697df2..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSMetaModelFinder.java +++ /dev/null @@ -1,51 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004, 2005 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.css.core.internal.metamodel.util; - -import org.eclipse.wst.css.core.internal.metamodel.CSSMetaModel; -import org.eclipse.wst.css.core.internal.provisional.document.ICSSNode; -import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel; - - -public class CSSMetaModelFinder { - /** - * Constructor for CSSMetaModelFinder. - */ - private CSSMetaModelFinder() { - super(); - } - - static synchronized public CSSMetaModelFinder getInstance() { - if (fInstance == null) { - fInstance = new CSSMetaModelFinder(); - } - return fInstance; - } - - public CSSMetaModel findMetaModelFor(ICSSNode node) { - return CSSProfileFinder.getInstance().findProfileFor(node).getMetaModel(); - } - - public CSSMetaModel findMetaModelFor(IStructuredModel model) { - return CSSProfileFinder.getInstance().findProfileFor(model).getMetaModel(); - - } - - // findMetaModelFor(Node) is not used. - // Even if it is used, it can be replaced with - // findMetaModelFor(IStructuredModel) easily - - public CSSMetaModel findMetaModelFor(String baseLocation) { - return CSSProfileFinder.getInstance().findProfileFor(baseLocation).getMetaModel(); - } - - static private CSSMetaModelFinder fInstance = null; -} |