You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2010/05/19 02:07:12 UTC

svn commit: r945970 - in /pivot/skunk/scala-use-pivot: ./ .settings/ eclipse/ src/ src/main/ src/main/java/ src/main/resources/ src/main/resources/org/ src/main/resources/org/apache/ src/main/resources/org/apache/pivot/ src/main/resources/org/apache/pi...

Author: smartini
Date: Wed May 19 00:07:11 2010
New Revision: 945970

URL: http://svn.apache.org/viewvc?rev=945970&view=rev
Log:
Initial Import

Added:
    pivot/skunk/scala-use-pivot/.classpath
    pivot/skunk/scala-use-pivot/.project
    pivot/skunk/scala-use-pivot/.settings/
    pivot/skunk/scala-use-pivot/.settings/ch.epfl.lamp.sdt.core.prefs
    pivot/skunk/scala-use-pivot/BUILD
    pivot/skunk/scala-use-pivot/LICENSE
    pivot/skunk/scala-use-pivot/NOTICE
    pivot/skunk/scala-use-pivot/README
    pivot/skunk/scala-use-pivot/TODO.txt
    pivot/skunk/scala-use-pivot/eclipse/
    pivot/skunk/scala-use-pivot/eclipse/scala-use-pivot - HelloScalaApp.launch
    pivot/skunk/scala-use-pivot/eclipse/scala-use-pivot - HelloWTKXApp.launch
    pivot/skunk/scala-use-pivot/src/
    pivot/skunk/scala-use-pivot/src/main/
    pivot/skunk/scala-use-pivot/src/main/java/
    pivot/skunk/scala-use-pivot/src/main/resources/
    pivot/skunk/scala-use-pivot/src/main/resources/org/
    pivot/skunk/scala-use-pivot/src/main/resources/org/apache/
    pivot/skunk/scala-use-pivot/src/main/resources/org/apache/pivot/
    pivot/skunk/scala-use-pivot/src/main/resources/org/apache/pivot/experiments/
    pivot/skunk/scala-use-pivot/src/main/resources/org/apache/pivot/experiments/scala_use_pivot/
    pivot/skunk/scala-use-pivot/src/main/resources/org/apache/pivot/experiments/scala_use_pivot/hello.wtkx
    pivot/skunk/scala-use-pivot/src/main/scala/
    pivot/skunk/scala-use-pivot/src/main/scala/org/
    pivot/skunk/scala-use-pivot/src/main/scala/org/apache/
    pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/
    pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/
    pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/
    pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/App.scala
    pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/AppUtils.scala
    pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/HelloScala.scala
    pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/HelloScalaApp.scala
    pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/HelloWTKX.scala
    pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/HelloWTKXApp.scala
    pivot/skunk/scala-use-pivot/src/test/
    pivot/skunk/scala-use-pivot/src/test/java/
    pivot/skunk/scala-use-pivot/src/test/resources/
    pivot/skunk/scala-use-pivot/src/test/scala/
    pivot/skunk/scala-use-pivot/src/test/scala/org/
    pivot/skunk/scala-use-pivot/src/test/scala/org/apache/
    pivot/skunk/scala-use-pivot/src/test/scala/org/apache/pivot/
    pivot/skunk/scala-use-pivot/src/test/scala/org/apache/pivot/experiments/
    pivot/skunk/scala-use-pivot/src/test/scala/org/apache/pivot/experiments/scala_use_pivot/
    pivot/skunk/scala-use-pivot/src/test/scala/org/apache/pivot/experiments/scala_use_pivot/AppTest.scala
Modified:
    pivot/skunk/scala-use-pivot/   (props changed)

Propchange: pivot/skunk/scala-use-pivot/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Wed May 19 00:07:11 2010
@@ -0,0 +1 @@
+bin

Added: pivot/skunk/scala-use-pivot/.classpath
URL: http://svn.apache.org/viewvc/pivot/skunk/scala-use-pivot/.classpath?rev=945970&view=auto
==============================================================================
--- pivot/skunk/scala-use-pivot/.classpath (added)
+++ pivot/skunk/scala-use-pivot/.classpath Wed May 19 00:07:11 2010
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry excluding="**/*.java" kind="src" path="src/test/scala"/>
+	<classpathentry excluding="**/*.java|**/*.scala" kind="src" path="src/main/resources"/>
+	<classpathentry excluding="**/*.java" kind="src" path="src/main/scala"/>
+	<classpathentry excluding="**/*.java|**/*.scala" kind="src" path="src/test/resources"/>
+	<classpathentry kind="con" path="ch.epfl.lamp.sdt.launching.SCALA_CONTAINER"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
+	<classpathentry combineaccessrules="false" kind="src" path="/charts"/>
+	<classpathentry combineaccessrules="false" kind="src" path="/core"/>
+	<classpathentry combineaccessrules="false" kind="src" path="/web"/>
+	<classpathentry combineaccessrules="false" kind="src" path="/wtk"/>
+	<classpathentry combineaccessrules="false" kind="src" path="/wtk-terra"/>
+	<classpathentry kind="output" path="bin"/>
+</classpath>

