You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by gb...@apache.org on 2009/05/26 22:52:46 UTC
svn commit: r778882 - in /incubator/pivot/trunk: core/src/pivot/util/
tutorials/src/pivot/tutorials/layout/ wtk/src/META-INF/services/
Author: gbrown
Date: Tue May 26 20:52:46 2009
New Revision: 778882
URL: http://svn.apache.org/viewvc?rev=778882&view=rev
Log:
Replace 03big.jpg in Stack Panes tutorial with background.png; add support for descriptor comments to pivot.util.Service.
Added:
incubator/pivot/trunk/tutorials/src/pivot/tutorials/layout/background.png (with props)
Removed:
incubator/pivot/trunk/tutorials/src/pivot/tutorials/layout/03big.jpg
Modified:
incubator/pivot/trunk/core/src/pivot/util/Service.java
incubator/pivot/trunk/tutorials/src/pivot/tutorials/layout/stack_panes.wtkx
incubator/pivot/trunk/wtk/src/META-INF/services/pivot.wtk.Theme
Modified: incubator/pivot/trunk/core/src/pivot/util/Service.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/core/src/pivot/util/Service.java?rev=778882&r1=778881&r2=778882&view=diff
==============================================================================
--- incubator/pivot/trunk/core/src/pivot/util/Service.java (original)
+++ incubator/pivot/trunk/core/src/pivot/util/Service.java Tue May 26 20:52:46 2009
@@ -62,7 +62,13 @@
BufferedReader reader = null;
try {
reader = new BufferedReader(new InputStreamReader(serviceInputStream, "UTF-8"));
- providerClassName = reader.readLine();
+ String line = reader.readLine();
+ while (line != null
+ && line.startsWith("#")) {
+ line = reader.readLine();
+ }
+
+ providerClassName = line;
} finally {
if (reader != null) {
reader.close();
Added: incubator/pivot/trunk/tutorials/src/pivot/tutorials/layout/background.png
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/tutorials/src/pivot/tutorials/layout/background.png?rev=778882&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/pivot/trunk/tutorials/src/pivot/tutorials/layout/background.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Modified: incubator/pivot/trunk/tutorials/src/pivot/tutorials/layout/stack_panes.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/tutorials/src/pivot/tutorials/layout/stack_panes.wtkx?rev=778882&r1=778881&r2=778882&view=diff
==============================================================================
--- incubator/pivot/trunk/tutorials/src/pivot/tutorials/layout/stack_panes.wtkx (original)
+++ incubator/pivot/trunk/tutorials/src/pivot/tutorials/layout/stack_panes.wtkx Tue May 26 20:52:46 2009
@@ -20,7 +20,7 @@
xmlns:wtkx="http://incubator.apache.org/pivot/wtkx/1.1" xmlns="pivot.wtk">
<content>
<StackPane>
- <ImageView image="pivot/tutorials/layout/03big.jpg"
+ <ImageView image="pivot/tutorials/layout/background.png"
styles="{horizontalAlignment:'justify', verticalAlignment:'justify'}"/>
<Label text="StackPane Demo"
styles="{font:'Helvetica bold 64', color:'#ffffff', wrapText:true,
Modified: incubator/pivot/trunk/wtk/src/META-INF/services/pivot.wtk.Theme
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/META-INF/services/pivot.wtk.Theme?rev=778882&r1=778881&r2=778882&view=diff
==============================================================================
--- incubator/pivot/trunk/wtk/src/META-INF/services/pivot.wtk.Theme (original)
+++ incubator/pivot/trunk/wtk/src/META-INF/services/pivot.wtk.Theme Tue May 26 20:52:46 2009
@@ -1 +1,2 @@
+# Service provider for Terra theme
pivot.wtk.skin.terra.TerraTheme