blob: 60914b503ba554803d4baf7d183b1f956531eb25 [file] [log] [blame]
david_williamse6088952006-04-17 01:10:40 +00001/*******************************************************************************
2 * Copyright (c) 2006 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * IBM Corporation - initial API and implementation
10 *
11 *******************************************************************************/
12package org.eclipse.jst.jsp.css.core.internal.modelhandler;
13
14import org.eclipse.jst.jsp.css.core.internal.document.JSPedCSSModelImpl;
15import org.eclipse.jst.jsp.css.core.internal.encoding.JSPedCSSDocumentLoader;
16import org.eclipse.wst.css.core.internal.modelhandler.CSSModelLoader;
17import org.eclipse.wst.sse.core.internal.document.IDocumentLoader;
18import org.eclipse.wst.sse.core.internal.provisional.IModelLoader;
19import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel;
20
21
22public class JSPedCSSModelLoader extends CSSModelLoader {
23public IStructuredModel newModel() {
24 IStructuredModel model = new JSPedCSSModelImpl();
25 return model;
26}
27public IModelLoader newInstance() {
28 return new JSPedCSSModelLoader();
29}
30public IDocumentLoader getDocumentLoader() {
31 if (documentLoaderInstance == null) {
32 documentLoaderInstance = new JSPedCSSDocumentLoader();
33 }
34 return documentLoaderInstance;
35}
36
37
38}