| /** |
| * |
| * Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany) |
| * |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation |
| */ |
| package org.eclipse.osbp.preferences.ui.utils; |
| |
| import java.util.Map; |
| |
| import org.eclipse.core.resources.IProject; |
| import org.eclipse.osbp.preferences.ProductFileBase; |
| import org.eclipse.osbp.preferences.ProductFilePlugins; |
| import org.eclipse.osbp.preferences.ui.data.ProductConfigurationStore; |
| |
| /** |
| * Class to verify all <plugins> inside a <code>*.product</code> configuration file. |
| */ |
| public class ProductFilePluginsVerifier extends ProductFileVerifier { |
| |
| public ProductFilePluginsVerifier(IProject project, String productFileName) { |
| super( |
| project, |
| productFileName, |
| new ProductFilePlugins(ProductConfigurationStore.instance().getProductConfigurationPrefs()), |
| project.getName()+"/"+productFileName |
| ); |
| } |
| |
| /** |
| * Get all <product><plugins><plugin> items with <code>id="???"</code> as id |
| */ |
| @Override |
| public Map<String,Map<String,String>> getPluginBundles() { |
| return ProductFileBase.getValues(document, "product/plugins", "plugin", "id"); |
| } |
| |
| @Override |
| public String getRowName() { |
| return "Product plugins ..."; |
| } |
| } |