Author: fthomas
Date: Sun Dec 9 02:25:44 2012
New Revision: 1418812
URL: http://svn.apache.org/viewvc?rev=1418812&view=rev
Log:
- cleaned code
Modified:
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/infrastructure/command/StartHelperCommand.as
Modified:
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/infrastructure/command/StartHelperCommand.as
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/infrastructure/command/StartHelperCommand.as?rev=1418812&r1=1418811&r2=1418812&view=diff
==============================================================================
---
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/infrastructure/command/StartHelperCommand.as
(original)
+++
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/infrastructure/command/StartHelperCommand.as
Sun Dec 9 02:25:44 2012
@@ -2,6 +2,8 @@ package org.apache.flex.utilities.develo
import mx.logging.ILogger;
import
org.apache.flex.utilities.developerToolSuite.executor.domain.ISettingsModel;
+ import
org.apache.flex.utilities.developerToolSuite.executor.domain.SettingModel;
+ import
org.apache.flex.utilities.developerToolSuite.executor.infrastructure.command.CommandCallBack;
import
org.apache.flex.utilities.developerToolSuite.executor.infrastructure.command.CommandCallBackError;
import
org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message.ValidateAntPathMessage;
import
org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message.ValidateCygwinPathMessage;
@@ -20,7 +22,7 @@ package org.apache.flex.utilities.develo
public var context:Context;
[Inject]
- public var settings:ISettingsModel;
+ public var settings:SettingModel;
[MessageDispatcher]
public var dispatch:Function;
@@ -37,22 +39,27 @@ package org.apache.flex.utilities.develo
[CommandError]
public function
validateJavaPathCommandError(error:CommandCallBackError,
trigger:ValidateJavaPathMessage):void {
- SettingsWindow.show(context);
+ openSettingsWindow()
}
[CommandError]
public function
validateAntPathCommandError(error:CommandCallBackError,
trigger:ValidateAntPathMessage):void {
- SettingsWindow.show(context);
+ openSettingsWindow()
}
[CommandError]
public function
validateMavenPathCommandError(error:CommandCallBackError,
trigger:ValidateMavenPathMessage):void {
- SettingsWindow.show(context);
+ openSettingsWindow()
}
[CommandError]
public function
validateCygwinPathCommandError(error:CommandCallBackError,
trigger:ValidateCygwinPathMessage):void {
+ openSettingsWindow()
+ }
+
+ private function openSettingsWindow():void {
SettingsWindow.show(context);
+ callback(CommandCallBack.DEFAULT_RESULT);
}
}
}