private void syncExtensions() {
   IModel emodel = findPluginModel();
   if (emodel != null && emodel instanceof ISharedExtensionsModel) {
     bmodel.setExtensionsModel((ISharedExtensionsModel) emodel);
     transferListeners(emodel, bmodel);
   } else bmodel.setExtensionsModel(null);
 }
 private void bundleAdded(InputContext bundleContext) {
   IBundleModel model = (IBundleModel) bundleContext.getModel();
   if (model.isFragmentModel()) bmodel = new BundleFragmentModel();
   else bmodel = new BundlePluginModel();
   bmodel.setBundleModel(model);
   syncExtensions();
 }
 public IModel getPluginModel() {
   if (bmodel != null) return bmodel.getExtensionsModel();
   return findPluginModel();
 }