incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ftho...@apache.org
Subject svn commit: r1417765 - in /incubator/flex/whiteboard/fthomas/developerToolSuite/trunk: org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/graphic/settings/ org.apache.flex....
Date Thu, 06 Dec 2012 08:13:28 GMT
Author: fthomas
Date: Thu Dec  6 08:13:27 2012
New Revision: 1417765

URL: http://svn.apache.org/viewvc?rev=1417765&view=rev
Log:
- enforced mvc rules

Added:
    incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/domain/ISettingsModel.as
Modified:
    incubator/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
    incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/domain/SettingModel.as
    incubator/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
    incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.host-swf/src/main/flex/org/apache/flex/utilities/developerToolSuite/MainApplication.mxml

Modified: incubator/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/incubator/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=1417765&r1=1417764&r2=1417765&view=diff
==============================================================================
--- incubator/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)
+++ incubator/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 Dec  6 08:13:27 2012
@@ -62,7 +62,7 @@ limitations under the License.
     <mx:GridRow/>
 
     <fx:Script><![CDATA[
-        import org.apache.flex.utilities.developerToolSuite.executor.domain.SettingModel;
+        import org.apache.flex.utilities.developerToolSuite.executor.domain.ISettingsModel;
         import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message.ChangeLanguageMessage;
         import org.apache.flex.utilities.developerToolSuite.presentation.graphic.component.FrameSkin;
 
@@ -73,7 +73,7 @@ limitations under the License.
 
         [Inject]
         [Bindable]
-        public var model:SettingModel;
+        public var model:ISettingsModel;
 
         [Init]
         public function init():void {

Added: incubator/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/incubator/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=1417765&view=auto
==============================================================================
--- incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/domain/ISettingsModel.as
(added)
+++ incubator/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 Dec  6 08:13:27 2012
@@ -0,0 +1,28 @@
+package org.apache.flex.utilities.developerToolSuite.executor.domain {
+    import flash.utils.Dictionary;
+
+    import mx.collections.ArrayCollection;
+
+    [Bindable]
+    public interface ISettingsModel {
+        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 javaEnabled():Boolean;
+
+        function get antEnabled():Boolean;
+
+        function get mavenEnabled():Boolean;
+    }
+}

Modified: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/domain/SettingModel.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/domain/SettingModel.as?rev=1417765&r1=1417764&r2=1417765&view=diff
==============================================================================
--- incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/domain/SettingModel.as
(original)
+++ incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/domain/SettingModel.as
Thu Dec  6 08:13:27 2012
@@ -21,27 +21,98 @@ package org.apache.flex.utilities.develo
 
     import org.apache.flex.utilities.developerToolSuite.LocaleUtil;
 
-    [Bindable]
-    public class SettingModel {
+    public class SettingModel implements ISettingsModel {
 
         public function get availableLanguages():ArrayCollection {
             return new ArrayCollection(LocaleUtil.AVAILABLE_LANGUAGES);
         }
 
         public function get currentLanguage():Object {
-            return LocaleUtil.getDefaultLanguage(locale);
+            return LocaleUtil.getDefaultLanguage(_locale);
         }
 
-        public var environmentVariables:Dictionary;
+        private var _environmentVariables:Dictionary;
 
-        public var locale:String;
+        private var _locale:String;
 
-        public var JAVA_HOME:String;
-        public var ANT_HOME:String;
-        public var MAVEN_HOME:String;
+        private var _JAVA_HOME:String;
+        private var _ANT_HOME:String;
+        private var _MAVEN_HOME:String;
 
-        public var javaEnabled:Boolean;
-        public var antEnabled:Boolean;
-        public var mavenEnabled:Boolean;
+        private var _javaEnabled:Boolean;
+        private var _antEnabled:Boolean;
+        private var _mavenEnabled:Boolean;
+
+        public function get environmentVariables():Dictionary {
+            return _environmentVariables;
+        }
+
+        [Bindable]
+        public function set environmentVariables(value:Dictionary):void {
+            _environmentVariables = value;
+        }
+
+        public function get locale():String {
+            return _locale;
+        }
+
+        [Bindable]
+        public function set locale(value:String):void {
+            _locale = value;
+        }
+
+        public function get JAVA_HOME():String {
+            return _JAVA_HOME;
+        }
+
+        [Bindable]
+        public function set JAVA_HOME(value:String):void {
+            _JAVA_HOME = value;
+        }
+
+        public function get ANT_HOME():String {
+            return _ANT_HOME;
+        }
+
+        [Bindable]
+        public function set ANT_HOME(value:String):void {
+            _ANT_HOME = value;
+        }
+
+        public function get MAVEN_HOME():String {
+            return _MAVEN_HOME;
+        }
+
+        [Bindable]
+        public function set MAVEN_HOME(value:String):void {
+            _MAVEN_HOME = value;
+        }
+
+        public function get javaEnabled():Boolean {
+            return _javaEnabled;
+        }
+
+        [Bindable]
+        public function set javaEnabled(value:Boolean):void {
+            _javaEnabled = value;
+        }
+
+        public function get antEnabled():Boolean {
+            return _antEnabled;
+        }
+
+        [Bindable]
+        public function set antEnabled(value:Boolean):void {
+            _antEnabled = value;
+        }
+
+        public function get mavenEnabled():Boolean {
+            return _mavenEnabled;
+        }
+
+        [Bindable]
+        public function set mavenEnabled(value:Boolean):void {
+            _mavenEnabled = value;
+        }
     }
 }

Modified: incubator/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/incubator/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=1417765&r1=1417764&r2=1417765&view=diff
==============================================================================
--- incubator/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)
+++ incubator/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 Dec  6 08:13:27 2012
@@ -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.SettingModel;
+    import org.apache.flex.utilities.developerToolSuite.executor.domain.ISettingsModel;
 
     public class SaveSettingsMessage {
 
-        private var _settings:SettingModel;
+        private var _settings:ISettingsModel;
 
-        public function SaveSettingsMessage(settings:SettingModel) {
+        public function SaveSettingsMessage(settings:ISettingsModel) {
             this._settings = settings;
         }
 
-        public function get settings():SettingModel {
+        public function get settings():ISettingsModel {
             return _settings;
         }
     }

Modified: incubator/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/incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.host-swf/src/main/flex/org/apache/flex/utilities/developerToolSuite/MainApplication.mxml?rev=1417765&r1=1417764&r2=1417765&view=diff
==============================================================================
--- incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.host-swf/src/main/flex/org/apache/flex/utilities/developerToolSuite/MainApplication.mxml
(original)
+++ incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.host-swf/src/main/flex/org/apache/flex/utilities/developerToolSuite/MainApplication.mxml
Thu Dec  6 08:13:27 2012
@@ -49,7 +49,7 @@ limitations under the License.
         import mx.logging.LogEventLevel;
         import mx.logging.targets.TraceTarget;
 
-        import org.apache.flex.utilities.developerToolSuite.executor.domain.SettingModel;
+        import org.apache.flex.utilities.developerToolSuite.executor.domain.ISettingsModel;
         import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.config.ExecutorContext;
         import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message.ApplicationReadyMessage;
         import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message.InitApplicationMessage;
@@ -62,7 +62,7 @@ limitations under the License.
         public var applicationMenu:ApplicationMenu;
 
         [Inject]
-        public var applicationSettings:SettingModel;
+        public var applicationSettings:ISettingsModel;
 
         [MessageDispatcher]
         public var dispatch:Function;



Mime
View raw message