From: Marc Englund
Date: Mon, 12 Jan 2009 13:21:31 +0000 (+0000)
Subject: Source filename resolved using example class. Fixes #2448
X-Git-Tag: 6.7.0.beta1~3358
X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0929764031d7dce85f68df7208b90fa99e459858;p=vaadin-framework.git
Source filename resolved using example class. Fixes #2448
svn changeset:6503/svn branch:trunk
---
diff --git a/src/com/itmill/toolkit/demo/sampler/Feature.java b/src/com/itmill/toolkit/demo/sampler/Feature.java
index b62b10c6c1..6061fac094 100644
--- a/src/com/itmill/toolkit/demo/sampler/Feature.java
+++ b/src/com/itmill/toolkit/demo/sampler/Feature.java
@@ -57,8 +57,8 @@ abstract public class Feature {
* May return null, if the example has no related resources.
*
*
- * The name of the NamedExternalResource will be shown in the UI.
- * Note that Javadoc should be referenced via {@link #getRelatedAPI()}.
+ * The name of the NamedExternalResource will be shown in the UI.
Note
+ * that Javadoc should be referenced via {@link #getRelatedAPI()}.
*
*
* @see #getThemeBase()
@@ -133,7 +133,7 @@ abstract public class Feature {
StringBuffer src = new StringBuffer();
try {
InputStream is = getClass().getResourceAsStream(
- getClass().getSimpleName() + "Example.java");
+ getExample().getClass().getSimpleName() + ".java");
BufferedReader bis = new BufferedReader(
new InputStreamReader(is));
for (String line = bis.readLine(); null != line; line = bis