} else if ( asset.metaData.format.equals( AssetFormats.FUNCTION ) ) {
return new FunctionEditor( asset );
} else if ( asset.metaData.format.equals( AssetFormats.WORKING_SET ) ) {
return new WorkingSetEditor( asset );
} else if ( asset.metaData.format.equals( AssetFormats.RULE_TEMPLATE ) ) {
return new RuleTemplateEditor( asset );
} else if ( asset.metaData.format.equals( AssetFormats.SPRING_CONTEXT ) ) {
return new SpringContextEditor( asset);
} else {
return new DefaultContentUploadEditor( asset,
viewer );