private void init(final CustomizationManager customizationManager) { // the appearance can be customized here: customizationManager.setShowDerivedLinks(true); try { // load customizations defined as default through the customization // extension List<MetamodelView> registryDefaultCustomizations = CustomizationsCatalog.getInstance().getRegistryDefaultCustomizations(); for (MetamodelView metamodelView : registryDefaultCustomizations) { customizationManager.registerCustomization(metamodelView); } customizationManager.loadCustomizations(); loadFacetsForCustomizations(registryDefaultCustomizations, customizationManager); } catch (Throwable e) { Activator.getDefault() .getLog() .log( new Status( IStatus.ERROR, Activator.PLUGIN_ID, "Error initializing customizations", e)); //$NON-NLS-1$ } }
private void init(final CustomizationManager customizationManager) { customizationManager.setShowContainer(false); customizationManager.setShowDerivedLinks(false); customizationManager.setShowEmptyLinks(false); try { List<MetamodelView> registryDefaultCustomizations = CustomizationsCatalog.getInstance().getRegistryDefaultCustomizations(); for (MetamodelView metamodelView : registryDefaultCustomizations) { customizationManager.registerCustomization(metamodelView); } customizationManager.loadCustomizations(); } catch (Throwable e) { Activator.getDefault() .getLog() .log( new Status( IStatus.ERROR, Activator.PLUGIN_ID, "Error initializing customizations", e)); //$NON-NLS-1$ } }