You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ft...@apache.org on 2012/12/07 07:56:31 UTC
svn commit: r1418200 - in
/incubator/flex/whiteboard/fthomas/developerToolSuite/trunk:
org.apache.flex.utilities.developerToolSuite.air/
org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSui...
Author: fthomas
Date: Fri Dec 7 06:56:24 2012
New Revision: 1418200
URL: http://svn.apache.org/viewvc?rev=1418200&view=rev
Log:
- optimized imports
Modified:
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.air/ (props changed)
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/behavior/menu/IApplicationMenuPM.as
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/behavior/validator/ToolPathValidator.as
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/graphic/component/Frame.as
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/graphic/menu/ApplicationMenu.mxml
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/graphic/menu/GeneralMenu.as
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/graphic/settings/SettingsWindow.mxml
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/graphic/settings/formItem/AntHomeFormItem.mxml
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/graphic/settings/formItem/SvnHomeFormItem.mxml
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/graphic/settings/formItem/ToolHomeFormItem.mxml
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/command/AbstractDBCommand.as
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/command/GetEnvironmentVariablesCommand.as
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/command/InitDBCommand.as
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/command/SaveSettingCommand.as
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/command/ValidateAntPathCommand.as
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/command/ValidateJavaPathCommand.as
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/database/ApplicationDB.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/SaveSettingMessage.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/ValidateAntPathMessage.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/ValidateJavaPathMessage.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/ValidateMavenPathMessage.as
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/nativeProcess/NativeShellHelper.as
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/test/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/nativeProcess/CommandLineProcessTest.as
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.host-swf/pom.xml
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.host-swf/src/main/flex/org/apache/flex/utilities/developerToolSuite/ApplicationContext.mxml
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.locale/src/main/flex/org/apache/flex/utilities/developerToolSuite/LocaleUtil.as
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.standard-theme/src/main/flex/org/apache/flex/utilities/developerToolSuite/ApplicationSkin.mxml
Propchange: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.air/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Dec 7 06:56:24 2012
@@ -0,0 +1 @@
+target
Modified: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/behavior/menu/IApplicationMenuPM.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/presentation/behavior/menu/IApplicationMenuPM.as?rev=1418200&r1=1418199&r2=1418200&view=diff
==============================================================================
--- incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/behavior/menu/IApplicationMenuPM.as (original)
+++ incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/behavior/menu/IApplicationMenuPM.as Fri Dec 7 06:56:24 2012
@@ -1,6 +1,7 @@
package org.apache.flex.utilities.developerToolSuite.presentation.behavior.menu {
public interface IApplicationMenuPM {
function get dataProvider():XML;
+
function getMenuItemLabel(item:Object):String;
}
}
Modified: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/behavior/validator/ToolPathValidator.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/presentation/behavior/validator/ToolPathValidator.as?rev=1418200&r1=1418199&r2=1418200&view=diff
==============================================================================
--- incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/behavior/validator/ToolPathValidator.as (original)
+++ incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/behavior/validator/ToolPathValidator.as Fri Dec 7 06:56:24 2012
@@ -18,7 +18,7 @@ package org.apache.flex.utilities.develo
import mx.validators.ValidationResult;
import mx.validators.Validator;
- public class ToolPathValidator extends Validator{
+ public class ToolPathValidator extends Validator {
[Bindable]
public var errorStringResourceString:String;
@@ -35,8 +35,9 @@ package org.apache.flex.utilities.develo
// Call base class doValidation().
ValidatorResults = super.doValidation(value);
// Return if there are errors.
- if (ValidatorResults.length > 0)
+ if (ValidatorResults.length > 0) {
return ValidatorResults;
+ }
if (Boolean(value) == false) {
ValidatorResults.push(new ValidationResult(true, null, "Tool Home Path Error",
Modified: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/graphic/component/Frame.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/presentation/graphic/component/Frame.as?rev=1418200&r1=1418199&r2=1418200&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/component/Frame.as (original)
+++ incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/graphic/component/Frame.as Fri Dec 7 06:56:24 2012
@@ -17,8 +17,6 @@
package org.apache.flex.utilities.developerToolSuite.presentation.graphic.component {
import flash.events.Event;
- import mx.core.IVisualElement;
-
import spark.components.BorderContainer;
import spark.core.IDisplayText;
@@ -62,8 +60,7 @@ package org.apache.flex.utilities.develo
//-------------------------------------- // Other metadata //--------------------------------------
-
- public class Frame extends BorderContainer{
+ public class Frame extends BorderContainer {
public function Frame() {
super();
}
@@ -143,8 +140,9 @@ package org.apache.flex.utilities.develo
_label = value;
- if (labelDisplay)
+ if (labelDisplay) {
labelDisplay.text = _label;
+ }
dispatchEvent(new Event("labelChange"));
}
@@ -174,8 +172,9 @@ package org.apache.flex.utilities.develo
labelDisplay.addEventListener("isTruncatedChanged", labelDisplay_isTruncatedChangedHandler);
// Push down to the part only if the label was explicitly set
- if (labelDisplay !== null)
+ if (labelDisplay !== null) {
labelDisplay.text = label;
+ }
}
}
@@ -195,8 +194,9 @@ package org.apache.flex.utilities.develo
*/
private function labelDisplay_isTruncatedChangedHandler(event:Event):void {
- if (_explicitToolTip)
+ if (_explicitToolTip) {
return;
+ }
var isTruncated:Boolean = labelDisplay.isTruncated;
Modified: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/graphic/menu/ApplicationMenu.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/menu/ApplicationMenu.mxml?rev=1418200&r1=1418199&r2=1418200&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/menu/ApplicationMenu.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/menu/ApplicationMenu.mxml Fri Dec 7 06:56:24 2012
@@ -21,16 +21,12 @@ limitations under the License.
xmlns:parsley="http://www.spicefactory.org/parsley">
<fx:Script><![CDATA[
- import mx.core.Application;
- import mx.core.FlexGlobals;
import mx.events.FlexNativeMenuEvent;
import mx.resources.ResourceManager;
import org.apache.flex.utilities.developerToolSuite.infrastructure.message.MenuActionMessage;
import org.apache.flex.utilities.developerToolSuite.presentation.behavior.menu.IApplicationMenuPM;
- import spark.components.WindowedApplication;
-
[Inject]
public var model:IApplicationMenuPM;
Modified: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/graphic/menu/GeneralMenu.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/presentation/graphic/menu/GeneralMenu.as?rev=1418200&r1=1418199&r2=1418200&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/menu/GeneralMenu.as (original)
+++ incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/graphic/menu/GeneralMenu.as Fri Dec 7 06:56:24 2012
@@ -15,10 +15,6 @@
limitations under the License.
*/
package org.apache.flex.utilities.developerToolSuite.presentation.graphic.menu {
- import flash.display.DisplayObject;
-
- import mx.core.FlexGlobals;
- import mx.managers.PopUpManager;
import mx.resources.ResourceManager;
import org.apache.flex.utilities.developerToolSuite.presentation.graphic.settings.SettingsWindow;
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/SettingsWindow.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/SettingsWindow.mxml?rev=1418200&r1=1418199&r2=1418200&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/SettingsWindow.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/SettingsWindow.mxml Fri Dec 7 06:56:24 2012
@@ -16,15 +16,15 @@ See the License for the specific languag
limitations under the License.
-->
<s:TitleWindow xmlns:fx="http://ns.adobe.com/mxml/2009"
- xmlns:s="library://ns.adobe.com/flex/spark"
- xmlns:mx="library://ns.adobe.com/flex/mx"
- xmlns:parsley="http://www.spicefactory.org/parsley"
- xmlns:settings="org.apache.flex.utilities.developerToolSuite.presentation.graphic.settings.*"
- title="{resourceManager.getString('Application', 'SETTINGS')}"
- width="100%" height="480"
- addedToStage="addedToStageHandler(event)"
- removedFromStage="removedFromStageHandler(event)"
- close="PopUpManager.removePopUp(this)">
+ xmlns:s="library://ns.adobe.com/flex/spark"
+ xmlns:mx="library://ns.adobe.com/flex/mx"
+ xmlns:parsley="http://www.spicefactory.org/parsley"
+ xmlns:settings="org.apache.flex.utilities.developerToolSuite.presentation.graphic.settings.*"
+ title="{resourceManager.getString('Application', 'SETTINGS')}"
+ width="100%" height="480"
+ addedToStage="addedToStageHandler(event)"
+ removedFromStage="removedFromStageHandler(event)"
+ close="PopUpManager.removePopUp(this)">
<s:layout>
<s:VerticalLayout/>
@@ -34,7 +34,7 @@ limitations under the License.
<mx:ViewStack id="settingsViewStack" height="100%" width="100%">
<s:NavigatorContent id="generalSettingsContent" label="{resourceManager.getString('SettingsWindow', 'GENERAL')}">
- <settings:GeneralSettings />
+ <settings:GeneralSettings/>
</s:NavigatorContent>
</mx:ViewStack>
@@ -49,13 +49,12 @@ limitations under the License.
<fx:Script><![CDATA[
import mx.core.FlexGlobals;
- import mx.core.IFlexDisplayObject;
import mx.events.ResizeEvent;
import mx.managers.PopUpManager;
import org.spicefactory.parsley.core.context.Context;
- public static function show(context:Context,modal:Boolean = true):SettingsWindow {
+ public static function show(context:Context, modal:Boolean = true):SettingsWindow {
var window:SettingsWindow = new SettingsWindow();
context.viewManager.addViewRoot(window);
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/formItem/AntHomeFormItem.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/formItem/AntHomeFormItem.mxml?rev=1418200&r1=1418199&r2=1418200&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/formItem/AntHomeFormItem.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/formItem/AntHomeFormItem.mxml Fri Dec 7 06:56:24 2012
@@ -28,6 +28,5 @@ limitations under the License.
errorStringTextResourceString="ANT_HOME_ERROR_STRING">
<fx:Script><![CDATA[
import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message.ValidateAntPathMessage;
- import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message.ValidateAntPathMessage;
]]></fx:Script>
</formitem:ToolHomeFormItem>
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/formItem/SvnHomeFormItem.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/formItem/SvnHomeFormItem.mxml?rev=1418200&r1=1418199&r2=1418200&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/formItem/SvnHomeFormItem.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/formItem/SvnHomeFormItem.mxml Fri Dec 7 06:56:24 2012
@@ -16,13 +16,13 @@ See the License for the specific languag
limitations under the License.
-->
<formitem:VCSFormItem xmlns:fx="http://ns.adobe.com/mxml/2009"
- xmlns:s="library://ns.adobe.com/flex/spark"
- xmlns:mx="library://ns.adobe.com/flex/mx"
- xmlns:formitem="org.apache.flex.utilities.developerToolSuite.presentation.graphic.settings.formItem.*"
- propertyName="SVN"
- helpUrlText="(SVN Home Page)"
- helpUrl="http://subversion.apache.org/packages.html"
- validateVcsMessageClass="{ValidateSvnPathMessage}">
+ xmlns:s="library://ns.adobe.com/flex/spark"
+ xmlns:mx="library://ns.adobe.com/flex/mx"
+ xmlns:formitem="org.apache.flex.utilities.developerToolSuite.presentation.graphic.settings.formItem.*"
+ propertyName="SVN"
+ helpUrlText="(SVN Home Page)"
+ helpUrl="http://subversion.apache.org/packages.html"
+ validateVcsMessageClass="{ValidateSvnPathMessage}">
<fx:Script><![CDATA[
import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message.ValidateSvnPathMessage;
]]></fx:Script>
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/formItem/ToolHomeFormItem.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/formItem/ToolHomeFormItem.mxml?rev=1418200&r1=1418199&r2=1418200&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/formItem/ToolHomeFormItem.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/formItem/ToolHomeFormItem.mxml Fri Dec 7 06:56:24 2012
@@ -56,7 +56,6 @@ limitations under the License.
import mx.events.FlexEvent;
import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message.SaveSettingMessage;
-
import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.nativeProcess.NativeShellHelper;
import spark.events.TextOperationEvent;
@@ -118,8 +117,9 @@ limitations under the License.
_installationPathValidated = value;
validator.validate();
- if (_installationPathValidated)
+ if (_installationPathValidated) {
dispatch(new SaveSettingMessage(propertyName, toolHomeLocation.text));
+ }
}
]]></fx:Script>
</s:FormItem>
Modified: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/command/AbstractDBCommand.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/command/AbstractDBCommand.as?rev=1418200&r1=1418199&r2=1418200&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/command/AbstractDBCommand.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/command/AbstractDBCommand.as Fri Dec 7 06:56:24 2012
@@ -21,12 +21,9 @@ package org.apache.flex.utilities.develo
import flash.net.Responder;
import mx.logging.ILogger;
-
- import mx.logging.Log;
import mx.utils.ObjectUtil;
import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.database.ApplicationDB;
- import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message.InitApplicationMessage;
import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.util.LogUtil;
public class AbstractDBCommand {
@@ -45,10 +42,11 @@ package org.apache.flex.utilities.develo
protected var stmt:SQLStatement = new SQLStatement();
protected function executeAsync():void {
- if (!db.DBReady)
+ if (!db.DBReady) {
db.connect();
+ }
- prepareSql();
+ prepareSql();
}
protected function prepareSql():void {
Modified: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/command/GetEnvironmentVariablesCommand.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/command/GetEnvironmentVariablesCommand.as?rev=1418200&r1=1418199&r2=1418200&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/command/GetEnvironmentVariablesCommand.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/command/GetEnvironmentVariablesCommand.as Fri Dec 7 06:56:24 2012
@@ -36,16 +36,18 @@ package org.apache.flex.utilities.develo
if (shell.OS == "win") {
command.push("/C");
command.push("set");
+ } else {
+ command.push("env");
}
- else command.push("env");
super.executeCommand();
}
private function extractVariables(output:String):void {
- if (_done)
+ if (_done) {
return;
+ }
_done = true;
settings.environmentVariables = new Dictionary();
Modified: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/command/InitDBCommand.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/command/InitDBCommand.as?rev=1418200&r1=1418199&r2=1418200&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/command/InitDBCommand.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/command/InitDBCommand.as Fri Dec 7 06:56:24 2012
@@ -50,8 +50,9 @@ package org.apache.flex.utilities.develo
LOG.debug("Connecting DB: " + ApplicationDB.DATABASE_NAME);
_conn.open(dbFile);
- if (!settingsTableCreated())
+ if (!settingsTableCreated()) {
buildDatabaseTables();
+ }
_conn.close();
LOG.debug("Closing DB: " + ApplicationDB.DATABASE_NAME);
@@ -70,11 +71,12 @@ package org.apache.flex.utilities.develo
}
var schema:SQLSchemaResult = _conn.getSchemaResult();
- for each(var currentTable:SQLTableSchema in schema.tables)
+ for each(var currentTable:SQLTableSchema in schema.tables) {
if (currentTable.name == "settings") {
LOG.debug("Schema was already created");
return true;
}
+ }
LOG.debug("Schema wasn't already created");
return false;
@@ -91,7 +93,8 @@ package org.apache.flex.utilities.develo
} catch (err:SQLError) {
LOG.error("Error during schema creation: " + ObjectUtil.toString(err) + " : Rolling back !");
_conn.rollback();
- };
+ }
+ ;
function createSettingsTable():void {
var stmtCreateSettingsTable:SQLStatement;
Modified: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/command/SaveSettingCommand.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/command/SaveSettingCommand.as?rev=1418200&r1=1418199&r2=1418200&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/command/SaveSettingCommand.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/command/SaveSettingCommand.as Fri Dec 7 06:56:24 2012
@@ -15,12 +15,9 @@
limitations under the License.
*/
package org.apache.flex.utilities.developerToolSuite.executor.infrastructure.command {
- import mx.resources.ResourceManager;
import mx.utils.ObjectUtil;
- import org.apache.flex.utilities.developerToolSuite.LocaleUtil;
import org.apache.flex.utilities.developerToolSuite.executor.domain.SettingModel;
- import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message.ChangeLanguageMessage;
import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message.SaveSettingMessage;
public class SaveSettingCommand extends AbstractDBCommand {
@@ -38,7 +35,7 @@ package org.apache.flex.utilities.develo
override protected function prepareSql():void {
settings[_msg.name] = _msg.value;
- sql = "UPDATE settings SET value='" + _msg.value + "' WHERE name='" + _msg.name +"';";
+ sql = "UPDATE settings SET value='" + _msg.value + "' WHERE name='" + _msg.name + "';";
super.prepareSql();
}
Modified: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/command/ValidateAntPathCommand.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/command/ValidateAntPathCommand.as?rev=1418200&r1=1418199&r2=1418200&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/command/ValidateAntPathCommand.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/command/ValidateAntPathCommand.as Fri Dec 7 06:56:24 2012
@@ -22,11 +22,10 @@ package org.apache.flex.utilities.develo
import mx.utils.ObjectUtil;
import org.apache.flex.utilities.developerToolSuite.executor.domain.SettingModel;
-
import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message.ValidateAntPathMessage;
import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.util.LogUtil;
- public class ValidateAntPathCommand extends AbstractShellCommand{
+ public class ValidateAntPathCommand extends AbstractShellCommand {
private static var LOG:ILogger = LogUtil.getLogger(ValidateAntPathCommand);
@@ -71,8 +70,9 @@ package org.apache.flex.utilities.develo
var ant:String = shell.formatPath(file.resolvePath("bin/ant.bat").nativePath);
- if (shell.OS == "win")
+ if (shell.OS == "win") {
command.push("/C");
+ }
command.push(ant);
command.push("-version");
@@ -82,8 +82,9 @@ package org.apache.flex.utilities.develo
private function extractVersion(output:String):void {
- if (_done)
+ if (_done) {
return;
+ }
_done = true;
if (output.indexOf("Apache Ant(TM) version") > -1) {
Modified: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/command/ValidateJavaPathCommand.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/command/ValidateJavaPathCommand.as?rev=1418200&r1=1418199&r2=1418200&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/command/ValidateJavaPathCommand.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/command/ValidateJavaPathCommand.as Fri Dec 7 06:56:24 2012
@@ -22,7 +22,6 @@ package org.apache.flex.utilities.develo
import mx.utils.ObjectUtil;
import org.apache.flex.utilities.developerToolSuite.executor.domain.SettingModel;
-
import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message.ValidateJavaPathMessage;
import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.util.LogUtil;
@@ -71,8 +70,9 @@ package org.apache.flex.utilities.develo
var java:String = shell.formatPath(file.resolvePath("bin/java.exe").nativePath);
- if (shell.OS == "win")
+ if (shell.OS == "win") {
command.push("/C");
+ }
command.push(java);
command.push("-version");
@@ -82,8 +82,9 @@ package org.apache.flex.utilities.develo
private function extractVersion(output:String):void {
- if (_done)
+ if (_done) {
return;
+ }
_done = true;
if (output.indexOf("1.6.") > -1) {
Modified: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/database/ApplicationDB.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/database/ApplicationDB.as?rev=1418200&r1=1418199&r2=1418200&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/database/ApplicationDB.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/database/ApplicationDB.as Fri Dec 7 06:56:24 2012
@@ -16,9 +16,7 @@
*/
package org.apache.flex.utilities.developerToolSuite.executor.infrastructure.database {
import flash.data.SQLConnection;
- import flash.data.SQLResult;
import flash.data.SQLStatement;
- import flash.errors.SQLError;
import flash.events.SQLErrorEvent;
import flash.events.SQLEvent;
import flash.filesystem.File;
@@ -27,9 +25,6 @@ package org.apache.flex.utilities.develo
import mx.logging.ILogger;
import mx.utils.ObjectUtil;
- import org.apache.flex.utilities.developerToolSuite.LocaleUtil;
-
- import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message.InitApplicationMessage;
import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.util.LogUtil;
public class ApplicationDB {
@@ -45,8 +40,9 @@ package org.apache.flex.utilities.develo
}
public function connect():void {
- if (DBReady)
+ if (DBReady) {
return;
+ }
LOG.debug("Connecting async DB: " + ApplicationDB.DATABASE_NAME);
_conn = new SQLConnection();
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/SaveSettingMessage.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/SaveSettingMessage.as?rev=1418200&r1=1418199&r2=1418200&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/SaveSettingMessage.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/SaveSettingMessage.as Fri Dec 7 06:56:24 2012
@@ -15,8 +15,6 @@
limitations under the License.
*/
package org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message {
- import org.apache.flex.utilities.developerToolSuite.executor.domain.SettingModel;
-
public class SaveSettingMessage {
private var _name:String;
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/ValidateAntPathMessage.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/ValidateAntPathMessage.as?rev=1418200&r1=1418199&r2=1418200&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/ValidateAntPathMessage.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/ValidateAntPathMessage.as Fri Dec 7 06:56:24 2012
@@ -15,8 +15,6 @@
limitations under the License.
*/
package org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message {
- import mx.rpc.Responder;
-
public class ValidateAntPathMessage {
private var _path:String;
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/ValidateJavaPathMessage.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/ValidateJavaPathMessage.as?rev=1418200&r1=1418199&r2=1418200&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/ValidateJavaPathMessage.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/ValidateJavaPathMessage.as Fri Dec 7 06:56:24 2012
@@ -15,8 +15,6 @@
limitations under the License.
*/
package org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message {
- import mx.rpc.Responder;
-
public class ValidateJavaPathMessage {
private var _path:String;
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/ValidateMavenPathMessage.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/ValidateMavenPathMessage.as?rev=1418200&r1=1418199&r2=1418200&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/ValidateMavenPathMessage.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/ValidateMavenPathMessage.as Fri Dec 7 06:56:24 2012
@@ -15,8 +15,6 @@
limitations under the License.
*/
package org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message {
- import mx.rpc.Responder;
-
public class ValidateMavenPathMessage {
private var _path:String;
Modified: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/nativeProcess/NativeShellHelper.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/nativeProcess/NativeShellHelper.as?rev=1418200&r1=1418199&r2=1418200&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/nativeProcess/NativeShellHelper.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/nativeProcess/NativeShellHelper.as Fri Dec 7 06:56:24 2012
@@ -55,8 +55,9 @@ package org.apache.flex.utilities.develo
//Avoid the garbage collection
_gcLocker.lock(this);
- if (!shell)
+ if (!shell) {
shell = getShellPath();
+ }
LOG.debug("Executing: " + shell + " " + command.join(" "));
@@ -149,8 +150,9 @@ package org.apache.flex.utilities.develo
var file:File;
try {
file = new File("/bin/bash");
- if (file.exists)
+ if (file.exists) {
shellPath = file.nativePath;
+ }
} catch (err:Error) {
}
;
@@ -158,8 +160,9 @@ package org.apache.flex.utilities.develo
if (!shellPath) {
try {
file = new File("/bin/bsh");
- if (file.exists)
+ if (file.exists) {
shellPath = file.nativePath;
+ }
} catch (err:Error) {
}
;
@@ -168,8 +171,9 @@ package org.apache.flex.utilities.develo
if (!shellPath) {
try {
file = new File("/bin/csh");
- if (file.exists)
+ if (file.exists) {
shellPath = file.nativePath;
+ }
} catch (err:Error) {
}
;
Modified: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/test/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/nativeProcess/CommandLineProcessTest.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/test/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/nativeProcess/CommandLineProcessTest.as?rev=1418200&r1=1418199&r2=1418200&view=diff
==============================================================================
--- incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/test/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/nativeProcess/CommandLineProcessTest.as (original)
+++ incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/test/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/nativeProcess/CommandLineProcessTest.as Fri Dec 7 06:56:24 2012
@@ -1,9 +1,7 @@
package org.apache.flex.utilities.developerToolSuite.executor.infrastructure.nativeProcess {
- import flash.desktop.NativeProcess;
import flash.events.ProgressEvent;
import org.flexunit.Assert;
-
import org.flexunit.asserts.assertNotNull;
import org.flexunit.async.Async;
@@ -41,8 +39,6 @@ package org.apache.flex.utilities.develo
Assert.fail("Timeout reached before event");
}
-
-
[After]
public function tearDown():void {
command = null;
Modified: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.host-swf/pom.xml
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.host-swf/pom.xml?rev=1418200&r1=1418199&r2=1418200&view=diff
==============================================================================
--- incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.host-swf/pom.xml (original)
+++ incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.host-swf/pom.xml Fri Dec 7 06:56:24 2012
@@ -71,20 +71,20 @@ limitations under the License.
<build>
<plugins>
- <plugin>
- <groupId>net.flexmojos.oss</groupId>
- <artifactId>flexmojos-maven-plugin</artifactId>
- <version>${flexmojos.version}</version>
- <extensions>true</extensions>
- <configuration>
- <storepass/>
- <sourceFile>${project.build.sourceDirectory}/org/apache/flex/utilities/developerToolSuite/MainApplication.mxml</sourceFile>
- <localesCompiled>
- <locale>en_US</locale>
- <locale>fr_FR</locale>
- </localesCompiled>
- </configuration>
- </plugin>
+ <plugin>
+ <groupId>net.flexmojos.oss</groupId>
+ <artifactId>flexmojos-maven-plugin</artifactId>
+ <version>${flexmojos.version}</version>
+ <extensions>true</extensions>
+ <configuration>
+ <storepass/>
+ <sourceFile>${project.build.sourceDirectory}/org/apache/flex/utilities/developerToolSuite/MainApplication.mxml</sourceFile>
+ <localesCompiled>
+ <locale>en_US</locale>
+ <locale>fr_FR</locale>
+ </localesCompiled>
+ </configuration>
+ </plugin>
</plugins>
</build>
</project>
Modified: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.host-swf/src/main/flex/org/apache/flex/utilities/developerToolSuite/ApplicationContext.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/ApplicationContext.mxml?rev=1418200&r1=1418199&r2=1418200&view=diff
==============================================================================
--- incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.host-swf/src/main/flex/org/apache/flex/utilities/developerToolSuite/ApplicationContext.mxml (original)
+++ incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.host-swf/src/main/flex/org/apache/flex/utilities/developerToolSuite/ApplicationContext.mxml Fri Dec 7 06:56:24 2012
@@ -25,12 +25,5 @@ limitations under the License.
</fx:Declarations>
<fx:Script><![CDATA[
- import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.command.ChangeLanguageCommand;
- import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.command.GetSettingsCommand;
- import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.command.InitDBCommand;
- import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.command.SaveSettingsCommand;
- import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message.InitApplicationMessage;
- import org.apache.flex.utilities.developerToolSuite.infrastructure.command.MenuActionCommand;
- import org.apache.flex.utilities.developerToolSuite.presentation.graphic.menu.GeneralMenu;
]]></fx:Script>
</fx:Object>
Modified: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.locale/src/main/flex/org/apache/flex/utilities/developerToolSuite/LocaleUtil.as
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.locale/src/main/flex/org/apache/flex/utilities/developerToolSuite/LocaleUtil.as?rev=1418200&r1=1418199&r2=1418200&view=diff
==============================================================================
--- incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.locale/src/main/flex/org/apache/flex/utilities/developerToolSuite/LocaleUtil.as (original)
+++ incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.locale/src/main/flex/org/apache/flex/utilities/developerToolSuite/LocaleUtil.as Fri Dec 7 06:56:24 2012
@@ -32,8 +32,7 @@ package org.apache.flex.utilities.develo
{label: 'Français', data: 'fr_FR'}
];
-
- private static function init():void {
+ private static function init():void {
initLocaleMap();
initLanguageCodeMap();
}
@@ -50,12 +49,14 @@ package org.apache.flex.utilities.develo
_LANGUAGE_MAP['fr_FR'] = "Français";
}
- public static function getDefaultLanguage(locale:String=null):Object {
+ public static function getDefaultLanguage(locale:String = null):Object {
var language:String = locale ? _LANGUAGE_MAP[locale] : _LANGUAGE_MAP[_LOCALE_MAP[Capabilities.language]];
- for (var i:uint; i < AVAILABLE_LANGUAGES.length; i++)
- if (AVAILABLE_LANGUAGES[i].label == language)
+ for (var i:uint; i < AVAILABLE_LANGUAGES.length; i++) {
+ if (AVAILABLE_LANGUAGES[i].label == language) {
return AVAILABLE_LANGUAGES[i];
+ }
+ }
return AVAILABLE_LANGUAGES[0];
}
@@ -63,27 +64,31 @@ package org.apache.flex.utilities.develo
public static function getCurrentLanguage(locale:String):Object {
var language:String = _LANGUAGE_MAP[locale];
- for (var i:uint; i < AVAILABLE_LANGUAGES.length; i++)
- if (AVAILABLE_LANGUAGES[i].label == language)
+ for (var i:uint; i < AVAILABLE_LANGUAGES.length; i++) {
+ if (AVAILABLE_LANGUAGES[i].label == language) {
return AVAILABLE_LANGUAGES[i];
+ }
+ }
return AVAILABLE_LANGUAGES[0];
}
public static function getOrderedLocalChain(firstLocale:String = null):Array {
- if (StringUtil.trim(firstLocale) == "")
+ if (StringUtil.trim(firstLocale) == "") {
firstLocale = _LOCALE_MAP[Capabilities.language];
+ }
var localeChain:Array = ['en_US', 'fr_FR'];
var idx:int = localeChain.indexOf(firstLocale);
- if (idx < 1)
+ if (idx < 1) {
return localeChain;
+ }
localeChain.splice(idx, 1);
- localeChain.splice(0,0,firstLocale);
+ localeChain.splice(0, 0, firstLocale);
return localeChain;
}
Modified: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.standard-theme/src/main/flex/org/apache/flex/utilities/developerToolSuite/ApplicationSkin.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.standard-theme/src/main/flex/org/apache/flex/utilities/developerToolSuite/ApplicationSkin.mxml?rev=1418200&r1=1418199&r2=1418200&view=diff
==============================================================================
--- incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.standard-theme/src/main/flex/org/apache/flex/utilities/developerToolSuite/ApplicationSkin.mxml (original)
+++ incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.standard-theme/src/main/flex/org/apache/flex/utilities/developerToolSuite/ApplicationSkin.mxml Fri Dec 7 06:56:24 2012
@@ -44,8 +44,6 @@ limitations under the License.
<fx:Metadata>[HostComponent("spark.components.Application")]</fx:Metadata>
<fx:Script fb:purpose="styling">
- import mx.graphics.BitmapFillMode;
-
/* Define the skin elements that should not be colorized.
* For WindowedApplication, border and status bar background are colorized,
* but the content area and status text are not.