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/05 09:09:57 UTC
svn commit: r1417305 - in
/incubator/flex/whiteboard/fthomas/developerToolSuite/trunk:
org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/behavior/
org.apache.flex.utilitie...
Author: fthomas
Date: Wed Dec 5 08:09:54 2012
New Revision: 1417305
URL: http://svn.apache.org/viewvc?rev=1417305&view=rev
Log:
- Added Settings for java, ant and maven
Added:
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/behavior/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/settings/AntHomeSettingFormItem.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/JavaHomeSettingFormItem.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/MavenHomeSettingFormItem.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/SaveSettingCommand.as
- copied, changed from r1417163, incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/command/ChangeLanguageCommand.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/ValidateAntHomePathCommand.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/ValidateJavaHomePathCommand.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/ValidateMavenHomePathCommand.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
- copied, changed from r1417163, 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.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/message/ValidateAntHomePathMessage.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/ValidateJavaHomePathMessage.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/ValidateMavenHomePathMessage.as
Modified:
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/behavior/settingsPanel/GeneralSettingsPM.as
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/behavior/settingsPanel/IGeneralSettingsPM.as
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/config/SettingsContext.mxml
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/component/FrameSkin.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/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/settings/GeneralSettings.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/SettingsWindow.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/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/InitDBCommand.as
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.locale/src/main/resources/locale/en_US/SettingsWindow.properties
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.locale/src/main/resources/locale/fr_FR/SettingsWindow.properties
incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.standard-theme/src/main/resources/default.css
Added: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/behavior/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/ToolPathValidator.as?rev=1417305&view=auto
==============================================================================
--- incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/behavior/ToolPathValidator.as (added)
+++ incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/behavior/ToolPathValidator.as Wed Dec 5 08:09:54 2012
@@ -0,0 +1,47 @@
+/**
+ 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.
+ */
+package org.apache.flex.utilities.developerToolSuite.presentation.behavior {
+ import mx.validators.ValidationResult;
+ import mx.validators.Validator;
+
+ public class ToolPathValidator extends Validator{
+ public function ToolPathValidator() {
+ super();
+ }
+
+ // Class should override the doValidation() method.
+ //doValidation method should accept an Object type parameter
+ override protected function doValidation(value:Object):Array {
+ // create an array to return.
+ var ValidatorResults:Array = new Array();
+ // Call base class doValidation().
+ ValidatorResults = super.doValidation(value);
+ // Return if there are errors.
+ if (ValidatorResults.length > 0)
+ return ValidatorResults;
+
+ if (Boolean(value) == false) {
+ ValidatorResults.push(new ValidationResult(true, null, "Tool Home Path Error",
+ resourceManager.getString('SettingsWindow', 'TOOL_PATH_ERROR_STRING')));
+ return ValidatorResults;
+ }
+
+ return ValidatorResults;
+ }
+ }
+}
+
Modified: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/behavior/settingsPanel/GeneralSettingsPM.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/settingsPanel/GeneralSettingsPM.as?rev=1417305&r1=1417304&r2=1417305&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/settingsPanel/GeneralSettingsPM.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/settingsPanel/GeneralSettingsPM.as Wed Dec 5 08:09:54 2012
@@ -36,5 +36,17 @@ package org.apache.flex.utilities.develo
public function get currentLanguage():Object {
return LocaleUtil.getDefaultLanguage(settings.locale);
}
+
+ public function get javaHomePath():String {
+ return settings.JAVA_HOME;
+ }
+
+ public function get antHomePath():String {
+ return settings.ANT_HOME;
+ }
+
+ public function get mavenHomePath():String {
+ return settings.MAVEN_HOME;
+ }
}
}
Modified: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/behavior/settingsPanel/IGeneralSettingsPM.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/settingsPanel/IGeneralSettingsPM.as?rev=1417305&r1=1417304&r2=1417305&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/settingsPanel/IGeneralSettingsPM.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/settingsPanel/IGeneralSettingsPM.as Wed Dec 5 08:09:54 2012
@@ -23,5 +23,11 @@ package org.apache.flex.utilities.develo
function get availableLanguages():ArrayCollection;
function get currentLanguage():Object;
+
+ function get javaHomePath():String;
+
+ function get antHomePath():String;
+
+ function get mavenHomePath():String;
}
}
Modified: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/config/SettingsContext.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/config/SettingsContext.mxml?rev=1417305&r1=1417304&r2=1417305&view=diff
==============================================================================
--- incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/config/SettingsContext.mxml (original)
+++ incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/config/SettingsContext.mxml Wed Dec 5 08:09:54 2012
@@ -23,10 +23,18 @@ limitations under the License.
<settingspanel:GeneralSettingsPM/>
<parsley:MapCommand type="{ChangeLanguageCommand}"/>
<parsley:MapCommand type="{SaveSettingsCommand}"/>
+ <parsley:MapCommand type="{SaveSettingCommand}"/>
+ <parsley:MapCommand type="{ValidateJavaHomePathCommand}"/>
+ <parsley:MapCommand type="{ValidateAntHomePathCommand}"/>
+ <parsley:MapCommand type="{ValidateMavenHomePathCommand}"/>
</fx:Declarations>
<fx:Script><![CDATA[
import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.command.ChangeLanguageCommand;
+ import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.command.SaveSettingCommand;
import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.command.SaveSettingsCommand;
+ import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.command.ValidateAntHomePathCommand;
+ import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.command.ValidateJavaHomePathCommand;
+ import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.command.ValidateMavenHomePathCommand;
]]></fx:Script>
</fx:Object>
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=1417305&r1=1417304&r2=1417305&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 Wed Dec 5 08:09:54 2012
@@ -1,3 +1,19 @@
+/**
+ 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.
+ */
package org.apache.flex.utilities.developerToolSuite.presentation.graphic.component {
import flash.events.Event;
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/FrameSkin.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/component/FrameSkin.mxml?rev=1417305&r1=1417304&r2=1417305&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/FrameSkin.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/component/FrameSkin.mxml Wed Dec 5 08:09:54 2012
@@ -18,11 +18,11 @@
-->
<spark:BorderContainerSkin xmlns:fx="http://ns.adobe.com/mxml/2009"
- xmlns:s="library://ns.adobe.com/flex/spark"
- xmlns:spark="spark.skins.spark.*"
- implements="mx.core.IRectangularBorder"
- minWidth="120" minHeight="40"
- alpha.disabled="0.5">
+ xmlns:s="library://ns.adobe.com/flex/spark"
+ xmlns:spark="spark.skins.spark.*"
+ implements="mx.core.IRectangularBorder"
+ minWidth="120" minHeight="40"
+ alpha.disabled="0.5">
<fx:Metadata>
[HostComponent("org.apache.flex.utilities.developerToolSuite.presentation.graphic.component.Frame")]
@@ -38,8 +38,6 @@
import mx.core.EdgeMetrics;
import mx.core.IVisualElement;
- import org.apache.flex.utilities.developerToolSuite.presentation.graphic.component.Frame;
-
import spark.components.BorderContainer;
//--------------------------------------------------------------------------
@@ -101,10 +99,10 @@
* @private
*/
protected function labelChangeChangeHandler(event:Event):void {
- // Ensure empty label is not included in layout else
- // a gap between icon and label would be applied.
+ // Ensure empty label is not included in layout.
if (labelDisplay) {
- IVisualElement(labelDisplay).includeInLayout = labelDisplay.text != null && labelDisplay.text.length;
+ IVisualElement(labelBackground).includeInLayout = IVisualElement(labelDisplay).includeInLayout = labelDisplay.text != null
+ && labelDisplay.text.length && Frame(hostComponent).showLabel;
}
}
@@ -161,14 +159,14 @@
override protected function commitProperties():void {
super.commitProperties();
- labelBackground.visible = labelDisplay.visible = Frame(hostComponent).showLabel;
+ labelBackground.visible = labelDisplay.visible = labelDisplay.text != null && labelDisplay.text.length && Frame(hostComponent).showLabel;
}
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
super.updateDisplayList(unscaledWidth, unscaledHeight);
- if (labelDisplay && labelDisplay.visible) {
- labelDisplay.y = 0;
+ if (labelDisplay && labelDisplay.includeInLayout) {
+ labelDisplay.y = -4;
labelDisplay.x = (hostComponent.width - labelDisplay.width) / 2;
labelBackground.x = labelDisplay.x - 2;
@@ -190,7 +188,7 @@
<!-- border -->
<!--- @private -->
- <s:Rect left="4" right="4" top="4" bottom="4" radiusX="0" id="border">
+ <s:Rect left="0" right="0" top="0" bottom="0" radiusX="0" id="border">
<s:stroke>
<!--- @private -->
<s:SolidColorStroke id="borderStroke"/>
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=1417305&r1=1417304&r2=1417305&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 Wed Dec 5 08:09:54 2012
@@ -1,4 +1,20 @@
-<?xml version="1.0"?>
+<?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.
+-->
<mx:FlexNativeMenu xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
Added: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/graphic/settings/AntHomeSettingFormItem.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/AntHomeSettingFormItem.mxml?rev=1417305&view=auto
==============================================================================
--- incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/graphic/settings/AntHomeSettingFormItem.mxml (added)
+++ incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/graphic/settings/AntHomeSettingFormItem.mxml Wed Dec 5 08:09:54 2012
@@ -0,0 +1,119 @@
+<?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.
+-->
+<s:FormItem 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:behavior="org.apache.flex.utilities.developerToolSuite.presentation.behavior.*"
+ label="ANT_HOME"
+ required="true"
+ styleName="stackedFormItem">
+
+
+ <fx:Declarations>
+ <parsley:Configure/>
+
+
+ <behavior:ToolPathValidator id="validator" required="true" source="{this}" property="antHomePathValidated"
+ trigger="{toolHomeLocation}"
+ listener="{toolHomeLocation}"/>
+ </fx:Declarations>
+
+ <s:HGroup gap="0">
+ <s:TextInput id="toolHomeLocation" width="240" change="toolHomeLocation_changeHandler(event)"/>
+ <mx:Button id="browseButton" label="..." width="28"
+ toolTip="{resourceManager.getString('SettingsWindow', 'BROWSE_ANT_HOME')}"
+ click="browseButton_clickHandler(event)"/>
+ </s:HGroup>
+ <s:helpContent>
+ <s:VGroup>
+ <s:Label text="{resourceManager.getString('SettingsWindow', 'INDICATE_ANT_HOME')}"/>
+ <mx:LinkButton label="(Ant Home Page)"
+ click="navigateToURL(new URLRequest('http://ant.apache.org/'));"/>
+ </s:VGroup>
+ </s:helpContent>
+ <fx:Script><![CDATA[
+ import mx.rpc.Responder;
+
+ import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message.SaveSettingMessage;
+ import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message.ValidateAntHomePathMessage;
+ import org.apache.flex.utilities.developerToolSuite.presentation.behavior.settingsPanel.IGeneralSettingsPM;
+
+ import spark.events.TextOperationEvent;
+
+ private var _file:File;
+
+ private var _antHomePathValidated:Boolean;
+
+ private var _responder:mx.rpc.Responder;
+
+ [MessageDispatcher]
+ public var dispatch:Function;
+
+ [Inject]
+ public var model:IGeneralSettingsPM;
+
+ [Init]
+ public function init():void {
+ _responder = new mx.rpc.Responder(antHomePathResult, antHomePathValidatedError)
+ toolHomeLocation.text = model.antHomePath;
+ dispatch(new ValidateAntHomePathMessage(toolHomeLocation.text, _responder));
+ }
+
+ private function browseButton_clickHandler(event:MouseEvent):void {
+ try {
+ _file = new File(toolHomeLocation.text.replace("\\", "/"));
+ } catch (err:Error) {
+ _file = new File();
+ }
+
+ _file.addEventListener(Event.SELECT, file_select);
+ _file.browseForDirectory(resourceManager.getString('SettingsWindow', 'PLEASE_INDICATE_ANT_HOME'));
+ }
+
+ private function file_select(evt:Event):void {
+ toolHomeLocation.text = _file.nativePath;
+ dispatch(new ValidateAntHomePathMessage(toolHomeLocation.text, _responder));
+ }
+
+ private function toolHomeLocation_changeHandler(event:TextOperationEvent):void {
+ dispatch(new ValidateAntHomePathMessage(toolHomeLocation.text, _responder));
+ }
+
+ private function antHomePathResult(result:Boolean):void {
+ antHomePathValidated = true;
+
+ if (antHomePathValidated) {
+ dispatch(new SaveSettingMessage("ANT_HOME", toolHomeLocation.text));
+ }
+ }
+
+ private function antHomePathValidatedError(result:Boolean):void {
+ antHomePathValidated = false;
+ }
+
+ public function get antHomePathValidated():Boolean {
+ return _antHomePathValidated;
+ }
+
+ public function set antHomePathValidated(value:Boolean):void {
+ _antHomePathValidated = value;
+ validator.validate();
+ }
+ ]]></fx:Script>
+</s:FormItem>
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=1417305&r1=1417304&r2=1417305&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 Wed Dec 5 08:09:54 2012
@@ -20,7 +20,9 @@ limitations under the License.
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:parsley="http://www.spicefactory.org/parsley"
xmlns:component="org.apache.flex.utilities.developerToolSuite.presentation.graphic.component.*"
- width="100%" height="100%">
+ xmlns:settings="org.apache.flex.utilities.developerToolSuite.presentation.graphic.settings.*"
+ width="100%" height="100%"
+ paddingTop="30" paddingLeft="30" paddingRight="30">
<fx:Declarations>
@@ -29,16 +31,36 @@ limitations under the License.
<mx:GridRow width="100%" horizontalAlign="center">
<mx:GridItem>
- <component:Frame label="{resourceManager.getString('SettingsWindow', 'LANGUAGE')}" skinClass="{FrameSkin}" width="240" height="80">
+ <component:Frame label="{resourceManager.getString('SettingsWindow', 'LANGUAGE')}" skinClass="{FrameSkin}">
<component:layout>
- <s:HorizontalLayout horizontalAlign="center" verticalAlign="middle" paddingLeft="8" paddingRight="8" paddingTop="8" paddingBottom="8" gap="16"/>
+ <s:HorizontalLayout horizontalAlign="center"
+ verticalAlign="middle" paddingLeft="30" paddingRight="30" paddingTop="30" paddingBottom="30"
+ gap="16"/>
</component:layout>
<s:DropDownList id="languageComboBox"
change="localeComboBox_changeHandler(event)" width="180"/>
</component:Frame>
</mx:GridItem>
+ <mx:GridItem>
+ <component:Frame label="{resourceManager.getString('SettingsWindow', 'TOOLS_PATH_LOCATION')}" skinClass="{FrameSkin}">
+ <component:layout>
+ <s:VerticalLayout horizontalAlign="center" paddingRight="35"/>
+ </component:layout>
+ <s:Form styleName="stackedForm">
+ <s:layout>
+ <s:FormLayout gap="-14"/>
+ </s:layout>
+ <settings:JavaHomeSettingFormItem/>
+ <settings:AntHomeSettingFormItem/>
+ <settings:MavenHomeSettingFormItem/>
+ </s:Form>
+ </component:Frame>
+ </mx:GridItem>
</mx:GridRow>
+ <mx:GridRow/>
+ <mx:GridRow/>
+
<fx:Script><![CDATA[
import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message.ChangeLanguageMessage;
import org.apache.flex.utilities.developerToolSuite.presentation.behavior.settingsPanel.IGeneralSettingsPM;
Added: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/graphic/settings/JavaHomeSettingFormItem.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/JavaHomeSettingFormItem.mxml?rev=1417305&view=auto
==============================================================================
--- incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/graphic/settings/JavaHomeSettingFormItem.mxml (added)
+++ incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/graphic/settings/JavaHomeSettingFormItem.mxml Wed Dec 5 08:09:54 2012
@@ -0,0 +1,119 @@
+<?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.
+-->
+<s:FormItem 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:behavior="org.apache.flex.utilities.developerToolSuite.presentation.behavior.*"
+ label="JAVA_HOME"
+ required="true"
+ styleName="stackedFormItem">
+
+
+ <fx:Declarations>
+ <parsley:Configure/>
+
+
+ <behavior:ToolPathValidator id="validator" required="true" source="{this}" property="javaHomePathValidated"
+ trigger="{toolHomeLocation}"
+ listener="{toolHomeLocation}"/>
+ </fx:Declarations>
+
+ <s:HGroup gap="0">
+ <s:TextInput id="toolHomeLocation" width="240" change="toolHomeLocation_changeHandler(event)"/>
+ <mx:Button id="browseButton" label="..." width="28"
+ toolTip="{resourceManager.getString('SettingsWindow', 'BROWSE_JAVA_HOME')}"
+ click="browseButton_clickHandler(event)"/>
+ </s:HGroup>
+ <s:helpContent>
+ <s:VGroup>
+ <s:Label text="{resourceManager.getString('SettingsWindow', 'INDICATE_JAVA_HOME')}"/>
+ <mx:LinkButton label="(JDK 1.6 Home Page)"
+ click="navigateToURL(new URLRequest('http://www.oracle.com/technetwork/java/javaee/downloads/java-ee-sdk-6u3-jdk-6u29-downloads-523388.html'));"/>
+ </s:VGroup>
+ </s:helpContent>
+ <fx:Script><![CDATA[
+ import mx.rpc.Responder;
+
+ import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message.SaveSettingMessage;
+ import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message.ValidateJavaHomePathMessage;
+ import org.apache.flex.utilities.developerToolSuite.presentation.behavior.settingsPanel.IGeneralSettingsPM;
+
+ import spark.events.TextOperationEvent;
+
+ private var _file:File;
+
+ private var _javaHomePathValidated:Boolean;
+
+ private var _responder:mx.rpc.Responder;
+
+ [MessageDispatcher]
+ public var dispatch:Function;
+
+ [Inject]
+ public var model:IGeneralSettingsPM;
+
+ [Init]
+ public function init():void {
+ _responder = new mx.rpc.Responder(javaHomePathResult, javaHomePathValidatedError)
+ toolHomeLocation.text = model.javaHomePath;
+ dispatch(new ValidateJavaHomePathMessage(toolHomeLocation.text, _responder));
+ }
+
+ private function browseButton_clickHandler(event:MouseEvent):void {
+ try {
+ _file = new File(toolHomeLocation.text.replace("\\", "/"));
+ } catch (err:Error) {
+ _file = new File();
+ }
+
+ _file.addEventListener(Event.SELECT, file_select);
+ _file.browseForDirectory(resourceManager.getString('SettingsWindow', 'PLEASE_INDICATE_JAVA_HOME'));
+ }
+
+ private function file_select(evt:Event):void {
+ toolHomeLocation.text = _file.nativePath;
+ dispatch(new ValidateJavaHomePathMessage(toolHomeLocation.text, _responder));
+ }
+
+ private function toolHomeLocation_changeHandler(event:TextOperationEvent):void {
+ dispatch(new ValidateJavaHomePathMessage(toolHomeLocation.text, _responder));
+ }
+
+ private function javaHomePathResult(result:Boolean):void {
+ javaHomePathValidated = true;
+
+ if (javaHomePathValidated) {
+ dispatch(new SaveSettingMessage("JAVA_HOME", toolHomeLocation.text));
+ }
+ }
+
+ private function javaHomePathValidatedError(result:Boolean):void {
+ javaHomePathValidated = false;
+ }
+
+ public function get javaHomePathValidated():Boolean {
+ return _javaHomePathValidated;
+ }
+
+ public function set javaHomePathValidated(value:Boolean):void {
+ _javaHomePathValidated = value;
+ validator.validate();
+ }
+ ]]></fx:Script>
+</s:FormItem>
Added: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/graphic/settings/MavenHomeSettingFormItem.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/MavenHomeSettingFormItem.mxml?rev=1417305&view=auto
==============================================================================
--- incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/graphic/settings/MavenHomeSettingFormItem.mxml (added)
+++ incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.component-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/presentation/graphic/settings/MavenHomeSettingFormItem.mxml Wed Dec 5 08:09:54 2012
@@ -0,0 +1,119 @@
+<?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.
+-->
+<s:FormItem 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:behavior="org.apache.flex.utilities.developerToolSuite.presentation.behavior.*"
+ label="MAVEN_HOME"
+ required="true"
+ styleName="stackedFormItem">
+
+
+ <fx:Declarations>
+ <parsley:Configure/>
+
+
+ <behavior:ToolPathValidator id="validator" required="true" source="{this}" property="mavenHomePathValidated"
+ trigger="{toolHomeLocation}"
+ listener="{toolHomeLocation}"/>
+ </fx:Declarations>
+
+ <s:HGroup gap="0">
+ <s:TextInput id="toolHomeLocation" width="240" change="toolHomeLocation_changeHandler(event)"/>
+ <mx:Button id="browseButton" label="..." width="28"
+ toolTip="{resourceManager.getString('SettingsWindow', 'BROWSE_MAVEN_HOME')}"
+ click="browseButton_clickHandler(event)"/>
+ </s:HGroup>
+ <s:helpContent>
+ <s:VGroup>
+ <s:Label text="{resourceManager.getString('SettingsWindow', 'INDICATE_MAVEN_HOME')}"/>
+ <mx:LinkButton label="(Maven 3.x Home Page)"
+ click="navigateToURL(new URLRequest('http://maventest.apache.org/download.html'));"/>
+ </s:VGroup>
+ </s:helpContent>
+ <fx:Script><![CDATA[
+ import mx.rpc.Responder;
+
+ import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message.SaveSettingMessage;
+ import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message.ValidateMavenHomePathMessage;
+ import org.apache.flex.utilities.developerToolSuite.presentation.behavior.settingsPanel.IGeneralSettingsPM;
+
+ import spark.events.TextOperationEvent;
+
+ private var _file:File;
+
+ private var _mavenHomePathValidated:Boolean;
+
+ private var _responder:mx.rpc.Responder;
+
+ [MessageDispatcher]
+ public var dispatch:Function;
+
+ [Inject]
+ public var model:IGeneralSettingsPM;
+
+ [Init]
+ public function init():void {
+ _responder = new mx.rpc.Responder(mavenHomePathResult, mavenHomePathValidatedError)
+ toolHomeLocation.text = model.mavenHomePath;
+ dispatch(new ValidateMavenHomePathMessage(toolHomeLocation.text, _responder));
+ }
+
+ private function browseButton_clickHandler(event:MouseEvent):void {
+ try {
+ _file = new File(toolHomeLocation.text.replace("\\", "/"));
+ } catch (err:Error) {
+ _file = new File();
+ }
+
+ _file.addEventListener(Event.SELECT, file_select);
+ _file.browseForDirectory(resourceManager.getString('SettingsWindow', 'PLEASE_INDICATE_MAVEN_HOME'));
+ }
+
+ private function file_select(evt:Event):void {
+ toolHomeLocation.text = _file.nativePath;
+ dispatch(new ValidateMavenHomePathMessage(toolHomeLocation.text, _responder));
+ }
+
+ private function toolHomeLocation_changeHandler(event:TextOperationEvent):void {
+ dispatch(new ValidateMavenHomePathMessage(toolHomeLocation.text, _responder));
+ }
+
+ private function mavenHomePathResult(result:Boolean):void {
+ mavenHomePathValidated = true;
+
+ if (mavenHomePathValidated) {
+ dispatch(new SaveSettingMessage("MAVEN_HOME", toolHomeLocation.text));
+ }
+ }
+
+ private function mavenHomePathValidatedError(result:Boolean):void {
+ mavenHomePathValidated = false;
+ }
+
+ public function get mavenHomePathValidated():Boolean {
+ return _mavenHomePathValidated;
+ }
+
+ public function set mavenHomePathValidated(value:Boolean):void {
+ _mavenHomePathValidated = value;
+ validator.validate();
+ }
+ ]]></fx:Script>
+</s:FormItem>
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=1417305&r1=1417304&r2=1417305&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 Wed Dec 5 08:09:54 2012
@@ -21,7 +21,7 @@ limitations under the License.
xmlns:parsley="http://www.spicefactory.org/parsley"
xmlns:settings="org.apache.flex.utilities.developerToolSuite.presentation.graphic.settings.*"
title="{resourceManager.getString('Application', 'SETTINGS')}"
- width="800" height="480"
+ width="100%" height="480"
addedToStage="addedToStageHandler(event)"
removedFromStage="removedFromStageHandler(event)"
close="PopUpManager.removePopUp(this)">
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=1417305&r1=1417304&r2=1417305&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 Wed Dec 5 08:09:54 2012
@@ -19,5 +19,8 @@ package org.apache.flex.utilities.develo
[Bindable]
public class SettingModel {
public var locale:String;
+ public var JAVA_HOME:String;
+ public var ANT_HOME:String;
+ public var MAVEN_HOME: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/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=1417305&r1=1417304&r2=1417305&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 Wed Dec 5 08:09:54 2012
@@ -48,7 +48,7 @@ package org.apache.flex.utilities.develo
log.debug("Executing Command")
if (!db.DBReady)
db.connect();
- else
+
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/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=1417305&r1=1417304&r2=1417305&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 Wed Dec 5 08:09:54 2012
@@ -35,8 +35,8 @@ package org.apache.flex.utilities.develo
private static var _conn:SQLConnection;
- private var createSettingsTableSql:String = "create table if not exists settings(id integer primary key autoincrement, name text, value text);";
- private var insertSettingsTableSql:String = "INSERT INTO settings (name, value) VALUES ('locale', '" + LocaleUtil.getDefaultLanguage().data + "');";
+ private static const SETTINGS_TABLE_SQL:String = "create table if not exists settings(id integer primary key autoincrement, name text, value text);";
+ private static var settingsDataSql:String;
public function execute():void {
_conn = new SQLConnection();
@@ -94,18 +94,26 @@ package org.apache.flex.utilities.develo
var stmtCreateSettingsTable:SQLStatement;
stmtCreateSettingsTable = new SQLStatement();
stmtCreateSettingsTable.sqlConnection = _conn;
- stmtCreateSettingsTable.text = createSettingsTableSql;
+ stmtCreateSettingsTable.text = SETTINGS_TABLE_SQL;
stmtCreateSettingsTable.execute();
}
function insertSettingsTable():void {
LOG.debug("Inserting data");
+ prepareData();
var stmtInsertSettingsTable:SQLStatement;
stmtInsertSettingsTable = new SQLStatement();
stmtInsertSettingsTable.sqlConnection = _conn;
- stmtInsertSettingsTable.text = insertSettingsTableSql;
+ stmtInsertSettingsTable.text = settingsDataSql;
stmtInsertSettingsTable.execute();
}
+
+ function prepareData():void {
+ settingsDataSql = "INSERT INTO 'settings' SELECT '1' AS 'id', 'locale' AS 'name', '" + LocaleUtil.getDefaultLanguage().data + "' AS 'value' ";
+ settingsDataSql += "UNION SELECT '2', 'JAVA_HOME', '' ";
+ settingsDataSql += "UNION SELECT '3', 'ANT_HOME', '' ";
+ settingsDataSql += "UNION SELECT '4', 'MAVEN_HOME', '';";
+ }
}
}
}
Copied: 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 (from r1417163, incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/command/ChangeLanguageCommand.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?p2=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&p1=incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/command/ChangeLanguageCommand.as&r1=1417163&r2=1417305&rev=1417305&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/ChangeLanguageCommand.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 Wed Dec 5 08:09:54 2012
@@ -20,23 +20,23 @@ package org.apache.flex.utilities.develo
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 ChangeLanguageCommand extends AbstractDBCommand {
+ public class SaveSettingCommand extends AbstractDBCommand {
- private var _msg:ChangeLanguageMessage;
+ private var _msg:SaveSettingMessage;
[Inject]
public var settings:SettingModel;
- public function execute(msg:ChangeLanguageMessage):void {
+ public function execute(msg:SaveSettingMessage):void {
this._msg = msg;
executeAsync();
}
override protected function prepareSql():void {
- ResourceManager.getInstance().localeChain = LocaleUtil.getOrderedLocalChain(_msg.locale);
- settings.locale = _msg.locale;
- sql = "UPDATE settings SET value='" + _msg.locale + "' WHERE name='locale';";
+ settings[_msg.name] = _msg.value;
+ sql = "UPDATE settings SET value='" + _msg.value + "' WHERE name='" + _msg.name +"';";
super.prepareSql();
}
Added: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/command/ValidateAntHomePathCommand.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/ValidateAntHomePathCommand.as?rev=1417305&view=auto
==============================================================================
--- incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/command/ValidateAntHomePathCommand.as (added)
+++ incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/command/ValidateAntHomePathCommand.as Wed Dec 5 08:09:54 2012
@@ -0,0 +1,38 @@
+/**
+ 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.
+ */
+package org.apache.flex.utilities.developerToolSuite.executor.infrastructure.command {
+ import flash.filesystem.File;
+
+ import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message.ValidateAntHomePathMessage;
+
+ public class ValidateAntHomePathCommand {
+
+ public function ValidateAntHomePathCommand(msg:ValidateAntHomePathMessage) {
+ try {
+ var file:File = new File(msg.path.replace("\\", "/"));
+ if (!file.resolvePath("lib/ant.jar").exists) {
+ msg.responder.fault(false);
+ return
+ }
+ } catch (err:Error) {
+ msg.responder.fault(false);
+ return
+ }
+ msg.responder.result(true);
+ }
+ }
+}
Added: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/command/ValidateJavaHomePathCommand.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/ValidateJavaHomePathCommand.as?rev=1417305&view=auto
==============================================================================
--- incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/command/ValidateJavaHomePathCommand.as (added)
+++ incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/command/ValidateJavaHomePathCommand.as Wed Dec 5 08:09:54 2012
@@ -0,0 +1,38 @@
+/**
+ 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.
+ */
+package org.apache.flex.utilities.developerToolSuite.executor.infrastructure.command {
+ import flash.filesystem.File;
+
+ import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message.ValidateJavaHomePathMessage;
+
+ public class ValidateJavaHomePathCommand {
+
+ public function ValidateJavaHomePathCommand(msg:ValidateJavaHomePathMessage) {
+ try {
+ var file:File = new File(msg.path.replace("\\", "/"));
+ if (!file.resolvePath("lib/tools.jar").exists) {
+ msg.responder.fault(false);
+ return
+ }
+ } catch (err:Error) {
+ msg.responder.fault(false);
+ return
+ }
+ msg.responder.result(true);
+ }
+ }
+}
Added: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/command/ValidateMavenHomePathCommand.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/ValidateMavenHomePathCommand.as?rev=1417305&view=auto
==============================================================================
--- incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/command/ValidateMavenHomePathCommand.as (added)
+++ incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/command/ValidateMavenHomePathCommand.as Wed Dec 5 08:09:54 2012
@@ -0,0 +1,38 @@
+/**
+ 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.
+ */
+package org.apache.flex.utilities.developerToolSuite.executor.infrastructure.command {
+ import flash.filesystem.File;
+
+ import org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message.ValidateMavenHomePathMessage;
+
+ public class ValidateMavenHomePathCommand {
+
+ public function ValidateMavenHomePathCommand(msg:ValidateMavenHomePathMessage) {
+ try {
+ var file:File = new File(msg.path.replace("\\", "/"));
+ if (!file.resolvePath("bin/mvn.bat").exists) {
+ msg.responder.fault(false);
+ return
+ }
+ } catch (err:Error) {
+ msg.responder.fault(false);
+ return
+ }
+ msg.responder.result(true);
+ }
+ }
+}
Copied: 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 (from r1417163, 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/SaveSettingMessage.as?p2=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&p1=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&r1=1417163&r2=1417305&rev=1417305&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/SaveSettingMessage.as Wed Dec 5 08:09:54 2012
@@ -17,16 +17,22 @@
package org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message {
import org.apache.flex.utilities.developerToolSuite.executor.domain.SettingModel;
- public class SaveSettingsMessage {
+ public class SaveSettingMessage {
- private var _settings:SettingModel;
+ private var _name:String;
+ private var _value:String;
- public function SaveSettingsMessage(settings:SettingModel) {
- this._settings = settings;
+ public function SaveSettingMessage(name:String, value:String) {
+ _name = name;
+ _value = value;
}
- public function get settings():SettingModel {
- return _settings;
+ public function get name():String {
+ return _name;
+ }
+
+ public function get value():String {
+ return _value;
}
}
}
Added: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/message/ValidateAntHomePathMessage.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/ValidateAntHomePathMessage.as?rev=1417305&view=auto
==============================================================================
--- incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/message/ValidateAntHomePathMessage.as (added)
+++ incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/message/ValidateAntHomePathMessage.as Wed Dec 5 08:09:54 2012
@@ -0,0 +1,38 @@
+/**
+ 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.
+ */
+package org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message {
+ import mx.rpc.Responder;
+
+ public class ValidateAntHomePathMessage {
+
+ private var _path:String;
+ private var _responder:Responder;
+
+ public function ValidateAntHomePathMessage(path:String, responder:Responder) {
+ _path = path;
+ _responder = responder;
+ }
+
+ public function get path():String {
+ return _path;
+ }
+
+ public function get responder():Responder {
+ return _responder;
+ }
+ }
+}
Added: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/message/ValidateJavaHomePathMessage.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/ValidateJavaHomePathMessage.as?rev=1417305&view=auto
==============================================================================
--- incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/message/ValidateJavaHomePathMessage.as (added)
+++ incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/message/ValidateJavaHomePathMessage.as Wed Dec 5 08:09:54 2012
@@ -0,0 +1,38 @@
+/**
+ 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.
+ */
+package org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message {
+ import mx.rpc.Responder;
+
+ public class ValidateJavaHomePathMessage {
+
+ private var _path:String;
+ private var _responder:Responder;
+
+ public function ValidateJavaHomePathMessage(path:String, responder:Responder) {
+ _path = path;
+ _responder = responder;
+ }
+
+ public function get path():String {
+ return _path;
+ }
+
+ public function get responder():Responder {
+ return _responder;
+ }
+ }
+}
Added: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/message/ValidateMavenHomePathMessage.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/ValidateMavenHomePathMessage.as?rev=1417305&view=auto
==============================================================================
--- incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/message/ValidateMavenHomePathMessage.as (added)
+++ incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.executor-lib/src/main/flex/org/apache/flex/utilities/developerToolSuite/executor/infrastructure/message/ValidateMavenHomePathMessage.as Wed Dec 5 08:09:54 2012
@@ -0,0 +1,38 @@
+/**
+ 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.
+ */
+package org.apache.flex.utilities.developerToolSuite.executor.infrastructure.message {
+ import mx.rpc.Responder;
+
+ public class ValidateMavenHomePathMessage {
+
+ private var _path:String;
+ private var _responder:Responder;
+
+ public function ValidateMavenHomePathMessage(path:String, responder:Responder) {
+ _path = path;
+ _responder = responder;
+ }
+
+ public function get path():String {
+ return _path;
+ }
+
+ public function get responder():Responder {
+ return _responder;
+ }
+ }
+}
Modified: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.locale/src/main/resources/locale/en_US/SettingsWindow.properties
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.locale/src/main/resources/locale/en_US/SettingsWindow.properties?rev=1417305&r1=1417304&r2=1417305&view=diff
==============================================================================
--- incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.locale/src/main/resources/locale/en_US/SettingsWindow.properties (original)
+++ incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.locale/src/main/resources/locale/en_US/SettingsWindow.properties Wed Dec 5 08:09:54 2012
@@ -1,3 +1,14 @@
GENERAL=General
LANGUAGE=Language
CLOSE=Close
+TOOLS_PATH_LOCATION=Tools path location
+TOOL_PATH_ERROR_STRING=You must enter a valid home path for this tool
+BROWSE_JAVA_HOME=Browse to the JDK 1.6 installation Directory
+INDICATE_JAVA_HOME=Indicate the JDK 1.6 home directory.
+PLEASE_INDICATE_JAVA_HOME=Please, indicate the JDK 1.6 home directory...
+BROWSE_ANT_HOME=Browse to ANT installation Directory
+INDICATE_ANT_HOME=Indicate the ANT home directory.
+PLEASE_INDICATE_ANT_HOME=Please, indicate the ANT home directory...
+BROWSE_MAVEN_HOME=Browse to the Maven 3.x installation Directory
+INDICATE_MAVEN_HOME=Indicate the Maven 3.x home directory.
+PLEASE_INDICATE_MAVEN_HOME=Please, indicate the Maven 3.x home directory...
Modified: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.locale/src/main/resources/locale/fr_FR/SettingsWindow.properties
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.locale/src/main/resources/locale/fr_FR/SettingsWindow.properties?rev=1417305&r1=1417304&r2=1417305&view=diff
==============================================================================
--- incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.locale/src/main/resources/locale/fr_FR/SettingsWindow.properties (original)
+++ incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.locale/src/main/resources/locale/fr_FR/SettingsWindow.properties Wed Dec 5 08:09:54 2012
@@ -1,3 +1,14 @@
GENERAL=Général
LANGUAGE=Langue
CLOSE=Fermer
+TOOLS_PATH_LOCATION=Emplacement des outils
+TOOL_PATH_ERROR_STRING=Vous devez entrer un dossier racine valide pour cet outil
+BROWSE_JAVA_HOME=Naviguez jusqu'au dossier d'installation du JDK 1.6
+INDICATE_JAVA_HOME=Indiquez le dossier racine du JDK 1.6.
+PLEASE_INDICATE_JAVA_HOME=Merci d'indiquer le dossier racine du JDK 1.6...
+BROWSE_ANT_HOME=Naviguez jusqu'au dossier d'installation de ANT
+INDICATE_ANT_HOME=Indiquez le dossier racine de ANT.
+PLEASE_INDICATE_ANT_HOME=Merci d'indiquer le dossier racine de ANT...
+BROWSE_MAVEN_HOME=Naviguez jusqu'au dossier d'installation de Maven 3.x
+INDICATE_MAVEN_HOME=Indiquez le dossier racine de Maven 3.x.
+PLEASE_INDICATE_MAVEN_HOME=Merci d'indiquer le dossier racine de Maven 3.x ...
Modified: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.standard-theme/src/main/resources/default.css
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.standard-theme/src/main/resources/default.css?rev=1417305&r1=1417304&r2=1417305&view=diff
==============================================================================
--- incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.standard-theme/src/main/resources/default.css (original)
+++ incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.standard-theme/src/main/resources/default.css Wed Dec 5 08:09:54 2012
@@ -23,6 +23,10 @@ asf|MainApplication {
skinClass: ClassReference("org.apache.flex.utilities.developerToolSuite.ApplicationSkin");
}
-s|TitleWindow {
- contentBackgroundColor: #DDDDDD;
+.stackedForm {
+ skinClass: ClassReference("spark.skins.spark.StackedFormSkin");
+}
+
+.stackedFormItem {
+ skinClass: ClassReference("spark.skins.spark.StackedFormItemSkin");
}