/******************************************************************************* * Copyright (c) 2000, 2009 IBM Corporation and others. * 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: * IBM Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.test.performance.ui; import org.eclipse.equinox.app.IApplication; import org.eclipse.equinox.app.IApplicationContext; import org.eclipse.test.internal.performance.results.db.DB_Results; /** * Main class to generate performance results of all scenarios matching a given pattern * in one HTML page per component. * * @see GenerateResults for the complete implementation */ public class Main implements IApplication { /** * Generate the performance results for a specified build regarding to a specific reference. * This action generates following HTML files: * * @see org.eclipse.equinox.app.IApplication#start(org.eclipse.equinox.app.IApplicationContext) */ public Object start(IApplicationContext context) throws Exception { DB_Results.DB_CONNECTION = true; // force DB connection while running the application GenerateResults generation = new GenerateResults(); String[] args = (String[]) context.getArguments().get("application.args"); generation.run(args); return null; } /* (non-Javadoc) * @see org.eclipse.equinox.app.IApplication#stop() */ public void stop() { // Do nothing } }