flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ftho...@apache.org
Subject svn commit: r1451103 - in /flex/whiteboard/fthomas/developerToolSuite/trunk: org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/infrastructure/command/ org.apache.flex.utilities.develop...
Date Thu, 28 Feb 2013 05:38:37 GMT
Author: fthomas
Date: Thu Feb 28 05:38:37 2013
New Revision: 1451103

URL: http://svn.apache.org/r1451103
Log:
- Minor adjustments

Added:
    flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/domain/ISettingsToSave.as
Modified:
    flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/infrastructure/command/LaunchUICommand.as
    flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/graphic/settings/GeneralSettings.mxml
    flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/domain/ISettingsModel.as
    flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/command/SaveSettingsCommand.as
    flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/message/SaveSettingsMessage.as
    flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.host-swf/src/main/flex/org/apache/flex/utilities/developerToolSuite/MainApplication.mxml

Modified: flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/infrastructure/command/LaunchUICommand.as
URL: http://svn.apache.org/viewvc/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/infrastructure/command/LaunchUICommand.as?rev=1451103&r1=1451102&r2=1451103&view=diff
==============================================================================
--- flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/infrastructure/command/LaunchUICommand.as
(original)
+++ flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/infrastructure/command/LaunchUICommand.as
Thu Feb 28 05:38:37 2013
@@ -47,8 +47,6 @@ package org.apache.flex.utilities.develo
             _progress.currentStepLabel = "VALIDATING_JAVA_HOME";
             _progress.currentStep = 1;
 
-            settings.validationInProgress = _progress;
-
             dispatch(new ValidateJavaPathMessage(settings.JAVA_HOME));
             dispatch(new ValidateAntPathMessage(settings.ANT_HOME));
             dispatch(new ValidateMavenPathMessage(settings.MAVEN_HOME));

