blob: 0a553e9188d8f32e93259b3285ce11a93dd3d089 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2006, 2010 Soyatec (http://www.soyatec.com) 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:
* Soyatec - initial API and implementation
*******************************************************************************/
package org.eclipse.xwt.tests.style.css;
import java.net.URL;
import org.eclipse.xwt.IConstants;
import org.eclipse.xwt.XWT;
import org.eclipse.xwt.css.CSSStyle;
public class HelloWorld {
public static void main(String[] args) {
URL url = HelloWorld.class.getResource(HelloWorld.class.getSimpleName()
+ IConstants.XWT_EXTENSION_SUFFIX);
try {
URL cssURL = HelloWorld.class.getResource("style.css");
XWT.addDefaultStyle(new CSSStyle(cssURL));
XWT.open(url);
} catch (Exception e) {
e.printStackTrace();
}
}
}