blob: f3b33d6df9f946b3e8c93162abbcbf4ff84a688d [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.update.tests.branding;
import java.io.*;
import java.net.URL;
import java.util.ResourceBundle;
import org.eclipse.core.runtime.*;
import org.eclipse.update.internal.configurator.branding.*;
import org.eclipse.update.tests.UpdateManagerTestCase;
public class PrimaryFeatureTest extends UpdateManagerTestCase {
public PrimaryFeatureTest(String testcase){
super(testcase);
}
public void testMain() throws Exception {
IBundleGroupProvider[] bundleGroupProviders = Platform.getBundleGroupProviders();
for (int i=0; i<bundleGroupProviders.length; i++) {
System.out.println("BundleGroupProvider:"+bundleGroupProviders[i].getName());
IBundleGroup[] bundleGroups = bundleGroupProviders[i].getBundleGroups();
for (int j=0; j<bundleGroups.length; j++) {
System.out.println("BundleGroup name:"+bundleGroups[j].getName() +"\n" +
"description:" + bundleGroups[j].getDescription() + "\n"+
"id:" + bundleGroups[j].getIdentifier() + "\n" +
"provider:" + bundleGroups[j].getProviderName() + "\n" +
"version:" + bundleGroups[j].getVersion() + "\n" +
"featureImage:" + bundleGroups[j].getProperty(IBundleGroupConstants.FEATURE_IMAGE) + "\n" +
"tips and tricks:" + bundleGroups[j].getProperty(IBundleGroupConstants.TIPS_AND_TRICKS_HREF) + "\n" +
"welcomePage:" + bundleGroups[j].getProperty(IBundleGroupConstants.WELCOME_PAGE) + "\n" +
"welcomePerspective:" + bundleGroups[j].getProperty(IBundleGroupConstants.WELCOME_PERSPECTIVE) + "\n");
System.out.println("bundles:"+bundleGroups[j].getBundles());
}
}
}
}