summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJani Laakso <jani.laakso@itmill.com>2007-02-07 18:00:08 +0000
committerJani Laakso <jani.laakso@itmill.com>2007-02-07 18:00:08 +0000
commit74bf1c55cf242ba2e7fc342ecb10c09635d0fd55 (patch)
tree40660601bd9ebec17cf2c2b0c1da7ed85a6d8cf4 /src
parent77c4596981449f48d31e310a4cd4828cdc5ab603 (diff)
downloadvaadin-framework-74bf1c55cf242ba2e7fc342ecb10c09635d0fd55.tar.gz
vaadin-framework-74bf1c55cf242ba2e7fc342ecb10c09635d0fd55.zip
All exceptions are now directed to default stream and not to GUI. Never show stacktraces to GUI user.
svn changeset:540/svn branch:toolkit
Diffstat (limited to 'src')
-rw-r--r--src/com/itmill/toolkit/demo/features/FeatureBrowser.java10
-rw-r--r--src/com/itmill/toolkit/demo/features/FeaturesApplication.java11
2 files changed, 16 insertions, 5 deletions
diff --git a/src/com/itmill/toolkit/demo/features/FeatureBrowser.java b/src/com/itmill/toolkit/demo/features/FeatureBrowser.java
index cfbbeffa8c..b8c2b7e28e 100644
--- a/src/com/itmill/toolkit/demo/features/FeatureBrowser.java
+++ b/src/com/itmill/toolkit/demo/features/FeatureBrowser.java
@@ -64,14 +64,14 @@ public class FeatureBrowser extends CustomComponent implements
// Configure tree
features = new Tree();
// TODO see #321
- //features.setStyle("default");
+ // features.setStyle("default");
features.addContainerProperty("name", String.class, "");
features.addContainerProperty("feature", Feature.class, null);
features.setItemCaptionPropertyId("name");
features.addListener(this);
features.setImmediate(true);
features.setStyle("menu");
-
+
// Configure component layout
layout = new OrderedLayout(OrderedLayout.ORIENTATION_HORIZONTAL);
layout.setStyle("featurebrowser-mainlayout");
@@ -154,9 +154,9 @@ public class FeatureBrowser extends CustomComponent implements
registerFeature("/Data Model/Containers", new FeatureContainers());
registerFeature("/Data Model/Validators", new FeatureValidators());
registerFeature("/Data Model/Buffering", new FeatureBuffering());
-// registerFeature("/Terminal", new IntroTerminal());
-// registerFeature("/Terminal/Parameters and URI Handling",
-// new FeatureParameters());
+ // registerFeature("/Terminal", new IntroTerminal());
+ // registerFeature("/Terminal/Parameters and URI Handling",
+ // new FeatureParameters());
// Pre-open all menus
for (Iterator i = features.getItemIds().iterator(); i.hasNext();)
diff --git a/src/com/itmill/toolkit/demo/features/FeaturesApplication.java b/src/com/itmill/toolkit/demo/features/FeaturesApplication.java
index 4157ede80f..651d94e4a2 100644
--- a/src/com/itmill/toolkit/demo/features/FeaturesApplication.java
+++ b/src/com/itmill/toolkit/demo/features/FeaturesApplication.java
@@ -37,4 +37,15 @@ public class FeaturesApplication extends com.itmill.toolkit.Application {
setMainWindow(main);
main.addComponent(new FeatureBrowser());
}
+
+ /**
+ * ErrorEvents are printed to default error stream and not in GUI.
+ */
+ @Override
+ public void terminalError(
+ com.itmill.toolkit.terminal.Terminal.ErrorEvent event) {
+ Throwable e = event.getThrowable();
+ e.printStackTrace();
+ }
+
}