public void testGetFactoryRegistry() throws IOException, CoreException { IStructuredModel model = getTestModel(); try { model.getFactoryRegistry(); assertTrue(true); } finally { if (model != null) { model.releaseFromEdit(); } } }
protected void addContentBasedFactories(IStructuredModel structuredModel) { FactoryRegistry factoryRegistry = structuredModel.getFactoryRegistry(); Assert.isNotNull( factoryRegistry, "Program Error: client caller must ensure model has factory registry"); //$NON-NLS-1$ INodeAdapterFactory factory = null; factory = factoryRegistry.getFactoryFor(IJFaceNodeAdapter.class); if (factory == null) { factory = new JFaceNodeAdapterFactoryForHTML(); factoryRegistry.addFactory(factory); } }