blob: 690355de5427eca09e67730680c80b25c51eaab3 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2001, 2004 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
* Jens Lukowski/Innoopract - initial renaming/restructuring
*
*******************************************************************************/
package org.eclipse.wst.xml.ui.registry;
import org.eclipse.wst.sse.core.IStructuredModel;
import org.eclipse.wst.sse.core.modelhandler.EmbeddedTypeHandler;
import org.eclipse.wst.sse.ui.registry.embedded.EmbeddedAdapterFactoryProvider;
import org.eclipse.wst.xml.core.document.XMLDocument;
import org.eclipse.wst.xml.core.document.XMLModel;
import org.eclipse.wst.xml.core.modelhandler.EmbeddedXML;
public class AdapterFactoryProviderForEmbeddedXML implements EmbeddedAdapterFactoryProvider {
/*
* @see AdapterFactoryProvider#addAdapterFactories(IStructuredModel)
*/
public void addAdapterFactories(IStructuredModel structuredModel) {
if (structuredModel instanceof XMLModel) {
XMLDocument doc = ((XMLModel) structuredModel).getDocument();
}
}
/*
* @see AdapterFactoryProvider#isFor(ContentTypeDescription)
*/
public boolean isFor(EmbeddedTypeHandler contentTypeDescription) {
return (contentTypeDescription instanceof EmbeddedXML);
}
}