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 2012/05/16 00:48:47 UTC

svn commit: r1338930 [2/2] - in /pivot/trunk: core/src/org/apache/pivot/util/ core/test/org/apache/pivot/serialization/test/ tests/src/org/apache/pivot/tests/ tests/src/org/apache/pivot/tests/issues/ tutorials/src/org/apache/pivot/tutorials/ wtk/src/or...

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/scripts_diagnostic_messages.js
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/scripts_diagnostic_messages.js?rev=1338930&r1=1338929&r2=1338930&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/scripts_diagnostic_messages.js (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/scripts_diagnostic_messages.js Tue May 15 22:48:46 2012
@@ -1,52 +1,52 @@
-/*
- * 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.
- */
-importPackage(java.lang);  // required to use System.out and System.err
-importPackage(org.apache.pivot.util);  // required to use Pivot Utility class Console
-importPackage(org.apache.pivot.wtk);   // required to use Pivot WTK classes
-
-function alert1() {
-	Alert.alert("Alert message", window);
-}
-
-function alert2() {
-	Alert("Alert message").open(window);
-}
-
-function prompt1() {
-	Prompt.prompt("Prompt message", window);
-}
-
-function prompt2() {
-	Prompt("Prompt message").open(window);
-}
-
-function logDirectMessage() {
-	System.out.println("Log message via direct call to System.out");
-}
-
-function logDirectError() {
-	System.err.println("Log error via direct call to System.err");
-}
-
-function logConsoleMessage() {
-	Console.log("Log message via Console");
-}
-
-function logConsoleError() {
-	Console.logError("Log error via Console");
-}
-
+/*
+ * 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.
+ */
+importPackage(java.lang);  // required to use System.out and System.err
+importPackage(org.apache.pivot.util);  // required to use Pivot Utility class Console
+importPackage(org.apache.pivot.wtk);   // required to use Pivot WTK classes
+
+function alert1() {
+	Alert.alert("Alert message", window);
+}
+
+function alert2() {
+	Alert("Alert message").open(window);
+}
+
+function prompt1() {
+	Prompt.prompt("Prompt message", window);
+}
+
+function prompt2() {
+	Prompt("Prompt message").open(window);
+}
+
+function logDirectMessage() {
+	System.out.println("Log message via direct call to System.out");
+}
+
+function logDirectError() {
+	System.err.println("Log error via direct call to System.err");
+}
+
+function logConsoleMessage() {
+	Console.log("Log message via Console");
+}
+
+function logConsoleError() {
+	Console.logError("Log error via Console");
+}
+

Propchange: pivot/trunk/tests/src/org/apache/pivot/tests/scripts_diagnostic_messages.js
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: pivot/trunk/tutorials/src/org/apache/pivot/tutorials/info.bxml
URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/info.bxml?rev=1338930&r1=1338929&r2=1338930&view=diff
==============================================================================
--- pivot/trunk/tutorials/src/org/apache/pivot/tutorials/info.bxml (original)
+++ pivot/trunk/tutorials/src/org/apache/pivot/tutorials/info.bxml Tue May 15 22:48:46 2012
@@ -1,31 +1,31 @@
-<?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.
--->
-
-<BoxPane xmlns:bxml="http://pivot.apache.org/bxml"
-    xmlns:content="org.apache.pivot.wtk.content"
-    xmlns="org.apache.pivot.wtk"
->
-    <BoxPane orientation="horizontal" styles="{padding:{top:2, left:4, bottom:4, right:4}, spacing:10}">
-        <Label bxml:id="info-pivot-version" text="Pivot-"/>
-        <Label text=" , "/> <!-- Spacer -->
-        <Label bxml:id="info-pivot-origin" text="Running from "/>
-        <Label text=" , "/> <!-- Spacer -->
-        <Label bxml:id="info-java-version" text="Java Version: "/>
-        <Label text=""/> <!-- Spacer -->
-    </BoxPane>
-</BoxPane>
+<?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.
+-->
+
+<BoxPane xmlns:bxml="http://pivot.apache.org/bxml"
+    xmlns:content="org.apache.pivot.wtk.content"
+    xmlns="org.apache.pivot.wtk"
+>
+    <BoxPane orientation="horizontal" styles="{padding:{top:2, left:4, bottom:4, right:4}, spacing:10}">
+        <Label bxml:id="info-pivot-version" text="Pivot-"/>
+        <Label text=" , "/> <!-- Spacer -->
+        <Label bxml:id="info-pivot-origin" text="Running from "/>
+        <Label text=" , "/> <!-- Spacer -->
+        <Label bxml:id="info-java-version" text="Java Version: "/>
+        <Label text=""/> <!-- Spacer -->
+    </BoxPane>
+</BoxPane>

Propchange: pivot/trunk/tutorials/src/org/apache/pivot/tutorials/info.bxml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: pivot/trunk/tutorials/src/org/apache/pivot/tutorials/info.bxml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/validation/NotEmptyTextValidator.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/validation/NotEmptyTextValidator.java?rev=1338930&r1=1338929&r2=1338930&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/validation/NotEmptyTextValidator.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/validation/NotEmptyTextValidator.java Tue May 15 22:48:46 2012
@@ -1,29 +1,29 @@
-/*
- * 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.
- */
-package org.apache.pivot.wtk.validation;
-
-/**
- * A validator for a (trimmed) not empty text.
- */
-public class NotEmptyTextValidator implements Validator {
-
-    public NotEmptyTextValidator() {
-    }
-
-    @Override
-    public boolean isValid(String text) {
-        return (text.trim()).length() > 0;
-    }
-
-}
+/*
+ * 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.
+ */
+package org.apache.pivot.wtk.validation;
+
+/**
+ * A validator for a (trimmed) not empty text.
+ */
+public class NotEmptyTextValidator implements Validator {
+
+    public NotEmptyTextValidator() {
+    }
+
+    @Override
+    public boolean isValid(String text) {
+        return (text.trim()).length() > 0;
+    }
+
+}

Propchange: pivot/trunk/wtk/src/org/apache/pivot/wtk/validation/NotEmptyTextValidator.java
------------------------------------------------------------------------------
    svn:eol-style = native