Exemple #1
0
 private void mediaSelected(IMedia media) {
   ICategoryCompositor icc = BrowserActivator.COMPOSITORS.get(media.getCategory());
   if (icc != null) {
     IBrowserView view = icc.getMediaView(media);
     setCentralView(view);
   }
 }
Exemple #2
0
 private void categorySelected(ICategory category) {
   ICategoryCompositor icc = BrowserActivator.COMPOSITORS.get(category);
   if (icc != null) {
     IBrowserView view = icc.getCategoryView();
     setCentralView(view);
   }
 }