public void update(final GotStreamPluginSubscriptionsResponseEvent event)
{
availablePlugins = event.getResponse().getPlugins();
feedSubscriptions = event.getResponse().getFeedSubcribers();
GadgetMetaDataFetcher gadgetMetaDataFetcher = new GadgetMetaDataFetcher(availablePlugins);
gadgetMetaDataFetcher
.addOnMetaDataRetrievedCommand(new GadgetMetaDataFetcher.GotGadgetMetaDataCommand()
{
public void onGotGadgetMetaData(final List<GadgetMetaDataDTO> inMetadata)
{
metadata = inMetadata;
renderPlugins();
renderFeedSubscriptions();
}
});
gadgetMetaDataFetcher.fetchMetaData();
}
});
Session.getInstance().getEventBus().addObserver(StreamPluginsUpdateCanceledEvent.class,
new Observer<StreamPluginsUpdateCanceledEvent>()