use of org.eclipse.wst.css.ui.internal.contentoutline.JFaceNodeAdapterFactoryCSS in project webtools.sourceediting by eclipse.
the class AdapterFactoryProviderCSS 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 JFaceNodeAdapterFactoryCSS(IJFaceNodeAdapter.class, true);
factoryRegistry.addFactory(factory);
}
}
Aggregations