}
}
public static class Tst10PluginProvider implements IPluginProvider {
public List<IPlatformPlugin> getPlugins( IPentahoSession session ) throws PlatformPluginRegistrationException {
PlatformPlugin p = new PlatformPlugin();
p.setId( "test10Plugin" );
ContentInfo type = new ContentInfo();
type.setDescription( "test10type1-description" );
type.setExtension( "test10type1-ext" );
type.setMimeType( "test10type1-mimeType" );
type.setTitle( "test10type1-title" );
type.setIconUrl( "test10type1-url" );
type.addOperation( new PluginOperation( "test10type1-oper1-id" ) );
PluginOperation oper2 = new PluginOperation( "test10type1-oper2-id" );
oper2.setPerspective( "test10type1-oper2-perspective" );
type.addOperation( oper2 );
p.addContentInfo( type );
type = new ContentInfo();
type.setExtension( "test10type2-ext" );
p.addContentInfo( type );
// //////////////////
// For 10b only
//
p.getMetaProviderMap().put( "test10type1-ext", Tst10bMetaProvider.class.getName() );
ContentGeneratorInfo cg1 = new ContentGeneratorInfo();
cg1.setDescription( "test 10b plugin description" );
cg1.setId( "test10type1-ext" ); // setting to same string as extension to verify that names do not collide causing
// classcastexception
cg1.setType( "test10type1-ext" );
cg1.setTitle( "Test Generator 10b" );
cg1.setUrl( "/test10burl" );
cg1.setClassname( "org.pentaho.test.platform.plugin.pluginmgr.ContentGenerator1" );
p.addContentGenerator( cg1 );
//
// //////////////////
return Arrays.asList( (IPlatformPlugin) p );
}