david_williams | e608895 | 2006-04-17 01:10:40 +0000 | [diff] [blame] | 1 | /******************************************************************************* |
| 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 | *******************************************************************************/ |
| 12 | package org.eclipse.jst.jsp.css.core.internal.modelhandler; |
| 13 | |
| 14 | import org.eclipse.jst.jsp.css.core.internal.document.JSPedCSSModelImpl; |
| 15 | import org.eclipse.jst.jsp.css.core.internal.encoding.JSPedCSSDocumentLoader; |
| 16 | import org.eclipse.wst.css.core.internal.modelhandler.CSSModelLoader; |
| 17 | import org.eclipse.wst.sse.core.internal.document.IDocumentLoader; |
| 18 | import org.eclipse.wst.sse.core.internal.provisional.IModelLoader; |
| 19 | import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel; |
| 20 | |
| 21 | |
| 22 | public class JSPedCSSModelLoader extends CSSModelLoader { |
| 23 | public IStructuredModel newModel() { |
| 24 | IStructuredModel model = new JSPedCSSModelImpl(); |
| 25 | return model; |
| 26 | } |
| 27 | public IModelLoader newInstance() { |
| 28 | return new JSPedCSSModelLoader(); |
| 29 | } |
| 30 | public IDocumentLoader getDocumentLoader() { |
| 31 | if (documentLoaderInstance == null) { |
| 32 | documentLoaderInstance = new JSPedCSSDocumentLoader(); |
| 33 | } |
| 34 | return documentLoaderInstance; |
| 35 | } |
| 36 | |
| 37 | |
| 38 | } |