package net.sourceforge.phpeclipse.wiki.renderer; import net.sourceforge.phpeclipse.wiki.editor.WikiEditorPlugin; import org.eclipse.core.resources.IProject; public final class RendererFactory { private RendererFactory() { super(); } public static IContentRenderer createContentRenderer(IProject project) throws InstantiationException, IllegalAccessException, ClassNotFoundException { IContentRenderer renderer =(AbstractContentRenderer) Class.forName(getContentRendererName()).newInstance(); renderer.setProject(project); return renderer; } public static String getContentRendererName() { return WikipediaContentRenderer.class.getName(); // return WikiEditorPlugin.getDefault().getPreferenceStore().getString(WikiConstants.BROWSER_RENDERER); } }