Added: pivot/skunk/scala-use-pivot/.project
URL: http://svn.apache.org/viewvc/pivot/skunk/scala-use-pivot/.project?rev=945970&view=auto
==============================================================================
--- pivot/skunk/scala-use-pivot/.project (added)
+++ pivot/skunk/scala-use-pivot/.project Wed May 19 00:07:11 2010
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>scala-use-pivot</name>
+	<comment></comment>
+	<projects>
+		<project>charts</project>
+		<project>core</project>
+		<project>web</project>
+		<project>web-server</project>
+		<project>wtk</project>
+		<project>wtk-terra</project>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>ch.epfl.lamp.sdt.core.scalabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>ch.epfl.lamp.sdt.core.scalanature</nature>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+	</natures>
+</projectDescription>

Added: pivot/skunk/scala-use-pivot/.settings/ch.epfl.lamp.sdt.core.prefs
URL: http://svn.apache.org/viewvc/pivot/skunk/scala-use-pivot/.settings/ch.epfl.lamp.sdt.core.prefs?rev=945970&view=auto
==============================================================================
--- pivot/skunk/scala-use-pivot/.settings/ch.epfl.lamp.sdt.core.prefs (added)
+++ pivot/skunk/scala-use-pivot/.settings/ch.epfl.lamp.sdt.core.prefs Wed May 19 00:07:11 2010
@@ -0,0 +1,25 @@
+#Tue May 11 01:13:05 CEST 2010
+<file>=false
+Xcheck-null=false
+Xcheckinit=false
+Xdisable-assertions=false
+Xexperimental=false
+Xfuture=false
+Xlog-implicits=false
+Xno-uescape=false
+Xno-varargs-conversion=false
+Yclosure-elim=false
+Ydead-code=false
+Ydetach=false
+Yinline=false
+Ylinearizer=rpo
+Yno-generic-signatures=false
+Yno-imports=false
+Yno-predefs=false
+Yself-in-annots=false
+Ywarn-dead-code=false
+eclipse.preferences.version=1
+g=vars
+optimise=false
+scala.compiler.useProjectSettings=false
+target=jvm-1.5

Added: pivot/skunk/scala-use-pivot/BUILD
URL: http://svn.apache.org/viewvc/pivot/skunk/scala-use-pivot/BUILD?rev=945970&view=auto
==============================================================================
--- pivot/skunk/scala-use-pivot/BUILD (added)
+++ pivot/skunk/scala-use-pivot/BUILD Wed May 19 00:07:11 2010
@@ -0,0 +1,21 @@
+System Requirements
+===================
+
+the same of Apache Pivot
+
+
+Project Set-Up
+==============
+
+* Ensure that JUnit 4.x is on your classpath (for example that included with your IDE)
+
+* Ensure you have the Scala Plugin installed and working in the IDE
+
+* Ensure that you have the required Pivot projects (from the development trunk) in the same workspace
+
+
+Building scala-use-pivot
+==============
+
+* Open the project in an IDE (for example in Eclipse), and build
+

