FactoryRegistry factoryRegistry = structuredModel.getFactoryRegistry();
Assert.isNotNull(factoryRegistry, SSEUIMessages.EditorModelUtil_0); //$NON-NLS-1$
// Add all those appropriate for this particular type of content
while (adapterFactoryProviders.hasNext()) {
try {
final AdapterFactoryProvider provider = (AdapterFactoryProvider) adapterFactoryProviders.next();
/*
* ContentType might have already been checked above, this
* check is here for backwards compatability for those that
* don't specify a content type
*/
if (provider.isFor(structuredModel.getModelHandler())) {
SafeRunner.run(new SafeRunnable(SSEUIMessages.EditorModelUtil_1) { //$NON-NLS-1$
public void run() {
provider.addAdapterFactories(structuredModel);
}
});
}
}
catch (Exception e) {