blob: 2d3ac436adbfef2a0bc2746d571635f052f81e9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/*
@ITMillApache2LicenseForJavaFiles@
*/
package com.vaadin.tests.featurebrowser;
import com.vaadin.ui.Window;
public class FeaturesApplication extends com.vaadin.Application {
@Override
public void init() {
if (getProperty("statistics") != null) {
FeatureUtil.setStatistics(true);
}
setUser(new Long(System.currentTimeMillis()).toString());
final Window main = new Window("Vaadin Features Tour");
setMainWindow(main);
main.setLayout(new FeatureBrowser());
}
/**
* ErrorEvents are printed to default error stream and not in GUI.
*/
@Override
public void terminalError(com.vaadin.terminal.Terminal.ErrorEvent event) {
final Throwable e = event.getThrowable();
FeatureUtil.debug(getUser().toString(), "terminalError: "
+ e.toString());
e.printStackTrace();
}
}
|