/******************************************************************************* * Copyright (c) 2010 SpringSource, a divison of VMware, Inc. * 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: * SpringSource, a division of VMware, Inc. - initial API and implementation *******************************************************************************/ package org.eclipse.virgo.ide.ui.editors.plan; import org.eclipse.wst.sse.core.internal.document.IDocumentCharsetDetector; import org.eclipse.wst.sse.core.internal.document.IDocumentLoader; import org.eclipse.wst.sse.core.internal.ltk.modelhandler.AbstractModelHandler; import org.eclipse.wst.sse.core.internal.ltk.modelhandler.IModelHandler; import org.eclipse.wst.sse.core.internal.provisional.IModelLoader; import org.eclipse.wst.xml.core.internal.encoding.XMLDocumentCharsetDetector; import org.eclipse.wst.xml.core.internal.encoding.XMLDocumentLoader; import org.eclipse.wst.xml.core.internal.modelhandler.XMLModelLoader; /** * @author Christian Dupuis * @since 2.3.1 */ public class PlanModelHandler extends AbstractModelHandler implements IModelHandler { private static String modelHandlerID = "org.eclipse.virgo.ide.ui.handler.planConfig"; private static String associatedContentTypeID = "org.eclipse.virgo.ide.facet.core.planContentType"; public PlanModelHandler() { setId(modelHandlerID); setAssociatedContentTypeId(associatedContentTypeID); } @Override public IDocumentCharsetDetector getEncodingDetector() { return new XMLDocumentCharsetDetector(); } public IDocumentLoader getDocumentLoader() { return new XMLDocumentLoader(); } public IModelLoader getModelLoader() { return new XMLModelLoader(); } }