Added: pivot/skunk/scala-use-pivot/LICENSE
URL: http://svn.apache.org/viewvc/pivot/skunk/scala-use-pivot/LICENSE?rev=945970&view=auto
==============================================================================
--- pivot/skunk/scala-use-pivot/LICENSE (added)
+++ pivot/skunk/scala-use-pivot/LICENSE Wed May 19 00:07:11 2010
@@ -0,0 +1,614 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+
+===============================================================================
+
+APACHE PIVOT SUBCOMPONENTS:
+
+Portions of Apache Pivot are derived from third party source code with
+separate copyright notices and license terms. Your use of the source
+code for these portions is subject to the terms and conditions of
+the following licenses.
+
+===============================================================================
+
+The following components are licensed under the Apache Software License 2.0:
+
+  * web-server/lib/servlet-api.jar (http://tomcat.apache.org/)
+
+===============================================================================
+
+The following components are available in Public Domain:
+
+  1. The Tango Icon Theme icons (http://tango.freedesktop.org/)
+
+     tutorials/src/org/apache/pivot/tutorials/document-new.png
+     tutorials/src/org/apache/pivot/tutorials/document-open.png
+     tutorials/src/org/apache/pivot/tutorials/document-save-as.png
+     tutorials/src/org/apache/pivot/tutorials/document-save.png
+     tutorials/src/org/apache/pivot/tutorials/edit-copy.png
+     tutorials/src/org/apache/pivot/tutorials/edit-cut.png
+     tutorials/src/org/apache/pivot/tutorials/edit-delete.png
+     tutorials/src/org/apache/pivot/tutorials/edit-paste.png
+     tutorials/src/org/apache/pivot/tutorials/edit-redo.png
+     tutorials/src/org/apache/pivot/tutorials/edit-select-all.png
+     tutorials/src/org/apache/pivot/tutorials/edit-undo.png
+     tutorials/src/org/apache/pivot/tutorials/explorer/preferences-system.png
+     tutorials/src/org/apache/pivot/tutorials/go-home.png
+     tutorials/src/org/apache/pivot/tutorials/menus/battery.png
+     tutorials/src/org/apache/pivot/tutorials/menus/edit-paste.png
+     tutorials/src/org/apache/pivot/tutorials/menus/emblem-favorite.png
+     tutorials/src/org/apache/pivot/tutorials/menus/face-smile.png
+     tutorials/src/org/apache/pivot/tutorials/menus/weather-clear.png
+     tutorials/src/org/apache/pivot/tutorials/stocktracker/go-down.png
+     tutorials/src/org/apache/pivot/tutorials/stocktracker/go-up.png
+     tutorials/src/org/apache/pivot/tutorials/weather-clear.png
+     tutorials/src/org/apache/pivot/tutorials/weather-few-clouds-32x32.png
+     tutorials/src/org/apache/pivot/tutorials/weather-few-clouds.png
+     tutorials/src/org/apache/pivot/tutorials/weather-overcast.png
+     tutorials/src/org/apache/pivot/tutorials/weather-showers-scattered.png
+     tutorials/src/org/apache/pivot/tutorials/x-office-document.png
+     tests/src/org/apache/pivot/tests/applications-games.png
+     tests/src/org/apache/pivot/tests/go-home.png
+     tests/src/org/apache/pivot/tests/weather-few-clouds-32x32.png
+
+  2. The FamFamFam Flag icons (http://www.famfamfam.com/lab/icons/flags/)
+
+     tutorials/src/org/apache/pivot/tutorials/tableviews/au.png
+     tutorials/src/org/apache/pivot/tutorials/tableviews/cn.png
+     tutorials/src/org/apache/pivot/tutorials/tableviews/de.png
+     tutorials/src/org/apache/pivot/tutorials/tableviews/fr.png
+     tutorials/src/org/apache/pivot/tutorials/tableviews/gb.png
+     tutorials/src/org/apache/pivot/tutorials/tableviews/it.png
+     tutorials/src/org/apache/pivot/tutorials/tableviews/jp.png
+     tutorials/src/org/apache/pivot/tutorials/tableviews/kr.png
+     tutorials/src/org/apache/pivot/tutorials/tableviews/ru.png
+     tutorials/src/org/apache/pivot/tutorials/tableviews/us.png
+
+===============================================================================
+
+Pivot's easing equations (org.apache.pivot.wtk.effects.easing.*) are derivative
+works originating from Robert Penner's Action Script easing equations, which
+are licensed under the Berkeley Software Distribution (BSD) License.
+
+                  Berkeley Software Distribution (BSD) License
+               http://www.opensource.org/licenses/bsd-license.php
+
+  Copyright (c) 2001 Robert Penner
+  All rights reserved.
+
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided that the following conditions are met:
+
+  * Redistributions of source code must retain the above copyright notice,
+    this list of conditions and the following disclaimer.
+  * Redistributions in binary form must reproduce the above copyright notice,
+    this list of conditions and the following disclaimer in the documentation
+    and/or other materials provided with the distribution.
+  * Neither the name of the author nor the names of contributors may be used
+    to endorse or promote products derived from this software without
+    specific prior written permission.
+
+  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+  POSSIBILITY OF SUCH DAMAGE.
+
+===============================================================================
+
+The drop shadow decorator (org.apache.pivot.wtk.effects.DropShadowDecorator)
+uses code from "Filthy Rich Clients" by Chet Haase and Romain Guy, which is
+licensed under the Berkeley Software Distribution (BSD) License.
+
+                  Berkeley Software Distribution (BSD) License
+               http://www.opensource.org/licenses/bsd-license.php
+
+  Copyright (c) 2006 Chet Haase and Romain Guy
+  All rights reserved.
+
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided that the following conditions are met:
+
+  * Redistributions of source code must retain the above copyright notice,
+    this list of conditions and the following disclaimer.
+  * Redistributions in binary form must reproduce the above copyright notice,
+    this list of conditions and the following disclaimer in the documentation
+    and/or other materials provided with the distribution.
+  * Neither the name Filthy Rich Clients nor the names of its contributors
+    may be used to endorse or promote products derived from this software
+    without specific prior written permission.
+
+  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+  POSSIBILITY OF SUCH DAMAGE.
+
+===============================================================================
+
+The following components are licensed under the Creative Commons Attribution
+2.5 License:
+
+  1. The Silk Icons (http://www.famfamfam.com/lab/icons/silk/)
+
+     demos/src/org/apache/pivot/demos/itunes/magnifier.png
+     tutorials/src/org/apache/pivot/tutorials/anchor.png
+     tutorials/src/org/apache/pivot/tutorials/application.png
+     tutorials/src/org/apache/pivot/tutorials/bell.png
+     tutorials/src/org/apache/pivot/tutorials/book_open.png
+     tutorials/src/org/apache/pivot/tutorials/buttons/resultset_next.png
+     tutorials/src/org/apache/pivot/tutorials/buttons/resultset_previous.png
+     tutorials/src/org/apache/pivot/tutorials/clock.png
+     tutorials/src/org/apache/pivot/tutorials/cup.png
+     tutorials/src/org/apache/pivot/tutorials/explorer/buttons/resultset_next.png
+     tutorials/src/org/apache/pivot/tutorials/explorer/menus/coins.png
+     tutorials/src/org/apache/pivot/tutorials/explorer/navigation/bell.png
+     tutorials/src/org/apache/pivot/tutorials/explorer/navigation/clock.png
+     tutorials/src/org/apache/pivot/tutorials/explorer/navigation/house.png
+     tutorials/src/org/apache/pivot/tutorials/explorer/navigation/star.png
+     tutorials/src/org/apache/pivot/tutorials/flag_red.png
+     tutorials/src/org/apache/pivot/tutorials/folder.png
+     tutorials/src/org/apache/pivot/tutorials/help.png
+     tutorials/src/org/apache/pivot/tutorials/house.png
+     tutorials/src/org/apache/pivot/tutorials/magnifier.png
+     tutorials/src/org/apache/pivot/tutorials/menus/shape_square_add.png
+     tutorials/src/org/apache/pivot/tutorials/page_edit.png
+     tutorials/src/org/apache/pivot/tutorials/page_white.png
+     tutorials/src/org/apache/pivot/tutorials/star.png
+     tutorials/src/org/apache/pivot/tutorials/stocktracker/add.png
+     tutorials/src/org/apache/pivot/tutorials/stocktracker/delete.png
+     tutorials/src/org/apache/pivot/tutorials/windows/application_form.png
+     wtk-terra/src/org/apache/pivot/wtk/skin/terra/drive.png
+     wtk-terra/src/org/apache/pivot/wtk/skin/terra/folder_add.png
+     wtk-terra/src/org/apache/pivot/wtk/skin/terra/folder.png
+     wtk-terra/src/org/apache/pivot/wtk/skin/terra/house.png
+     wtk-terra/src/org/apache/pivot/wtk/skin/terra/message_type-error-16x16.png
+     wtk-terra/src/org/apache/pivot/wtk/skin/terra/message_type-question-16x16.png
+     wtk-terra/src/org/apache/pivot/wtk/skin/terra/message_type-warning-16x16.png
+     wtk-terra/src/org/apache/pivot/wtk/skin/terra/page_white.png
+     tests/src/org/apache/pivot/tests/anchor.png
+     tests/src/org/apache/pivot/tests/bell.png
+     tests/src/org/apache/pivot/tests/clock.png
+     tests/src/org/apache/pivot/tests/cup.png
+     tests/src/org/apache/pivot/tests/house.png
+     tests/src/org/apache/pivot/tests/star.png
+
+  2. The Silk Companion Icons (http://damieng.com/creative/icons/silk-companion-1-icons)
+
+     demos/src/org/apache/pivot/demos/itunes/bullet_cross.png
+     wtk-terra/src/org/apache/pivot/wtk/skin/terra/folder_home.png
+     wtk-terra/src/org/apache/pivot/wtk/skin/terra/folder_up.png
+     wtk-terra/src/org/apache/pivot/wtk/skin/terra/message_type-info-16x16.png
+
+                    Creative Commons Attribution 2.5 License
+               http://creativecommons.org/licenses/by/2.5/legalcode
+
+  License
+
+  THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE
+  COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY
+  COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS
+  AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
+
+  BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO
+  BE BOUND BY THE TERMS OF THIS LICENSE. THE LICENSOR GRANTS YOU THE RIGHTS
+  CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND
+  CONDITIONS.
+
+  1. Definitions
+
+     (a) "Collective Work" means a work, such as a periodical issue, anthology
+         or encyclopedia, in which the Work in its entirety in unmodified form,
+         along with a number of other contributions, constituting separate and
+         independent works in themselves, are assembled into a collective whole.
+         A work that constitutes a Collective Work will not be considered a
+         Derivative Work (as defined below) for the purposes of this License.
+
+     (b) "Derivative Work" means a work based upon the Work or upon the Work and
+         other pre-existing works, such as a translation, musical arrangement,
+         dramatization, fictionalization, motion picture version, sound
+         recording, art reproduction, abridgment, condensation, or any other
+         form in which the Work may be recast, transformed, or adapted, except
+         that a work that constitutes a Collective Work will not be considered a
+         Derivative Work for the purpose of this License. For the avoidance of
+         doubt, where the Work is a musical composition or sound recording, the
+         synchronization of the Work in timed-relation with a moving image
+         ("synching") will be considered a Derivative Work for the purpose of
+         this License.
+
+     (c) "Licensor" means the individual or entity that offers the Work under
+         the terms of this License.
+
+     (d) "Original Author" means the individual or entity who created the Work.
+
+     (e) "Work" means the copyrightable work of authorship offered under the
+         terms of this License.
+
+     (f) "You" means an individual or entity exercising rights under this
+         License who has not previously violated the terms of this License with
+         respect to the Work, or who has received express permission from the
+         Licensor to exercise rights under this License despite a previous
+         violation.
+
+  2. Fair Use Rights. Nothing in this license is intended to reduce, limit, or
+     restrict any rights arising from fair use, first sale or other limitations
+     on the exclusive rights of the copyright owner under copyright law or
+     other applicable laws.
+
+  3. License Grant. Subject to the terms and conditions of this License,
+     Licensor hereby grants You a worldwide, royalty-free, non-exclusive,
+     perpetual (for the duration of the applicable copyright) license to
+     exercise the rights in the Work as stated below:
+
+     (a) to reproduce the Work, to incorporate the Work into one or more
+         Collective Works, and to reproduce the Work as incorporated in the
+         Collective Works;
+
+     (b) to create and reproduce Derivative Works;
+
+     (c) to distribute copies or phonorecords of, display publicly, perform
+         publicly, and perform publicly by means of a digital audio transmission
+         the Work including as incorporated in Collective Works;
+
+     (d) to distribute copies or phonorecords of, display publicly, perform
+         publicly, and perform publicly by means of a digital audio transmission
+         Derivative Works.
+
+     (e) For the avoidance of doubt, where the work is a musical composition:
+
+         (i)  Performance Royalties Under Blanket Licenses. Licensor waives the
+              exclusive right to collect, whether individually or via a
+              performance rights society (e.g. ASCAP, BMI, SESAC), royalties for
+              the public performance or public digital performance (e.g.
+              webcast) of the Work.
+
+         (ii) Mechanical Rights and Statutory Royalties. Licensor waives the
+              exclusive right to collect, whether individually or via a music
+              rights agency or designated agent (e.g. Harry Fox Agency),
+              royalties for any phonorecord You create from the Work ("cover
+              version") and distribute, subject to the compulsory license
+              created by 17 USC Section 115 of the US Copyright Act (or the
+              equivalent in other jurisdictions).
+
+     (f) Webcasting Rights and Statutory Royalties. For the avoidance of doubt,
+         where the Work is a sound recording, Licensor waives the exclusive
+         right to collect, whether individually or via a performance-rights
+         society (e.g. SoundExchange), royalties for the public digital
+         performance (e.g. webcast) of the Work, subject to the compulsory
+         license created by 17 USC Section 114 of the US Copyright Act (or the
+         equivalent in other jurisdictions).
+
+     The above rights may be exercised in all media and formats whether now
+     known or hereafter devised. The above rights include the right to make such
+     modifications as are technically necessary to exercise the rights in other
+     media and formats. All rights not expressly granted by Licensor are hereby
+     reserved.
+
+  4. Restrictions.The license granted in Section 3 above is expressly made
+     subject to and limited by the following restrictions:
+
+     (a) You may distribute, publicly display, publicly perform, or publicly
+         digitally perform the Work only under the terms of this License, and
+         You must include a copy of, or the Uniform Resource Identifier for,
+         this License with every copy or phonorecord of the Work You distribute,
+         publicly display, publicly perform, or publicly digitally perform. You
+         may not offer or impose any terms on the Work that alter or restrict
+         the terms of this License or the recipients' exercise of the rights
+         granted hereunder. You may not sublicense the Work. You must keep
+         intact all notices that refer to this License and to the disclaimer of
+         warranties. You may not distribute, publicly display, publicly
+         perform, or publicly digitally perform the Work with any technological
+         measures that control access or use of the Work in a manner
+         inconsistent with the terms of this License Agreement. The above
+         applies to the Work as incorporated in a Collective Work, but this
+         does not require the Collective Work apart from the Work itself to be
+         made subject to the terms of this License. If You create a Collective
+         Work, upon notice from any Licensor You must, to the extent
+         practicable, remove from the Collective Work any credit as required
+         by clause 4(b), as requested. If You create a Derivative Work, upon
+         notice from any Licensor You must, to the extent practicable, remove
+         from the Derivative Work any credit as required by clause 4(b), as
+         requested.
+
+     (b) If you distribute, publicly display, publicly perform, or publicly
+         digitally perform the Work or any Derivative Works or Collective
+         Works, You must keep intact all copyright notices for the Work and
+         provide, reasonable to the medium or means You are utilizing: (i) the
+         name of the Original Author (or pseudonym, if applicable) if supplied,
+         and/or (ii) if the Original Author and/or Licensor designate another
+         party or parties (e.g. a sponsor institute, publishing entity,
+         journal) for attribution in Licensor's copyright notice, terms of
+         service or by other reasonable means, the name of such party or
+         parties; the title of the Work if supplied; to the extent reasonably
+         practicable, the Uniform Resource Identifier, if any, that Licensor
+         specifies to be associated with the Work, unless such URI does not
+         refer to the copyright notice or licensing information for the Work;
+         and in the case of a Derivative Work, a credit identifying the use of
+         the Work in the Derivative Work (e.g., "French translation of the Work
+         by Original Author," or "Screenplay based on original Work by Original
+         Author"). Such credit may be implemented in any reasonable manner;
+         provided, however, that in the case of a Derivative Work or Collective
+         Work, at a minimum such credit will appear where any other comparable
+         authorship credit appears and in a manner at least as prominent as
+         such other comparable authorship credit.
+
+  5. Representations, Warranties and Disclaimer
+
+     UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR
+     OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY
+     KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE,
+     INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY,
+     FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF
+     LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS,
+     WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION
+     OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
+
+  6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW,
+     IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY
+     SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING
+     OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN
+     ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+
+7. Termination
+
+     (a) This License and the rights granted hereunder will terminate
+         automatically upon any breach by You of the terms of this License.
+         Individuals or entities who have received Derivative Works or
+         Collective Works from You under this License, however, will not have
+         their licenses terminated provided such individuals or entities remain
+         in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8
+         will survive any termination of this License.
+
+     (b) Subject to the above terms and conditions, the license granted here is
+         perpetual (for the duration of the applicable copyright in the Work).
+         Notwithstanding the above, Licensor reserves the right to release the
+         Work under different license terms or to stop distributing the Work at
+         any time; provided, however that any such election will not serve to
+         withdraw this License (or any other license that has been, or is
+         required to be, granted under the terms of this License), and this
+         License will continue in full force and effect unless terminated as
+         stated above.
+
+8. Miscellaneous
+
+     (a) Each time You distribute or publicly digitally perform the Work or a
+         Collective Work, the Licensor offers to the recipient a license to the
+         Work on the same terms and conditions as the license granted to You
+         under this License.
+
+     (b) Each time You distribute or publicly digitally perform a Derivative
+         Work, Licensor offers to the recipient a license to the original Work
+         on the same terms and conditions as the license granted to You under
+         this License.
+
+     (c) If any provision of this License is invalid or unenforceable under
+         applicable law, it shall not affect the validity or enforceability of
+         the remainder of the terms of this License, and without further action
+         by the parties to this agreement, such provision shall be reformed to
+         the minimum extent necessary to make such provision valid and
+         enforceable.
+
+     (d) No term or provision of this License shall be deemed waived and no
+         breach consented to unless such waiver or consent shall be in writing
+         and signed by the party to be charged with such waiver or consent.
+
+     (e) This License constitutes the entire agreement between the parties with
+         respect to the Work licensed here. There are no understandings,
+         agreements or representations with respect to the Work not specified
+         here. Licensor shall not be bound by any additional provisions that
+         may appear in any communication from You. This License may not be
+         modified without the mutual written agreement of the Licensor and You.

Added: pivot/skunk/scala-use-pivot/NOTICE
URL: http://svn.apache.org/viewvc/pivot/skunk/scala-use-pivot/NOTICE?rev=945970&view=auto
==============================================================================
--- pivot/skunk/scala-use-pivot/NOTICE (added)
+++ pivot/skunk/scala-use-pivot/NOTICE Wed May 19 00:07:11 2010
@@ -0,0 +1,8 @@
+Apache Pivot
+Copyright 2010 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+This software requires Scala, developed EPFL, Lausanne.
+http://www.scala-lang.org/

Added: pivot/skunk/scala-use-pivot/README
URL: http://svn.apache.org/viewvc/pivot/skunk/scala-use-pivot/README?rev=945970&view=auto
==============================================================================
--- pivot/skunk/scala-use-pivot/README (added)
+++ pivot/skunk/scala-use-pivot/README Wed May 19 00:07:11 2010
@@ -0,0 +1,44 @@
+
+Scala-Use-Pivot
+=====================
+
+This is a sample application that show the usage of Apache Pivot from Scala.
+
+To avoid usage of external libraries this project requires the base Pivot projects
+in the classpath (or Project Dependencies), so for example it's possible to test it
+directly with Pivot projects coming from the development trunk.
+
+Scala is expected to be found in the classpath, for example could be provided 
+by the Scala Plugin for the IDE.
+
+Project Structure and Folder Organization:
+- Note that this project has the same structure of a maven-generated project, 
+  because in another project we'll convert this to a real maven project.
+- The test folder is optional.
+- Resources have been moved in resources folder(s) but it's optional, 
+  and done here only to show a better organization of contents.
+- To avoid putting content in a wrong folder, any source folder will be 
+  filtered by extension during compilation.
+- For simplify execution, some eclipse launch files have been put inside the eclipse folder.
+- The Project is tested under Eclipse-3.5.x
+
+
+Distribution JARs
+=================
+
+This project is only in source format, no jars will be delivered, 
+but can be generated from it.
+
+
+Dependencies
+============
+
+* The same of Pivot (Java 6 Update 14 or later).
+
+* Scala 2.7.7 or later.
+
+
+Documentation
+=============
+
+Pivot home page: http://pivot.apache.org/

Added: pivot/skunk/scala-use-pivot/TODO.txt
URL: http://svn.apache.org/viewvc/pivot/skunk/scala-use-pivot/TODO.txt?rev=945970&view=auto
==============================================================================
--- pivot/skunk/scala-use-pivot/TODO.txt (added)
+++ pivot/skunk/scala-use-pivot/TODO.txt Wed May 19 00:07:11 2010
@@ -0,0 +1,10 @@
+
+Scala-Use-Pivot - TODO
+======================
+
+- add a trim-whitespace (ant) build task, like in the rest of Pivot, optional but useful
+
+- finish to verify for licensing problems (if the info in NOTICE and README is correct, 
+if there are problems with eclipse launch files, etc)
+
+- later, add other Pivot Tutorials/Samples, but rewritten here in Scala

Added: pivot/skunk/scala-use-pivot/eclipse/scala-use-pivot - HelloScalaApp.launch
URL: http://svn.apache.org/viewvc/pivot/skunk/scala-use-pivot/eclipse/scala-use-pivot%20-%20HelloScalaApp.launch?rev=945970&view=auto
==============================================================================
--- pivot/skunk/scala-use-pivot/eclipse/scala-use-pivot - HelloScalaApp.launch (added)
+++ pivot/skunk/scala-use-pivot/eclipse/scala-use-pivot - HelloScalaApp.launch Wed May 19 00:07:11 2010
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="scala.application">
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/scala-use-pivot"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="4"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
+<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.apache.pivot.experiments.scala_use_pivot.HelloScalaApp"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="scala-use-pivot"/>
+</launchConfiguration>

Added: pivot/skunk/scala-use-pivot/eclipse/scala-use-pivot - HelloWTKXApp.launch
URL: http://svn.apache.org/viewvc/pivot/skunk/scala-use-pivot/eclipse/scala-use-pivot%20-%20HelloWTKXApp.launch?rev=945970&view=auto
==============================================================================
--- pivot/skunk/scala-use-pivot/eclipse/scala-use-pivot - HelloWTKXApp.launch (added)
+++ pivot/skunk/scala-use-pivot/eclipse/scala-use-pivot - HelloWTKXApp.launch Wed May 19 00:07:11 2010
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="scala.application">
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/scala-use-pivot"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="4"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
+<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.apache.pivot.experiments.scala_use_pivot.HelloWTKXApp"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="scala-use-pivot"/>
+</launchConfiguration>

Added: pivot/skunk/scala-use-pivot/src/main/resources/org/apache/pivot/experiments/scala_use_pivot/hello.wtkx
URL: http://svn.apache.org/viewvc/pivot/skunk/scala-use-pivot/src/main/resources/org/apache/pivot/experiments/scala_use_pivot/hello.wtkx?rev=945970&view=auto
==============================================================================
--- pivot/skunk/scala-use-pivot/src/main/resources/org/apache/pivot/experiments/scala_use_pivot/hello.wtkx (added)
+++ pivot/skunk/scala-use-pivot/src/main/resources/org/apache/pivot/experiments/scala_use_pivot/hello.wtkx Wed May 19 00:07:11 2010
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to you under the Apache License,
+Version 2.0 (the "License"); you may not use this file except in
+compliance with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+
+<Window title="Hello WTKX!" maximized="true"
+    xmlns:wtkx="http://pivot.apache.org/wtkx"
+    xmlns="org.apache.pivot.wtk">
+    <content>
+        <Label text="Hello WTKX!"
+            styles="{font:'Arial bold 24', color:'#ff0000',
+                horizontalAlignment:'center', verticalAlignment:'center'}"/>
+    </content>
+</Window>

Added: pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/App.scala
URL: http://svn.apache.org/viewvc/pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/App.scala?rev=945970&view=auto
==============================================================================
--- pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/App.scala (added)
+++ pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/App.scala Wed May 19 00:07:11 2010
@@ -0,0 +1,36 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License,
+ * Version 2.0 (the "License"); you may not use this file except in
+ * compliance with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.pivot.experiments.scala_use_pivot
+
+import org.apache.pivot.wtk.DesktopApplicationContext;
+
+/**
+ * Generic App(lication) entry point
+ */
+object App 
+    // extends Application 
+{
+
+    def main(args: Array[String]) = 
+    {
+        AppUtils.log("Scala Application Started" + " (main class " + AppUtils.className(App) + ")")
+
+
+    }
+
+}

Added: pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/AppUtils.scala
URL: http://svn.apache.org/viewvc/pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/AppUtils.scala?rev=945970&view=auto
==============================================================================
--- pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/AppUtils.scala (added)
+++ pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/AppUtils.scala Wed May 19 00:07:11 2010
@@ -0,0 +1,45 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License,
+ * Version 2.0 (the "License"); you may not use this file except in
+ * compliance with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.pivot.experiments.scala_use_pivot
+
+import java.util._;
+import java.text.DateFormat;
+import java.text.DateFormat._;
+
+/**
+ * Utilities for App(lications) and not only ...
+ */
+object AppUtils
+{
+    // val className = App.getClass().getName().split(".$")(0)  // trick: remove the $ at the end of the name ...
+    val df  = getDateTimeInstance
+
+    def className(clazz: AnyRef): String = 
+    {
+      val className : String = clazz.getClass().getName().split(".$")(0)  // trick: remove the $ at the end of the name ...
+      return className
+    }
+    
+    def log(msg: String) 
+    {
+        val now = new Date
+        
+        println(df.format(now) + " - " + msg)
+    }
+    
+}

Added: pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/HelloScala.scala
URL: http://svn.apache.org/viewvc/pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/HelloScala.scala?rev=945970&view=auto
==============================================================================
--- pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/HelloScala.scala (added)
+++ pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/HelloScala.scala Wed May 19 00:07:11 2010
@@ -0,0 +1,71 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License,
+ * Version 2.0 (the "License"); you may not use this file except in
+ * compliance with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.pivot.experiments.scala_use_pivot
+
+import java.awt.Color;
+import java.awt.Font;
+
+import org.apache.pivot.collections.Map;
+import org.apache.pivot.wtk.DesktopApplicationContext;
+import org.apache.pivot.wtk.Display;
+import org.apache.pivot.wtk.HorizontalAlignment;
+import org.apache.pivot.wtk.Label;
+import org.apache.pivot.wtk.VerticalAlignment;
+import org.apache.pivot.wtk.Window;
+import org.apache.pivot.wtk.Application;
+
+/**
+ * Pivot entry point
+ */
+class HelloScala extends org.apache.pivot.wtk.Application 
+{
+    private var window:Window = null
+
+    override def startup(display:Display, properties:Map[String, String]) = 
+    {
+        AppUtils.log("Pivot startup")
+
+        val label = new Label()
+        label.setText("Hello World from Scala!")
+        label.getStyles().put("font", new Font("Arial", Font.BOLD, 24))
+        label.getStyles().put("color", Color.RED)
+        label.getStyles().put("horizontalAlignment", HorizontalAlignment.CENTER)
+        label.getStyles().put("verticalAlignment",   VerticalAlignment.CENTER)
+
+        window = new Window()
+        window.setContent(label)
+        window.setTitle("Hello World from Scala!")
+        window.setMaximized(true)
+        window.open(display)
+    }
+
+    override def shutdown(optional:Boolean):Boolean = 
+    {
+        AppUtils.log("Pivot shutdown")
+
+        if (window != null) 
+          window.close
+        
+        return false;
+    }
+
+    override def suspend():Unit = {}
+
+    override def resume():Unit = {}
+    
+}

Added: pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/HelloScalaApp.scala
URL: http://svn.apache.org/viewvc/pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/HelloScalaApp.scala?rev=945970&view=auto
==============================================================================
--- pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/HelloScalaApp.scala (added)
+++ pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/HelloScalaApp.scala Wed May 19 00:07:11 2010
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License,
+ * Version 2.0 (the "License"); you may not use this file except in
+ * compliance with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.pivot.experiments.scala_use_pivot
+
+import org.apache.pivot.wtk.DesktopApplicationContext;
+
+/**
+ * HelloScala App(lication) entry point, for running HelloScala with Pivot
+ */
+object HelloScalaApp 
+    // extends Application 
+{
+
+    def main(args: Array[String]) = 
+    {
+        AppUtils.log("Scala Application Started" + " (main class " + AppUtils.className(HelloScalaApp) + ")")
+        DesktopApplicationContext.main(classOf[HelloScala], args)
+    }
+
+}

Added: pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/HelloWTKX.scala
URL: http://svn.apache.org/viewvc/pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/HelloWTKX.scala?rev=945970&view=auto
==============================================================================
--- pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/HelloWTKX.scala (added)
+++ pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/HelloWTKX.scala Wed May 19 00:07:11 2010
@@ -0,0 +1,47 @@
+package org.apache.pivot.experiments.scala_use_pivot
+
+import org.apache.pivot.collections.Map;
+import org.apache.pivot.wtk.Application;
+import org.apache.pivot.wtk.DesktopApplicationContext;
+import org.apache.pivot.wtk.Display;
+import org.apache.pivot.wtk.Window;
+import org.apache.pivot.wtkx.WTKXSerializer;
+
+/**
+ * Pivot entry point
+ */
+class HelloWTKX extends org.apache.pivot.wtk.Application 
+{
+    private var window: Window = null
+
+    override def startup(display:Display, properties:Map[String, String]) = 
+    {
+        AppUtils.log("Pivot startup")
+
+        var wtkxSerializer: WTKXSerializer = new WTKXSerializer();
+
+        // note: to load the wtkx file from resources (in the above code), put the resource file in the same folder of the current class,
+        //       or if put in another source folder (like resources), create there the same package/folder structure as found here (under src) ...
+        // window = (Window) wtkxSerializer.readObject(this, "hello.wtkx");           // Java  version
+        window = wtkxSerializer.readObject(this, "hello.wtkx").asInstanceOf[Window];  // Scala version
+
+        if (window != null) 
+            window.open(display);
+        
+    }
+
+    override def shutdown(optional:Boolean):Boolean = 
+    {
+        AppUtils.log("Pivot shutdown")
+
+        if (window != null) 
+          window.close
+        
+        return false;
+    }
+
+    override def suspend():Unit = {}
+
+    override def resume():Unit = {}
+    
+}

Added: pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/HelloWTKXApp.scala
URL: http://svn.apache.org/viewvc/pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/HelloWTKXApp.scala?rev=945970&view=auto
==============================================================================
--- pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/HelloWTKXApp.scala (added)
+++ pivot/skunk/scala-use-pivot/src/main/scala/org/apache/pivot/experiments/scala_use_pivot/HelloWTKXApp.scala Wed May 19 00:07:11 2010
@@ -0,0 +1,18 @@
+package org.apache.pivot.experiments.scala_use_pivot
+
+import org.apache.pivot.wtk.DesktopApplicationContext;
+
+/**
+ * HelloJava App(lication) entry point, for running HelloWTKX with Pivot
+ */
+object HelloWTKXApp 
+    // extends Application 
+{
+
+    def main(args: Array[String]) = 
+    {
+        AppUtils.log("Scala Application Started" + " (main class " + AppUtils.className(HelloWTKXApp) + ")")
+        DesktopApplicationContext.main(classOf[HelloWTKX], args)
+    }
+
+}

Added: pivot/skunk/scala-use-pivot/src/test/scala/org/apache/pivot/experiments/scala_use_pivot/AppTest.scala
URL: http://svn.apache.org/viewvc/pivot/skunk/scala-use-pivot/src/test/scala/org/apache/pivot/experiments/scala_use_pivot/AppTest.scala?rev=945970&view=auto
==============================================================================
--- pivot/skunk/scala-use-pivot/src/test/scala/org/apache/pivot/experiments/scala_use_pivot/AppTest.scala (added)
+++ pivot/skunk/scala-use-pivot/src/test/scala/org/apache/pivot/experiments/scala_use_pivot/AppTest.scala Wed May 19 00:07:11 2010
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License,
+ * Version 2.0 (the "License"); you may not use this file except in
+ * compliance with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.pivot.experiments.scala_use_pivot
+
+import org.junit._
+import Assert._
+
+@Test
+class AppTest {
+
+    @Test
+    def testOK() = assertTrue(true)
+
+//    @Test
+//    def testKO() = assertTrue(false)
+
+}
+
+