use of org.eclipse.wst.html.ui.internal.contentoutline.JFaceNodeAdapterFactoryForHTML in project webtools.sourceediting by eclipse.
the class AdapterFactoryProviderForHTML method addContentBasedFactories.
protected void addContentBasedFactories(IStructuredModel structuredModel) {
FactoryRegistry factoryRegistry = structuredModel.getFactoryRegistry();
// $NON-NLS-1$
Assert.isNotNull(factoryRegistry, "Program Error: client caller must ensure model has factory registry");
INodeAdapterFactory factory = null;
factory = factoryRegistry.getFactoryFor(IJFaceNodeAdapter.class);
if (factory == null) {
factory = new JFaceNodeAdapterFactoryForHTML();
factoryRegistry.addFactory(factory);
}
}
use of org.eclipse.wst.html.ui.internal.contentoutline.JFaceNodeAdapterFactoryForHTML in project webtools.sourceediting by eclipse.
the class AdapterFactoryProviderForJSP method addContentBasedFactories.
protected void addContentBasedFactories(IStructuredModel structuredModel) {
FactoryRegistry factoryRegistry = structuredModel.getFactoryRegistry();
// $NON-NLS-1$
Assert.isNotNull(factoryRegistry, "Program Error: client caller must ensure model has factory registry");
INodeAdapterFactory factory = null;
factory = factoryRegistry.getFactoryFor(IJFaceNodeAdapter.class);
if (factory == null) {
factory = new JFaceNodeAdapterFactoryForHTML(IJFaceNodeAdapter.class, true);
factoryRegistry.addFactory(factory);
}
ModelHandlerForJSP.ensureTranslationAdapterFactory(structuredModel);
}
Aggregations