summaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/demo
diff options
context:
space:
mode:
authorMarc Englund <marc.englund@itmill.com>2009-01-12 13:21:31 +0000
committerMarc Englund <marc.englund@itmill.com>2009-01-12 13:21:31 +0000
commit0929764031d7dce85f68df7208b90fa99e459858 (patch)
tree8ec149fe388946bd219e8ea437b3fe7a90e98f0c /src/com/itmill/toolkit/demo
parent5221f3d96304283c66a50e4343a05981926d0e96 (diff)
downloadvaadin-framework-0929764031d7dce85f68df7208b90fa99e459858.tar.gz
vaadin-framework-0929764031d7dce85f68df7208b90fa99e459858.zip
Source filename resolved using example class. Fixes #2448
svn changeset:6503/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/demo')
-rw-r--r--src/com/itmill/toolkit/demo/sampler/Feature.java6
1 files changed, 3 insertions, 3 deletions
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.
* </p>
* <p>
- * The name of the NamedExternalResource will be shown in the UI. <br/>
- * Note that Javadoc should be referenced via {@link #getRelatedAPI()}.
+ * The name of the NamedExternalResource will be shown in the UI. <br/> Note
+ * that Javadoc should be referenced via {@link #getRelatedAPI()}.
* </p>
*
* @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