}
parent.setChildren(children.toArray(new TreeNode[children.size()]));
}
public static void displayComparisonDialog(final ArrayList<? extends AbstractResourceConfigurationUpdate> configs) {
AbstractResourceConfigurationUpdate theFirstUpdateItem = configs.get(0);
int resourceId = theFirstUpdateItem.getResource().getResourceType().getId();
final boolean isResourceConfig = theFirstUpdateItem instanceof ResourceConfigurationUpdate;
ResourceTypeRepository.Cache.getInstance().getResourceTypes(
resourceId,
isResourceConfig ? EnumSet.of(ResourceTypeRepository.MetadataType.resourceConfigurationDefinition)
: EnumSet.of(ResourceTypeRepository.MetadataType.pluginConfigurationDefinition),