Modified: flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/graphic/settings/GeneralSettings.mxml
URL: http://svn.apache.org/viewvc/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/graphic/settings/GeneralSettings.mxml?rev=1451103&r1=1451102&r2=1451103&view=diff
==============================================================================
--- flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/graphic/settings/GeneralSettings.mxml
(original)
+++ flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/graphic/settings/GeneralSettings.mxml
Thu Feb 28 05:38:37 2013
@@ -84,7 +84,7 @@ limitations under the License.
     <mx:GridRow/>
 
     <fx:Script><![CDATA[
-        import org.apache.flex.utilities.developerToolSuite.executor.domain.ISettingsModel;
+        import org.apache.flex.utilities.developerToolSuite.executor.domain.ISettingsToSave;
         import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message.ChangeLanguageMessage;
         import org.apache.flex.utilities.developerToolSuite.presentation.graphic.component.FrameSkin;
 
@@ -95,7 +95,7 @@ limitations under the License.
 
         [Inject]
         [Bindable]
-        public var model:ISettingsModel;
+        public var model:ISettingsToSave;
 
         [Init]
         public function init():void {

Modified: flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/domain/ISettingsModel.as
URL: http://svn.apache.org/viewvc/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/domain/ISettingsModel.as?rev=1451103&r1=1451102&r2=1451103&view=diff
==============================================================================
--- flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/domain/ISettingsModel.as
(original)
+++ flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/domain/ISettingsModel.as
Thu Feb 28 05:38:37 2013
@@ -1,45 +1,6 @@
 package org.apache.flex.utilities.developerToolSuite.executor.domain {
-    import flash.utils.Dictionary;
-
-    import mx.collections.ArrayCollection;
-
     [Bindable]
-    public interface ISettingsModel {
-
-        function get dbVersion():uint;
-
-        function get appBounds():String;
-
-        function get appDisplayState():String;
-
-        function get availableLanguages():ArrayCollection;
-
-        function get currentLanguage():Object;
-
-        function get environmentVariables():Dictionary;
-
-        function get locale():String;
-
-        function get JAVA_HOME():String;
-
-        function get ANT_HOME():String;
-
-        function get MAVEN_HOME():String;
-
-        function get CYGWIN_HOME():String;
-
-        function get javaEnabled():Boolean;
-
-        function get antEnabled():Boolean;
-
-        function get mavenEnabled():Boolean;
-
-        function get cygwinEnabled():Boolean;
-
-        function get svnEnabled():Boolean;
-
-        function get gitEnabled():Boolean;
-
+    public interface ISettingsModel extends ISettingsToSave {
         function get validationInProgress():ISettingsValidationInProgressModel;
     }
 }

Added: flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/domain/ISettingsToSave.as
URL: http://svn.apache.org/viewvc/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/domain/ISettingsToSave.as?rev=1451103&view=auto
==============================================================================
--- flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/domain/ISettingsToSave.as
(added)
+++ flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/domain/ISettingsToSave.as
Thu Feb 28 05:38:37 2013
@@ -0,0 +1,42 @@
+package org.apache.flex.utilities.developerToolSuite.executor.domain {
+    import flash.utils.Dictionary;
+
+    import mx.collections.ArrayCollection;
+
+    public interface ISettingsToSave {
+
+        function get dbVersion():uint;
+
+        function get appBounds():String;
+
+        function get appDisplayState():String;
+
+        function get availableLanguages():ArrayCollection;
+
+        function get currentLanguage():Object;
+
+        function get environmentVariables():Dictionary;
+
+        function get locale():String;
+
+        function get JAVA_HOME():String;
+
+        function get ANT_HOME():String;
+
+        function get MAVEN_HOME():String;
+
+        function get CYGWIN_HOME():String;
+
+        function get javaEnabled():Boolean;
+
+        function get antEnabled():Boolean;
+
+        function get mavenEnabled():Boolean;
+
+        function get cygwinEnabled():Boolean;
+
+        function get svnEnabled():Boolean;
+
+        function get gitEnabled():Boolean;
+    }
+}

Modified: flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/command/SaveSettingsCommand.as
URL: http://svn.apache.org/viewvc/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/command/SaveSettingsCommand.as?rev=1451103&r1=1451102&r2=1451103&view=diff
==============================================================================
--- flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/command/SaveSettingsCommand.as
(original)
+++ flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/command/SaveSettingsCommand.as
Thu Feb 28 05:38:37 2013
@@ -17,8 +17,8 @@
 package org.apache.flex.utilities.developerToolSuite.executor.infrastructure.command {
     import mx.utils.ObjectUtil;
 
+    import org.apache.flex.utilities.developerToolSuite.executor.domain.ISettingsToSave;
     import org.apache.flex.utilities.developerToolSuite.executor.domain.ISettingsValidationInProgressModel;
-
     import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message.SaveSettingsMessage;
     import org.spicefactory.lib.reflect.ClassInfo;
     import org.spicefactory.lib.reflect.Property;
@@ -34,12 +34,10 @@ package org.apache.flex.utilities.develo
         }
 
         override protected function prepareSql():void {
-            var classInfo:ClassInfo = ClassInfo.forInstance(_msg.settings);
+            var property:String;
             sql = "";
-            for (var i:uint=0; i < classInfo.getProperties().length; i++) {
-                var property:Property = classInfo.getProperties()[i] as Property;
-                if (!(property.type is ISettingsValidationInProgressModel))
-                    sql += "UPDATE setting SET value='" + _msg.settings[property.name] +
"' WHERE name='" + property.name + "';";
+            for (property in _msg.settings) {
+                sql += "UPDATE setting SET value='" + _msg.settings[property] + "' WHERE
name='" + property + "';";
             }
 
             super.prepareSql();

Modified: flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/message/SaveSettingsMessage.as
URL: http://svn.apache.org/viewvc/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/message/SaveSettingsMessage.as?rev=1451103&r1=1451102&r2=1451103&view=diff
==============================================================================
--- flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/message/SaveSettingsMessage.as
(original)
+++ flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/message/SaveSettingsMessage.as
Thu Feb 28 05:38:37 2013
@@ -15,17 +15,17 @@
  limitations under the License.
  */
 package org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message {
-    import org.apache.flex.utilities.developerToolSuite.executor.domain.ISettingsModel;
+    import org.apache.flex.utilities.developerToolSuite.executor.domain.ISettingsToSave;
 
     public class SaveSettingsMessage {
 
-        private var _settings:ISettingsModel;
+        private var _settings:ISettingsToSave;
 
-        public function SaveSettingsMessage(settings:ISettingsModel) {
+        public function SaveSettingsMessage(settings:ISettingsToSave) {
             this._settings = settings;
         }
 
-        public function get settings():ISettingsModel {
+        public function get settings():ISettingsToSave {
             return _settings;
         }
     }

Modified: flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.host-swf/src/main/flex/org/apache/flex/utilities/developerToolSuite/MainApplication.mxml
URL: http://svn.apache.org/viewvc/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.host-swf/src/main/flex/org/apache/flex/utilities/developerToolSuite/MainApplication.mxml?rev=1451103&r1=1451102&r2=1451103&view=diff
==============================================================================
--- flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.host-swf/src/main/flex/org/apache/flex/utilities/developerToolSuite/MainApplication.mxml
(original)
+++ flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.host-swf/src/main/flex/org/apache/flex/utilities/developerToolSuite/MainApplication.mxml
Thu Feb 28 05:38:37 2013
@@ -75,6 +75,8 @@ limitations under the License.
         import org.spicefactory.parsley.core.command.ManagedCommandFactory;
         import org.spicefactory.parsley.core.context.Context;
 
+        private const APP_DEFAULT_SIZE:Rectangle = new Rectangle(120, 120, 1200, 825);
+
         [Inject]
         public var context:Context;
 
@@ -115,7 +117,7 @@ limitations under the License.
                 var bounds:Array = applicationSettings.appBounds.split(",");
                 _appBounds = nativeWindow.bounds = new Rectangle(bounds[0], bounds[1], bounds[2],
bounds[3]);
             } else {
-                _appBounds = nativeWindow.bounds = new Rectangle(120, 120, 1200, 825);
+                _appBounds = nativeWindow.bounds = APP_DEFAULT_SIZE;
             }
 
             if (applicationSettings.appDisplayState) {
@@ -183,12 +185,12 @@ limitations under the License.
         [MessageHandler]
         public function applicationExitReady(msg:ApplicationExitReadyMessage):void {
             LogUtil.getLogger(this).info('Application Exiting');
-            this.exit();
+            exit();
         }
 
         private static function addLogTargets():void {
             var parsleyLogger:TraceTarget = new TraceTarget();
-            parsleyLogger.filters = ["org.spicefactory.*", "mx.*"];
+            parsleyLogger.filters = ["org.spicefactory.*"];
             parsleyLogger.level = LogEventLevel.ERROR;
             parsleyLogger.includeCategory = true;
             parsleyLogger.includeLevel = true;



Mime
View raw message