blob: 005297ef4424c67b0dc4650e5268e672cbf691fd [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.dtd.ui.internal.views.properties;
import org.eclipse.ui.views.properties.IPropertySource;
import org.eclipse.wst.sse.core.AbstractAdapterFactory;
import org.eclipse.wst.sse.core.INodeAdapterFactory;
import org.eclipse.wst.sse.core.INodeAdapter;
import org.eclipse.wst.sse.core.INodeNotifier;
public class DTDPropertySourceAdapterFactory extends AbstractAdapterFactory {
public DTDPropertySourceAdapterFactory() {
super(IPropertySource.class, true);
}
public DTDPropertySourceAdapterFactory(Object adapterKey, boolean registerAdapters) {
super(adapterKey, registerAdapters);
}
public INodeAdapterFactory copy() {
return new DTDPropertySourceAdapterFactory(this.adapterKey, this.shouldRegisterAdapter);
}
protected INodeAdapter createAdapter(INodeNotifier target) {
// at the moment, only one implementation exists
return new DTDPropertySourceAdapter(target);
}
}