SWTBotInfo.java :  » Library » Apache-Directory-Studio-1.5.2 » org » eclipse » swtbot » swt » finder » Java Open Source

Java Open Source » Library » Apache Directory Studio 1.5.2 
Apache Directory Studio 1.5.2 » org » eclipse » swtbot » swt » finder » SWTBotInfo.java
/*******************************************************************************
 * Copyright (c) 2009 Ketan Padegaonkar 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:
 *     Ketan Padegaonkar - initial API and implementation
 *******************************************************************************/
package org.eclipse.swtbot.swt.finder;

import org.eclipse.swt.SWT;

/**
 * Dumps information useful for providing debug info.
 * 
 * @author Ketan Padegaonkar <KetanPadegaonkar [at] gmail [dot] com>
 * @version $Id$
 */
public class SWTBotInfo {

  private static final String  VERSION  = "2.0.0.433-dev-e35";

  /**
   * Prints out some platform specific information useful for diagnosis.
   */
  public static void printInfo() {
    System.out.println("--- Begin SWTBot Info ---");
    System.out.println("SWTBot version: " + VERSION);
    System.out.println("SWT Version: " + SWT.getVersion());
    System.out.println("SWT Platform: " + SWT.getPlatform());
    System.out.println("Operating System: " + System.getProperty("os.name") + "/" + System.getProperty("os.arch"));
    System.out.println("Version " + System.getProperty("os.version"));
    System.out.println("--- End SWTBot Info ---");
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.