http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/src/examples/ActionScriptProperties.mxml ---------------------------------------------------------------------- diff --git a/Radii8Designer/src/examples/ActionScriptProperties.mxml b/Radii8Designer/src/examples/ActionScriptProperties.mxml new file mode 100644 index 0000000..d7d0ece --- /dev/null +++ b/Radii8Designer/src/examples/ActionScriptProperties.mxml @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- + +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. + +--> +<actionScriptProperties analytics="false" mainApplicationPath="Designs.mxml" projectUUID="daf87c26-7d5c-45bf-9bca-28f164a70281" version="10"> + <compiler additionalCompilerArguments="-locale en_US" + autoRSLOrdering="true" + copyDependentFiles="true" + fteInMXComponents="false" + generateAccessible="true" + htmlExpressInstall="true" + htmlGenerate="true" + htmlHistoryManagement="true" + htmlPlayerVersionCheck="true" + includeNetmonSwc="false" + outputFolderPath="bin-debug" + removeUnusedRSL="true" + sourceFolderPath="src" + strict="true" + targetPlayerVersion="0.0.0" + useApolloConfig="false" + useDebugRSLSwfs="true" + verifyDigests="true" + warn="true"> + + <compilerSourcePath/> + + <libraryPath defaultLinkType="0"> + <libraryPathEntry kind="4" path=""> + <excludedEntries> + <libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/flex.swc" useDefaultLinkType="false"/> + <libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/core.swc" useDefaultLinkType="false"/> + </excludedEntries> + </libraryPathEntry> + <libraryPathEntry kind="1" linkType="1" path="libs"/> + </libraryPath> + <sourceAttachmentPath/> + </compiler> + + <applications> + <application path="Designs.mxml"/> + </applications> + <modules/> + <buildCSSFiles/> + <flashCatalyst validateFlashCatalystCompatibility="false"/> +</actionScriptProperties>
http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/src/examples/designlayer/Nesting.mxml ---------------------------------------------------------------------- diff --git a/Radii8Designer/src/examples/designlayer/Nesting.mxml b/Radii8Designer/src/examples/designlayer/Nesting.mxml new file mode 100644 index 0000000..41cbf96 --- /dev/null +++ b/Radii8Designer/src/examples/designlayer/Nesting.mxml @@ -0,0 +1,82 @@ +<?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:Application xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:s="library://ns.adobe.com/flex/spark" + xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768"> + <!-- + http://bugs.adobe.com/jira/browse/SDK-23254 + http://bugs.adobe.com/jira/browse/TH-7485 + + Workaround: + Assign the designLayer property on the Rect after building the layer hierarchy + + Specifically in Nesting.mxml: + + Move line 45 "outerLayer.addLayer(innerLayer);" above line 39 "r.designLayer = innerLayer;" + + Fixed in revision 4.0.0.10286 . + --> + <fx:Script> + <![CDATA[ + import mx.core.DesignLayer; + import mx.core.FlexGlobals; + import mx.graphics.SolidColor; + + import spark.components.Button; + + private static var outerLayer:DesignLayer; + + import spark.primitives.Rect; + public function makeLayers():void + { + outerLayer = new DesignLayer(); + outerLayer.visible = false; + + var innerLayer:DesignLayer = new DesignLayer(); + + var r:Rect = new Rect(); + r.x = 100; + r.y = 10; + r.width = 200; + r.height = 50; + + var f:SolidColor = new SolidColor(); + f.color = 0xFF0000; + r.fill = f; + + var b:Button = new Button(); + b.x = 100; + b.y = 80; + b.label = "Hello"; + + r.designLayer = innerLayer; + b.designLayer = innerLayer; + + FlexGlobals.topLevelApplication.addElement(r); + FlexGlobals.topLevelApplication.addElement(b); + + outerLayer.addLayer(innerLayer); + } + ]]> + </fx:Script> + + <s:Button label="make" x="10" y="10" click="makeLayers()"/> + +</s:Application> http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/src/examples/designlayer/RemovingLayer.mxml ---------------------------------------------------------------------- diff --git a/Radii8Designer/src/examples/designlayer/RemovingLayer.mxml b/Radii8Designer/src/examples/designlayer/RemovingLayer.mxml new file mode 100644 index 0000000..ad3274b --- /dev/null +++ b/Radii8Designer/src/examples/designlayer/RemovingLayer.mxml @@ -0,0 +1,79 @@ +<?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:Application xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:s="library://ns.adobe.com/flex/spark" + xmlns:mx="library://ns.adobe.com/flex/halo" + minWidth="1024" minHeight="768"> + + <!-- + http://bugs.adobe.com/jira/browse/SDK-22986 + + 2. Click "1. removeLayer()" +3. Click "2. trace()" + + Actual Results: + +btn1.designLayer=designLayerChild (expected designLayerParent) + + Expected Results: + +btn1.designLayer=designLayerParent (expected designLayerParent) + + + + + This is not a bug actually. When you remove the inner layer, + all you are really doing is disassociating it with it's parent layer. + +e.g. The inner layer is detached from it's parent but is still affecting + it's layer children. The outer layer no longer is however. + +Working as intended. + --> + <s:layout> + <s:VerticalLayout/> + </s:layout> + + <fx:Script> + <![CDATA[ + protected function removeDesignLayerChild(event:MouseEvent):void { + trace('removing btn1.designLayer=' + btn1.designLayer.id); + designLayerParent.removeLayer(designLayerChild); + } + + protected function traceResults(event:MouseEvent):void { + trace('btn1.designLayer=' + btn1.designLayer.id); + } + + ]]> + </fx:Script> + + <fx:DesignLayer id="designLayerParent"> + <fx:DesignLayer id="designLayerChild" alpha="1" visible="false"> + <s:Button id="btn1" label="1. removeLayer()" + click="removeDesignLayerChild(event)"/> + <s:Button id="btn2" label="2. trace()" + click="traceResults(event)"/> + <s:TextInput /> + </fx:DesignLayer> + </fx:DesignLayer> + + +</s:Application> http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/src/examples/designlayer/ScriptBlock.mxml ---------------------------------------------------------------------- diff --git a/Radii8Designer/src/examples/designlayer/ScriptBlock.mxml b/Radii8Designer/src/examples/designlayer/ScriptBlock.mxml new file mode 100644 index 0000000..b424666 --- /dev/null +++ b/Radii8Designer/src/examples/designlayer/ScriptBlock.mxml @@ -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. + +--> +<s:Application + xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:s="library://ns.adobe.com/flex/spark"> + + <fx:Script> + <![CDATA[ + public function changeAlpha():void { + dl.alpha = 1; + } + ]]> + </fx:Script> + + <s:VGroup> + <fx:DesignLayer id="dl" alpha="0.5"> + <!--<s:Button label="change alpha" click="dl.alpha = 1" /> this works fine --> + <s:Button label="change alpha" click="changeAlpha()" /> + </fx:DesignLayer> + </s:VGroup> + +</s:Application> http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/src/examples/designlayer/Simplified.mxml ---------------------------------------------------------------------- diff --git a/Radii8Designer/src/examples/designlayer/Simplified.mxml b/Radii8Designer/src/examples/designlayer/Simplified.mxml new file mode 100644 index 0000000..2e06c91 --- /dev/null +++ b/Radii8Designer/src/examples/designlayer/Simplified.mxml @@ -0,0 +1,58 @@ +<?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:Application + xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:s="library://ns.adobe.com/flex/spark"> + + <fx:Script> + <![CDATA[ + import mx.core.DesignLayer; + + import spark.components.Button; + + private var outerLayer:DesignLayer; + private var innerLayer:DesignLayer; + + public function makeLayers():void + { + outerLayer = new DesignLayer(); + innerLayer = new DesignLayer(); + + outerLayer.visible = false; + innerLayer.visible = true; + + rect.designLayer = innerLayer; + + outerLayer.addLayer(innerLayer); + + addElement(rect); + } + ]]> + </fx:Script> + + <fx:Declarations> + <s:Rect id="rect" width="100" height="100" x="100"> + <s:fill><s:SolidColor color="0xFF0000" /></s:fill> + </s:Rect> + </fx:Declarations> + + <s:Button label="make" x="10" y="10" click="makeLayers();"/> + +</s:Application> http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/src/examples/project.mxml ---------------------------------------------------------------------- diff --git a/Radii8Designer/src/examples/project.mxml b/Radii8Designer/src/examples/project.mxml new file mode 100644 index 0000000..cb7af4a --- /dev/null +++ b/Radii8Designer/src/examples/project.mxml @@ -0,0 +1,36 @@ +<?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. + +--> +<projectDescription> + <name>Designs</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>com.adobe.flexbuilder.project.flexbuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>com.adobe.flexbuilder.project.flexnature</nature> + <nature>com.adobe.flexbuilder.project.actionscriptnature</nature> + </natures> +</projectDescription> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/src/examples/workbench_fc.mxml ---------------------------------------------------------------------- diff --git a/Radii8Designer/src/examples/workbench_fc.mxml b/Radii8Designer/src/examples/workbench_fc.mxml new file mode 100644 index 0000000..1390239 --- /dev/null +++ b/Radii8Designer/src/examples/workbench_fc.mxml @@ -0,0 +1,232 @@ +<?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. + +--> +<workbench progressCount="20" version="2.0"> + <workbenchAdvisor/> + <window height="978" width="1680" x="0" y="22"> + <fastViewData/> + <perspectiveBar/> + <coolbarLayout locked="0"> + <coolItem id="org.eclipse.ui.edit.text.actionSet.annotationNavigation" itemType="typeToolBarContribution" x="0" y="22"/> + <coolItem id="org.eclipse.ui.edit.text.actionSet.navigation" itemType="typeToolBarContribution" x="32" y="22"/> + <coolItem id="group.editor" itemType="typeGroupMarker"/> + <coolItem id="com.adobe.flexide.mxml.editor.Editor" itemType="typePlaceholder" x="-1" y="-1"/> + </coolbarLayout> + <page aggregateWorkingSetId="Aggregate for window 1316581681333" focus="true" label="Workspace - DesignWorkspace"> + <editors> + <editorArea activeWorkbook="DefaultEditorWorkbook"> + <info part="DefaultEditorWorkbook"> + <folder appearance="1" expanded="2"> + <presentation id="com.adobe.thermo.chrome.ThermoWorkbenchUI" thermo_isCollapsed="false"/> + </folder> + </info> + </editorArea> + </editors> + <views> + <view id="com.adobe.thermo.interactions.Interactions" partName="INTERACTIONS"> + <viewState/> + </view> + <view id="com.adobe.thermo.library.Library" partName="PROJECT LIBRARY"/> + <view id="com.adobe.thermo.artboard.ArtBoardPart" partName="ArtBoard"> + <viewState/> + </view> + <view id="com.adobe.thermo.componentlibrary.ComponentLibrary" partName="COMMON LIBRARY"> + <viewState/> + </view> + <view id="com.adobe.thermo.layers.Layers" partName="LAYERS"> + <viewState/> + </view> + <view id="com.adobe.thermo.tools.Tools" partName="TOOLS"> + <viewState/> + </view> + <view id="com.adobe.thermo.propertiespanel.Properties" partName="PROPERTIES"> + <viewState/> + </view> + <view id="com.adobe.thermo.timeline.Timeline" partName="TIMELINES"> + <viewState/> + </view> + <view id="com.adobe.thermo.views.WelcomePanel" partName="Welcome"> + <viewState/> + </view> + <view id="org.eclipse.ui.thermo.navigator.view" partName="PROJECT NAVIGATOR"> + <viewState CommonNavigator.LINKING_ENABLED="0" org.eclipse.ui.navigator.resources.workingSets.showTopLevelWorkingSets="0"/> + </view> + <view id="com.adobe.thermo.datacollections.DataCollections" partName="DESIGN-TIME DATA"> + <viewState/> + </view> + <view id="org.eclipse.ui.views.ProblemView" partName="Problems"> + <viewState PRIMARY_SORT_FIELD="org.eclipse.ui.ide.severityAndDescriptionField" categoryGroup="org.eclipse.ui.ide.severity" markerContentGenerator="org.eclipse.ui.ide.problemsGenerator" partName="Problems"> + <columnWidths org.eclipse.ui.ide.locationField="84" org.eclipse.ui.ide.markerType="114" org.eclipse.ui.ide.pathField="144" org.eclipse.ui.ide.resourceField="114" org.eclipse.ui.ide.severityAndDescriptionField="324"/> + <visible IMemento.internal.id="org.eclipse.ui.ide.severityAndDescriptionField"/> + <visible IMemento.internal.id="org.eclipse.ui.ide.resourceField"/> + <visible IMemento.internal.id="org.eclipse.ui.ide.pathField"/> + <visible IMemento.internal.id="org.eclipse.ui.ide.locationField"/> + <visible IMemento.internal.id="org.eclipse.ui.ide.markerType"/> + </viewState> + </view> + <view id="com.adobe.thermo.states.States" partName="STATES"> + <viewState/> + </view> + <view id="com.adobe.thermo.align.Align" partName="ALIGN"> + <viewState/> + </view> + </views> + <perspectives activePart="com.adobe.thermo.artboard.ArtBoardPart" activePerspective="com.adobe.thermo.core.workspace.DesignWorkspace"> + <perspective editorAreaTrimState="2" editorAreaVisible="0" fixed="0" version="0.016"> + <descriptor class="com.adobe.thermo.workspace.WelcomeWorkspace" id="com.adobe.thermo.core.workspace.WelcomeWorkspace" label="WelcomeWorkspace"/> + <alwaysOnActionSet id="com.adobe.thermo.projects.actionSet"/> + <view id="com.adobe.thermo.views.WelcomePanel"/> + <viewLayoutRec id="com.adobe.thermo.views.WelcomePanel" showTitle="false" standalone="true"/> + <layout> + <mainWindow> + <info folder="true" part="org.eclipse.ui.internal.ViewStack@13b087c"> + <folder activePageID="com.adobe.thermo.views.WelcomePanel" appearance="4" expanded="2"> + <page content="com.adobe.thermo.views.WelcomePanel" label="Welcome"/> + <presentation id="com.adobe.thermo.chrome.ThermoWorkbenchUI"/> + </folder> + </info> + <info folder="true" part="stickyFolderRight" ratio="0.75" ratioLeft="1260" ratioRight="420" relationship="2" relative="org.eclipse.ui.internal.ViewStack@13b087c"> + <folder appearance="2" expanded="2"> + <page content="org.eclipse.ui.internal.introview" label="LabelNotFound"/> + </folder> + </info> + <info part="org.eclipse.ui.editorss" ratio="0.95" ratioLeft="1596" ratioRight="84" relationship="2" relative="org.eclipse.ui.internal.ViewStack@13b087c"/> + </mainWindow> + </layout> + </perspective> + <perspective editorAreaTrimState="2" editorAreaVisible="0" fixed="0" version="0.016"> + <descriptor class="com.adobe.thermo.workspace.DesignWorkspace" id="com.adobe.thermo.core.workspace.DesignWorkspace" label="DesignWorkspace"/> + <alwaysOnActionSet id="com.adobe.thermo.projects.actionSet"/> + <view id="com.adobe.thermo.tools.Tools"/> + <view id="com.adobe.thermo.layers.Layers"/> + <view id="com.adobe.thermo.library.Library"/> + <view id="com.adobe.thermo.interactions.Interactions"/> + <view id="com.adobe.thermo.align.Align"/> + <view id="com.adobe.thermo.propertiespanel.Properties"/> + <view id="com.adobe.thermo.states.States"/> + <view id="com.adobe.thermo.timeline.Timeline"/> + <view id="com.adobe.thermo.datacollections.DataCollections"/> + <view id="com.adobe.thermo.componentlibrary.ComponentLibrary"/> + <view id="com.adobe.thermo.artboard.ArtBoardPart"/> + <viewLayoutRec id="com.adobe.thermo.artboard.ArtBoardPart" showTitle="false" standalone="true"/> + <viewLayoutRec id="com.adobe.thermo.tools.Tools" showTitle="false" standalone="true"/> + <layout> + <mainWindow> + <info folder="true" part="org.eclipse.ui.internal.ViewStack@1eaf203"> + <folder activePageID="com.adobe.thermo.states.States" appearance="2" expanded="2"> + <page content="com.adobe.thermo.states.States" label="STATES"/> + <presentation id="com.adobe.thermo.chrome.ThermoWorkbenchUI" thermo_isCollapsed="false"/> + </folder> + </info> + <info folder="true" part="stickyFolderRight" ratio="0.75" ratioLeft="1260" ratioRight="420" relationship="2" relative="org.eclipse.ui.internal.ViewStack@1eaf203"> + <folder appearance="2" expanded="2"> + <page content="org.eclipse.ui.internal.introview" label="LabelNotFound"/> + </folder> + </info> + <info folder="true" part="org.eclipse.ui.internal.ViewStack@231214" ratio="0.95" ratioLeft="1596" ratioRight="84" relationship="2" relative="org.eclipse.ui.internal.ViewStack@1eaf203"> + <folder activePageID="com.adobe.thermo.tools.Tools" appearance="4" expanded="2"> + <page content="com.adobe.thermo.tools.Tools" label="TOOLS"/> + <presentation id="com.adobe.thermo.chrome.ThermoWorkbenchUI"/> + </folder> + </info> + <info folder="true" part="trees" ratio="0.24918033" ratioLeft="228" ratioRight="687" relationship="4" relative="org.eclipse.ui.internal.ViewStack@231214"> + <folder activePageID="com.adobe.thermo.layers.Layers" appearance="2" expanded="2"> + <page content="com.adobe.thermo.layers.Layers" label="LAYERS"/> + <page content="com.adobe.thermo.library.Library" label="PROJECT LIBRARY"/> + <presentation id="com.adobe.thermo.chrome.ThermoWorkbenchUI" thermo_isCollapsed="false"/> + </folder> + </info> + <info folder="true" part="midRightShelf" ratio="0.29985443" ratioLeft="206" ratioRight="481" relationship="4" relative="trees"> + <folder activePageID="com.adobe.thermo.interactions.Interactions" appearance="2" expanded="2"> + <page content="com.adobe.thermo.interactions.Interactions" label="INTERACTIONS"/> + <page content="com.adobe.thermo.align.Align" label="ALIGN"/> + <presentation id="com.adobe.thermo.chrome.ThermoWorkbenchUI" thermo_isCollapsed="false"/> + </folder> + </info> + <info folder="true" part="propsComponents" ratio="0.2889813" ratioLeft="139" ratioRight="342" relationship="4" relative="midRightShelf"> + <folder activePageID="com.adobe.thermo.propertiespanel.Properties" appearance="2" expanded="2"> + <page content="com.adobe.thermo.propertiespanel.Properties" label="PROPERTIES"/> + <presentation id="com.adobe.thermo.chrome.ThermoWorkbenchUI" thermo_isCollapsed="false"/> + </folder> + </info> + <info folder="true" part="org.eclipse.ui.internal.ViewStack@1dfde20" ratio="0.1136612" ratioLeft="104" ratioRight="811" relationship="4" relative="org.eclipse.ui.internal.ViewStack@1eaf203"> + <folder activePageID="com.adobe.thermo.artboard.ArtBoardPart" appearance="4" expanded="2"> + <page content="com.adobe.thermo.artboard.ArtBoardPart" label="ArtBoard"/> + <presentation id="com.adobe.thermo.chrome.ThermoWorkbenchUI"/> + </folder> + </info> + <info folder="true" part="bottomComponents" ratio="0.649815" ratioLeft="527" ratioRight="284" relationship="4" relative="org.eclipse.ui.internal.ViewStack@1dfde20"> + <folder activePageID="com.adobe.thermo.timeline.Timeline" appearance="2" expanded="2"> + <page content="com.adobe.thermo.timeline.Timeline" label="TIMELINES"/> + <page content="com.adobe.thermo.datacollections.DataCollections" label="DESIGN-TIME DATA"/> + <page content="com.adobe.thermo.componentlibrary.ComponentLibrary" label="COMMON LIBRARY"/> + <presentation id="com.adobe.thermo.chrome.ThermoWorkbenchUI" thermo_isCollapsed="true"/> + </folder> + </info> + <info part="org.eclipse.ui.editorss" ratio="0.7593985" ratioLeft="1212" ratioRight="384" relationship="2" relative="org.eclipse.ui.internal.ViewStack@1dfde20"/> + </mainWindow> + </layout> + </perspective> + <perspective editorAreaTrimState="2" editorAreaVisible="1" fixed="0" version="0.016"> + <descriptor class="com.adobe.thermo.workspace.CodeWorkspace" id="com.adobe.thermo.core.workspace.CodeWorkspace" label="CodeWorkspace"/> + <alwaysOnActionSet id="com.adobe.thermo.projects.actionSet"/> + <alwaysOnActionSet id="org.eclipse.ui.edit.text.actionSet.annotationNavigation"/> + <alwaysOnActionSet id="org.eclipse.ui.edit.text.actionSet.navigation"/> + <view id="org.eclipse.ui.thermo.navigator.view"/> + <view id="org.eclipse.ui.views.ProblemView"/> + <layout> + <mainWindow> + <info part="org.eclipse.ui.editorss"/> + <info folder="true" part="stickyFolderRight" ratio="0.75" ratioLeft="1260" ratioRight="420" relationship="2" relative="org.eclipse.ui.editorss"> + <folder appearance="2" expanded="2"> + <page content="org.eclipse.ui.internal.introview" label="LabelNotFound"/> + </folder> + </info> + <info folder="true" part="org.eclipse.ui.internal.ViewStack@1345b80" ratio="0.7595238" ratioLeft="1276" ratioRight="404" relationship="2" relative="org.eclipse.ui.editorss"> + <folder activePageID="org.eclipse.ui.thermo.navigator.view" appearance="2" expanded="2"> + <page content="org.eclipse.ui.thermo.navigator.view" label="PROJECT NAVIGATOR"/> + <presentation id="com.adobe.thermo.chrome.ThermoWorkbenchUI" thermo_isCollapsed="false"/> + </folder> + </info> + <info folder="true" part="org.eclipse.ui.internal.ViewStack@635f47" ratio="0.69945353" ratioLeft="640" ratioRight="275" relationship="4" relative="org.eclipse.ui.editorss"> + <folder activePageID="org.eclipse.ui.views.ProblemView" appearance="2" expanded="2"> + <page content="org.eclipse.ui.views.ProblemView" label="Problems"/> + <presentation id="com.adobe.thermo.chrome.ThermoWorkbenchUI" thermo_isCollapsed="false"/> + </folder> + </info> + </mainWindow> + </layout> + </perspective> + </perspectives> + <workingSets/> + <navigationHistory/> + <input factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/" type="8"/> + </page> + <workbenchWindowAdvisor/> + <actionBarAdvisor/> + </window> + <mruList> + <file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="com.adobe.flexide.mxml.editor.Editor" name="PrivateData.mxml" tooltip="Project/src/PrivateData.mxml"> + <persistable path="/Project/src/PrivateData.mxml"/> + </file> + <file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="com.adobe.flexide.mxml.editor.Editor" name="Main.mxml" tooltip="Project/src/Main.mxml"> + <persistable path="/Project/src/Main.mxml"/> + </file> + </mruList> +</workbench> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/src/examples/workbench_flex.mxml ---------------------------------------------------------------------- diff --git a/Radii8Designer/src/examples/workbench_flex.mxml b/Radii8Designer/src/examples/workbench_flex.mxml new file mode 100644 index 0000000..e0fb0ab --- /dev/null +++ b/Radii8Designer/src/examples/workbench_flex.mxml @@ -0,0 +1,608 @@ +<?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. + +--> +<workbench progressCount="66" version="2.0"> + <workbenchAdvisor/> + <window height="929" width="1036" x="16" y="22"> + <fastViewData fastViewLocation="1024"/> + <perspectiveBar> + <itemSize x="316"/> + </perspectiveBar> + <coolbarLayout> + <coolItem id="group.file" itemType="typeGroupMarker"/> + <coolItem id="org.eclipse.ui.workbench.file" itemType="typeToolBarContribution" x="136" y="22"/> + <coolItem id="additions" itemType="typeGroupMarker"/> + <coolItem id="com.adobe.flexbuilder.editors.actionscript.ActionScriptEditor" itemType="typePlaceholder" x="-1" y="-1"/> + <coolItem id="com.adobe.flexbuilder.editors.css.editors.CSSEditor" itemType="typePlaceholder" x="-1" y="-1"/> + <coolItem id="com.adobe.flexbuilder.editors.mxml.MXMLEditor" itemType="typeToolBarContribution" x="-1" y="-1"/> + <coolItem id="com.adobe.flexbuilder.mxml.editor.FXGEditor" itemType="typePlaceholder" x="-1" y="-1"/> + <coolItem id="org.eclipse.debug.ui.launchActionSet" itemType="typeToolBarContribution" x="158" y="22"/> + <coolItem id="org.eclipse.search.searchActionSet" itemType="typeToolBarContribution" x="62" y="22"/> + <coolItem id="org.eclipse.team.ui.actionSet" itemType="typeToolBarContribution" x="40" y="22"/> + <coolItem id="org.eclipse.ui.DefaultTextEditor" itemType="typePlaceholder" x="-1" y="-1"/> + <coolItem id="org.eclipse.ui.edit.text.actionSet.presentation" itemType="typeToolBarContribution" x="76" y="22"/> + <coolItem id="org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart" itemType="typePlaceholder" x="-1" y="-1"/> + <coolItem id="org.eclipse.wst.xml.ui.perspective.NewFileToolBar" itemType="typeToolBarContribution" x="-1" y="-1"/> + <coolItem id="org.eclipse.wst.xml.ui.design.DesignToolBar" itemType="typeToolBarContribution" x="-1" y="-1"/> + <coolItem id="group.nav" itemType="typeGroupMarker"/> + <coolItem id="org.eclipse.ui.workbench.navigate" itemType="typeToolBarContribution" x="152" y="22"/> + <coolItem id="group.editor" itemType="typeGroupMarker"/> + <coolItem id="group.help" itemType="typeGroupMarker"/> + <coolItem id="org.eclipse.ui.workbench.help" itemType="typeToolBarContribution" x="-1" y="-1"/> + </coolbarLayout> + <page aggregateWorkingSetId="Aggregate for window 1315939933488" focus="true" label="Workspace - Flash"> + <editors> + <editorArea activeWorkbook="DefaultEditorWorkbook"> + <info part="DefaultEditorWorkbook"> + <folder appearance="1" expanded="2"> + <presentation id="org.eclipse.ui.presentations.WorkbenchPresentationFactory"> + <part id="0"/> + <part id="1"/> + <part id="2"/> + <part id="3"/> + <part id="4"/> + </presentation> + </folder> + </info> + </editorArea> + <editor id="com.adobe.flexbuilder.editors.mxml.MXMLEditor" name="Components.mxml" partName="Components.mxml" path="/Users/monkeypunch/Documents/Adobe Flash Builder 45/Radii8/src/Components.mxml" title="Components.mxml" tooltip="Radii8/src/Components.mxml" workbook="DefaultEditorWorkbook"> + <input factoryID="org.eclipse.ui.part.FileEditorInputFactory" path="/Radii8/src/Components.mxml"/> + </editor> + <editor id="com.adobe.flexbuilder.editors.mxml.MXMLEditor" name="RadiateExample.mxml" partName="RadiateExample.mxml" path="/Users/monkeypunch/Documents/Adobe Flash Builder 45/Radii8/src/RadiateExample.mxml" title="RadiateExample.mxml" tooltip="Radii8/src/RadiateExample.mxml" workbook="DefaultEditorWorkbook"> + <input factoryID="org.eclipse.ui.part.FileEditorInputFactory" path="/Radii8/src/RadiateExample.mxml"/> + </editor> + <editor id="com.adobe.flexbuilder.editors.mxml.MXMLEditor" name="Remote.mxml" partName="Remote.mxml" path="/Users/monkeypunch/Documents/Adobe Flash Builder 45/Radii8/src/Remote.mxml" title="Remote.mxml" tooltip="Radii8/src/Remote.mxml" workbook="DefaultEditorWorkbook"> + <input factoryID="org.eclipse.ui.part.FileEditorInputFactory" path="/Radii8/src/Remote.mxml"/> + </editor> + <editor id="com.adobe.flexbuilder.editors.actionscript.ActionScriptEditor" name="Radiate.as" partName="Radiate.as" path="/Users/monkeypunch/Documents/Adobe Flash Builder 45/MainLibrary/src/com/flexcapacitor/radiate/Radiate.as" title="Radiate.as" tooltip="MainLibrary/src/com/flexcapacitor/radiate/Radiate.as" workbook="DefaultEditorWorkbook"> + <input factoryID="org.eclipse.ui.part.FileEditorInputFactory" path="/MainLibrary/src/com/flexcapacitor/radiate/Radiate.as"/> + <editorState selectionHorizontalPixel="0" selectionLength="0" selectionOffset="7444" selectionTopPixel="3725"/> + </editor> + <editor activePart="true" focus="true" id="com.adobe.flexbuilder.editors.mxml.MXMLEditor" name="DragExample.mxml" partName="DragExample.mxml" path="/Users/monkeypunch/Documents/Adobe Flash Builder 45/Radii8/src/DragExample.mxml" title="DragExample.mxml" tooltip="Radii8/src/DragExample.mxml" workbook="DefaultEditorWorkbook"> + <input factoryID="org.eclipse.ui.part.FileEditorInputFactory" path="/Radii8/src/DragExample.mxml"/> + </editor> + </editors> + <views> + <view id="org.eclipse.debug.ui.ExpressionView" partName="Expressions"> + <viewState/> + </view> + <view id="org.eclipse.ui.views.ProblemView" partName="Problems"> + <viewState PRIMARY_SORT_FIELD="org.eclipse.ui.ide.severityAndDescriptionField" categoryGroup="org.eclipse.ui.ide.severity" markerContentGenerator="org.eclipse.ui.ide.problemsGenerator" partName="Problems"> + <expanded> + <category IMemento.internal.id="Errors"/> + </expanded> + <columnWidths org.eclipse.ui.ide.locationField="90" org.eclipse.ui.ide.markerType="90" org.eclipse.ui.ide.pathField="120" org.eclipse.ui.ide.resourceField="90" org.eclipse.ui.ide.severityAndDescriptionField="735"/> + <visible IMemento.internal.id="org.eclipse.ui.ide.severityAndDescriptionField"/> + <visible IMemento.internal.id="org.eclipse.ui.ide.resourceField"/> + <visible IMemento.internal.id="org.eclipse.ui.ide.pathField"/> + <visible IMemento.internal.id="org.eclipse.ui.ide.locationField"/> + <visible IMemento.internal.id="org.eclipse.ui.ide.markerType"/> + </viewState> + </view> + <view id="org.eclipse.debug.ui.DebugView" partName="Debug"> + <viewState/> + </view> + <view id="org.eclipse.ui.console.ConsoleView" partName="Console"> + <viewState/> + </view> + <view id="com.adobe.flexbuilder.packageexplorer" partName="Package Explorer"> + <viewState LINK_NAVIGATOR_TO_EDITOR="0" fpeIsFlat="0" fpeSortBy="1" sorter="1"> + <fpeExpanded> + <fpeElement fpePath="/Radii8"/> + <fpeElement fpePath="/Radii8/src"/> + <fpeElement fpePath="/Radii8/src/%typeDefaultPackage"/> + <fpeElement fpePath="/Radii8/src/images"/> + </fpeExpanded> + <fpeSelection> + <fpeElement fpePath="/Radii8/src/images"/> + </fpeSelection> + <filters> + <filter element=".flexProperties" isEnabled="true"/> + <filter element=".actionScriptProperties" isEnabled="true"/> + <filter element=".project" isEnabled="true"/> + <filter element=".settings" isEnabled="true"/> + <filter element=".flexLibProperties" isEnabled="true"/> + <filter element=".DS_Store" isEnabled="true"/> + <filter element=".model" isEnabled="true"/> + <filter element="*.class" isEnabled="false"/> + <filter element=".*" isEnabled="false"/> + <filter element=".flexProperties" isEnabled="true"/> + <filter element=".actionScriptProperties" isEnabled="true"/> + <filter element=".project" isEnabled="true"/> + <filter element=".settings" isEnabled="true"/> + <filter element=".flexLibProperties" isEnabled="true"/> + <filter element=".DS_Store" isEnabled="true"/> + <filter element=".model" isEnabled="true"/> + <filter element="*.class" isEnabled="false"/> + <filter element=".*" isEnabled="false"/> + </filters> + <expanded> + <element path="/Radii8"/> + </expanded> + <selection/> + </viewState> + </view> + <view id="org.eclipse.debug.ui.BreakpointView" partName="Breakpoints"> + <viewState/> + </view> + <view id="org.eclipse.debug.ui.VariableView" partName="Variables"> + <viewState/> + </view> + <view id="org.eclipse.ui.views.ContentOutline" partName="Outline"> + <viewState/> + </view> + <view id="com.adobe.flexbuilder.as.editor.asdocviewer" partName="ASDoc"> + <viewState/> + </view> + </views> + <perspectives activePart="com.adobe.flexbuilder.editors.mxml.MXMLEditor" activePerspective="com.adobe.flexbuilder.editors.mxml.ui.perspectives.development"> + <perspective editorAreaTrimState="2" editorAreaVisible="1" fixed="0" version="0.016"> + <descriptor class="com.adobe.flexbuilder.debug.ui.perspectives.FlexDebugPerspectiveFactory" id="com.adobe.flexbuilder.debug.ui.perspectives.debug" label="Flash Debug"/> + <alwaysOnActionSet id="com.adobe.flexbuilder.editorcore.modeswitch"/> + <alwaysOnActionSet id="com.adobe.flexbuilder.flashbridge.flashproject.actionSet"/> + <alwaysOnActionSet id="com.adobe.flexbuilder.designview.activationcontrol"/> + <alwaysOnActionSet id="org.eclipse.mylyn.context.ui.actionSet"/> + <alwaysOnActionSet id="org.eclipse.mylyn.doc.actionSet"/> + <alwaysOnActionSet id="org.eclipse.mylyn.tasks.ui.navigation"/> + <alwaysOnActionSet id="org.eclipse.ui.cheatsheets.actionSet"/> + <alwaysOnActionSet id="org.eclipse.search.searchActionSet"/> + <alwaysOnActionSet id="org.eclipse.ui.edit.text.actionSet.annotationNavigation"/> + <alwaysOnActionSet id="org.eclipse.ui.edit.text.actionSet.navigation"/> + <alwaysOnActionSet id="org.eclipse.ui.edit.text.actionSet.convertLineDelimitersTo"/> + <alwaysOnActionSet id="org.eclipse.ui.externaltools.ExternalToolsSet"/> + <alwaysOnActionSet id="org.eclipse.ui.actionSet.keyBindings"/> + <alwaysOnActionSet id="org.eclipse.ui.actionSet.openFiles"/> + <alwaysOnActionSet id="org.eclipse.wb.core.ui.actionset"/> + <alwaysOnActionSet id="org.eclipse.debug.ui.launchActionSet"/> + <alwaysOnActionSet id="org.eclipse.debug.ui.profileActionSet"/> + <alwaysOnActionSet id="org.eclipse.ui.NavigateActionSet"/> + <alwaysOnActionSet id="org.eclipse.debug.ui.breakpointActionSet"/> + <alwaysOnActionSet id="com.adobe.flexbuilder.debug.ui.flexDebuggingActionSet"/> + <alwaysOnActionSet id="com.adobe.flexbuilder.zzz.editors.common.ui.project.publish"/> + <alwaysOnActionSet id="com.adobe.flexbuilder.exportimport.actionSet1"/> + <alwaysOnActionSet id="com.adobe.flexbuilder.as.editor.ui.NavigationActions"/> + <alwaysOnActionSet id="com.adobe.flexbuilder.dcrad.actionSet"/> + <alwaysOnActionSet id="org.eclipse.debug.ui.debugActionSet"/> + <show_view_action id="org.eclipse.debug.ui.VariableView"/> + <show_view_action id="org.eclipse.debug.ui.BreakpointView"/> + <show_view_action id="org.eclipse.debug.ui.ExpressionView"/> + <show_view_action id="org.eclipse.ui.console.ConsoleView"/> + <show_view_action id="org.eclipse.debug.ui.DebugView"/> + <show_view_action id="org.eclipse.ui.views.ProblemView"/> + <show_view_action id="com.adobe.flexbuilder.mxml.editor.AppearanceView"/> + <show_view_action id="com.adobe.flexbuilder.mxml.editor.components.ComponentsView"/> + <show_view_action id="com.adobe.flexbuilder.packageexplorer"/> + <show_view_action id="org.eclipse.ui.views.ContentOutline"/> + <show_view_action id="com.adobe.flexbuilder.mxml.editor.inspector.view.PropertiesView"/> + <show_view_action id="com.adobe.flexbuilder.mxml.editor.states.StatesViewer"/> + <new_wizard_action id="com.adobe.flexbuilder.editorcore.ui.project.wizards.newproject"/> + <new_wizard_action id="com.adobe.flexbuilder.project.ui.wizards.FlexLibraryProjectWizard"/> + <new_wizard_action id="com.adobe.flashbuilder.project.multiplatform.ui.MultiPlatformProjectWizard"/> + <new_wizard_action id="com.adobe.flexbuilder.project.ui.wizards.NewActionScriptProjectWizard"/> + <new_wizard_action id="com.adobe.flashbuilder.project.multiplatform.ui.MultiPlatformActionScriptProjectWizard"/> + <new_wizard_action id="com.adobe.flexbuilder.flashbridge.NewFlashProProjectWizard"/> + <new_wizard_action id="com.adobe.flexbuilder.editorcore.ui.project.wizards.newflashcatalystproject"/> + <new_wizard_action id="com.adobe.flexbuilder.mxml.editor.ui.wizards.NewMXMLApplication"/> + <new_wizard_action id="com.adobe.flexbuilder.mxml.editor.ui.wizards.NewMXMLComponent"/> + <new_wizard_action id="com.adobe.flexbuilder.mxml.editor.ui.wizards.NewMXMLItemRenderer"/> + <new_wizard_action id="com.adobe.flexbuilder.mxml.editor.ui.wizards.NewMXMLModule"/> + <new_wizard_action id="com.adobe.flexbuilder.mxml.editor.ui.wizards.NewMXMLSkin"/> + <new_wizard_action id="com.adobe.flexbuilder.as.editor.wizards.NewActionScriptFile.flex"/> + <new_wizard_action id="com.adobe.flexbuilder.as.editor.classWizard.flex"/> + <new_wizard_action id="com.adobe.flexbuilder.as.editor.interfaceWizard.flex"/> + <new_wizard_action id="com.adobe.flexbuilder.as.editor.skinnableComponentWizard.flex"/> + <new_wizard_action id="com.adobe.flexbuilder.css.editor.wizards.NewCSSFile"/> + <new_wizard_action id="com.adobe.flexbuilder.as.editor.flexUnitClassWizard.flex"/> + <new_wizard_action id="com.adobe.flexbuilder.as.editor.flexUnitTestSuiteClassWizard.flex"/> + <new_wizard_action id="com.adobe.flexbuilder.as.editor.packageWizard.flex"/> + <new_wizard_action id="org.eclipse.ui.wizards.new.folder"/> + <new_wizard_action id="org.eclipse.ui.wizards.new.file"/> + <perspective_action id="com.adobe.flexbuilder.editors.mxml.ui.perspectives.development"/> + <perspective_action id="com.adobe.flexbuilder.debug.ui.perspectives.debug"/> + <perspective_action id="com.adobe.flash.profiler.ui.ProfilingPerspective"/> + <hide_toolbar_item_id id="org.eclipse.jdt.ui.actions.OpenProjectWizard"/> + <hide_toolbar_item_id id="org.eclipse.ui.edit.text.toggleShowSelectedElementOnly"/> + <view id="org.eclipse.ui.console.ConsoleView"/> + <view id="org.eclipse.debug.ui.VariableView"/> + <view id="org.eclipse.debug.ui.BreakpointView"/> + <view id="org.eclipse.debug.ui.ExpressionView"/> + <view id="org.eclipse.debug.ui.DebugView"/> + <view id="org.eclipse.ui.views.ProblemView"/> + <fastViewBars/> + <layout> + <mainWindow> + <info part="org.eclipse.ui.editorss"/> + <info folder="true" part="stickyFolderRight" ratio="0.74977255" ratioLeft="824" ratioRight="275" relationship="2" relative="org.eclipse.ui.editorss"> + <folder appearance="2" expanded="2"> + <page content="org.eclipse.help.ui.HelpView" label="LabelNotFound"/> + <page content="org.eclipse.ui.internal.introview" label="LabelNotFound"/> + <page content="org.eclipse.ui.cheatsheets.views.CheatSheetView" label="LabelNotFound"/> + </folder> + </info> + <info folder="true" part="org.eclipse.debug.internal.ui.ConsoleFolderView" ratio="0.75" ratioLeft="612" ratioRight="204" relationship="4" relative="org.eclipse.ui.editorss"> + <folder activePageID="org.eclipse.ui.console.ConsoleView" appearance="2" expanded="2"> + <page content="org.eclipse.ui.console.ConsoleView" label="Console"/> + <page content="com.adobe.flexbuilder.dcrad.views.DataServicesView" label="LabelNotFound"/> + <page content="com.adobe.flexbuilder.monitors.network.view.NetworkMonitorView" label="LabelNotFound"/> + <presentation id="org.eclipse.ui.presentations.WorkbenchPresentationFactory"> + <part id="0"/> + </presentation> + </folder> + </info> + <info folder="true" part="org.eclipse.ui.internal.ViewStack@1ecbdeb" ratio="0.49954504" ratioLeft="549" ratioRight="550" relationship="2" relative="org.eclipse.debug.internal.ui.ConsoleFolderView"> + <folder activePageID="org.eclipse.debug.ui.DebugView" appearance="2" expanded="2"> + <page content="org.eclipse.debug.ui.DebugView" label="Debug"/> + <page content="org.eclipse.ui.views.ProblemView" label="Problems"/> + <presentation id="org.eclipse.ui.presentations.WorkbenchPresentationFactory"> + <part id="0"/> + <part id="1"/> + </presentation> + </folder> + </info> + <info folder="true" part="org.eclipse.ui.internal.ViewStack@3a294f" ratio="0.66146344" ratioLeft="678" ratioRight="347" relationship="2" relative="org.eclipse.ui.editorss"> + <folder activePageID="org.eclipse.debug.ui.VariableView" appearance="2" expanded="2"> + <page content="org.eclipse.debug.ui.VariableView" label="Variables"/> + <page content="org.eclipse.debug.ui.BreakpointView" label="Breakpoints"/> + <page content="org.eclipse.debug.ui.ExpressionView" label="Expressions"/> + <presentation id="org.eclipse.ui.presentations.WorkbenchPresentationFactory"> + <part id="0"/> + <part id="1"/> + <part id="2"/> + </presentation> + </folder> + </info> + </mainWindow> + </layout> + </perspective> + <perspective editorAreaTrimState="2" editorAreaVisible="1" fixed="0" version="0.016"> + <descriptor class="com.adobe.flexbuilder.mxml.editor.ui.perspectives.DevelopmentPerspectiveFactory" id="com.adobe.flexbuilder.editors.mxml.ui.perspectives.development" label="Flash"/> + <alwaysOnActionSet id="com.adobe.flexbuilder.editorcore.modeswitch"/> + <alwaysOnActionSet id="com.adobe.flexbuilder.flashbridge.flashproject.actionSet"/> + <alwaysOnActionSet id="com.adobe.flexbuilder.designview.activationcontrol"/> + <alwaysOnActionSet id="org.eclipse.mylyn.context.ui.actionSet"/> + <alwaysOnActionSet id="org.eclipse.mylyn.doc.actionSet"/> + <alwaysOnActionSet id="org.eclipse.mylyn.tasks.ui.navigation"/> + <alwaysOnActionSet id="org.eclipse.ui.cheatsheets.actionSet"/> + <alwaysOnActionSet id="org.eclipse.search.searchActionSet"/> + <alwaysOnActionSet id="org.eclipse.ui.edit.text.actionSet.annotationNavigation"/> + <alwaysOnActionSet id="org.eclipse.ui.edit.text.actionSet.navigation"/> + <alwaysOnActionSet id="org.eclipse.ui.edit.text.actionSet.convertLineDelimitersTo"/> + <alwaysOnActionSet id="org.eclipse.ui.externaltools.ExternalToolsSet"/> + <alwaysOnActionSet id="org.eclipse.ui.actionSet.keyBindings"/> + <alwaysOnActionSet id="org.eclipse.ui.actionSet.openFiles"/> + <alwaysOnActionSet id="org.eclipse.wb.core.ui.actionset"/> + <alwaysOnActionSet id="org.eclipse.debug.ui.launchActionSet"/> + <alwaysOnActionSet id="org.eclipse.debug.ui.profileActionSet"/> + <alwaysOnActionSet id="org.eclipse.ui.NavigateActionSet"/> + <alwaysOnActionSet id="org.eclipse.debug.ui.debugActionSet"/> + <alwaysOnActionSet id="org.eclipse.debug.ui.breakpointActionSet"/> + <alwaysOnActionSet id="com.adobe.flexbuilder.debug.ui.flexDebuggingActionSet"/> + <alwaysOnActionSet id="com.adobe.flexbuilder.zzz.editors.common.ui.project.publish"/> + <alwaysOnActionSet id="com.adobe.flexbuilder.exportimport.actionSet1"/> + <alwaysOnActionSet id="com.adobe.flexbuilder.as.editor.ui.NavigationActions"/> + <alwaysOnActionSet id="com.adobe.flexbuilder.dcrad.actionSet"/> + <show_view_action id="com.adobe.flexbuilder.mxml.editor.AppearanceView"/> + <show_view_action id="com.adobe.flexbuilder.mxml.editor.components.ComponentsView"/> + <show_view_action id="com.adobe.flexbuilder.packageexplorer"/> + <show_view_action id="org.eclipse.ui.views.ContentOutline"/> + <show_view_action id="org.eclipse.ui.views.ProblemView"/> + <show_view_action id="com.adobe.flexbuilder.mxml.editor.inspector.view.PropertiesView"/> + <show_view_action id="com.adobe.flexbuilder.mxml.editor.states.StatesViewer"/> + <show_view_action id="com.adobe.flexbuilder.dcrad.views.DataServicesView"/> + <new_wizard_action id="com.adobe.flexbuilder.editorcore.ui.project.wizards.newproject"/> + <new_wizard_action id="com.adobe.flexbuilder.project.ui.wizards.FlexLibraryProjectWizard"/> + <new_wizard_action id="com.adobe.flashbuilder.project.multiplatform.ui.MultiPlatformProjectWizard"/> + <new_wizard_action id="com.adobe.flexbuilder.project.ui.wizards.NewActionScriptProjectWizard"/> + <new_wizard_action id="com.adobe.flashbuilder.project.multiplatform.ui.MultiPlatformActionScriptProjectWizard"/> + <new_wizard_action id="com.adobe.flexbuilder.flashbridge.NewFlashProProjectWizard"/> + <new_wizard_action id="com.adobe.flexbuilder.editorcore.ui.project.wizards.newflashcatalystproject"/> + <new_wizard_action id="com.adobe.flexbuilder.mxml.editor.ui.wizards.NewMXMLApplication"/> + <new_wizard_action id="com.adobe.flexbuilder.mxml.editor.ui.wizards.NewMXMLComponent"/> + <new_wizard_action id="com.adobe.flexbuilder.mxml.editor.ui.wizards.NewMXMLItemRenderer"/> + <new_wizard_action id="com.adobe.flexbuilder.mxml.editor.ui.wizards.NewMXMLModule"/> + <new_wizard_action id="com.adobe.flexbuilder.mxml.editor.ui.wizards.NewMXMLSkin"/> + <new_wizard_action id="com.adobe.flexbuilder.as.editor.wizards.NewActionScriptFile.flex"/> + <new_wizard_action id="com.adobe.flexbuilder.as.editor.classWizard.flex"/> + <new_wizard_action id="com.adobe.flexbuilder.as.editor.interfaceWizard.flex"/> + <new_wizard_action id="com.adobe.flexbuilder.as.editor.skinnableComponentWizard.flex"/> + <new_wizard_action id="com.adobe.flexbuilder.css.editor.wizards.NewCSSFile"/> + <new_wizard_action id="com.adobe.flexbuilder.as.editor.flexUnitClassWizard.flex"/> + <new_wizard_action id="com.adobe.flexbuilder.as.editor.flexUnitTestSuiteClassWizard.flex"/> + <new_wizard_action id="com.adobe.flexbuilder.as.editor.packageWizard.flex"/> + <new_wizard_action id="org.eclipse.ui.wizards.new.folder"/> + <new_wizard_action id="org.eclipse.ui.wizards.new.file"/> + <perspective_action id="com.adobe.flexbuilder.editors.mxml.ui.perspectives.development"/> + <perspective_action id="com.adobe.flexbuilder.debug.ui.perspectives.debug"/> + <perspective_action id="com.adobe.flash.profiler.ui.ProfilingPerspective"/> + <hide_toolbar_item_id id="org.eclipse.jdt.ui.actions.OpenProjectWizard"/> + <hide_toolbar_item_id id="org.eclipse.ui.edit.text.toggleShowSelectedElementOnly"/> + <view id="com.adobe.flexbuilder.packageexplorer"/> + <view id="org.eclipse.ui.views.ContentOutline"/> + <view id="org.eclipse.ui.views.ProblemView"/> + <view id="org.eclipse.ui.console.ConsoleView"/> + <view id="com.adobe.flexbuilder.as.editor.asdocviewer"/> + <fastViewBars/> + <layout> + <mainWindow> + <info folder="true" part="org.eclipse.ui.internal.ViewStack@1c81f97"> + <folder activePageID="com.adobe.flexbuilder.packageexplorer" appearance="2" expanded="2"> + <page content="com.adobe.flexbuilder.packageexplorer" label="Package Explorer"/> + <presentation id="org.eclipse.ui.presentations.WorkbenchPresentationFactory"> + <part id="0"/> + </presentation> + </folder> + </info> + <info folder="true" part="stickyFolderRight" ratio="0.7496318" ratioLeft="1018" ratioRight="340" relationship="2" relative="org.eclipse.ui.internal.ViewStack@1c81f97"> + <folder appearance="2" expanded="2"> + <page content="org.eclipse.help.ui.HelpView" label="LabelNotFound"/> + <page content="org.eclipse.ui.internal.introview" label="LabelNotFound"/> + <page content="org.eclipse.ui.cheatsheets.views.CheatSheetView" label="LabelNotFound"/> + </folder> + </info> + <info part="org.eclipse.ui.editorss" ratio="0.19955817" ratioLeft="271" ratioRight="1087" relationship="2" relative="org.eclipse.ui.internal.ViewStack@1c81f97"/> + <info folder="true" part="org.eclipse.ui.internal.ViewStack@12bb70d" ratio="0.62627196" ratioLeft="677" ratioRight="404" relationship="2" relative="org.eclipse.ui.editorss"> + <folder appearance="2" expanded="2"> + <page content="com.adobe.flexbuilder.mxml.editor.states.StatesViewer" label="LabelNotFound"/> + <presentation id="org.eclipse.ui.presentations.WorkbenchPresentationFactory"/> + </folder> + </info> + <info folder="true" part="propertiesHolder" ratio="0.24970964" ratioLeft="215" ratioRight="646" relationship="4" relative="org.eclipse.ui.internal.ViewStack@12bb70d"> + <folder appearance="2" expanded="2"> + <page content="com.adobe.flexbuilder.mxml.editor.inspector.view.PropertiesView" label="LabelNotFound"/> + <page content="com.adobe.flexbuilder.mxml.editor.AppearanceView" label="LabelNotFound"/> + <presentation id="org.eclipse.ui.presentations.WorkbenchPresentationFactory"/> + </folder> + </info> + <info folder="true" part="bottomLayout" ratio="0.74825174" ratioLeft="642" ratioRight="216" relationship="4" relative="org.eclipse.ui.editorss"> + <folder activePageID="org.eclipse.ui.console.ConsoleView" appearance="2" expanded="2"> + <page content="org.eclipse.ui.views.ProblemView" label="Problems"/> + <page content="org.eclipse.ui.console.ConsoleView" label="Console"/> + <page content="com.adobe.flexbuilder.as.editor.asdocviewer" label="ASDoc"/> + <page content="com.adobe.flexbuilder.dcrad.views.DataServicesView" label="LabelNotFound"/> + <page content="com.adobe.flexbuilder.mxml.editor.design.internal.errors.view.DesignModeProblemsView" label="LabelNotFound"/> + <page content="com.adobe.flexbuilder.monitors.network.view.NetworkMonitorView" label="LabelNotFound"/> + <presentation id="org.eclipse.ui.presentations.WorkbenchPresentationFactory"> + <part id="0"/> + <part id="1"/> + <part id="2"/> + </presentation> + </folder> + </info> + <info folder="true" part="outlineHolder" ratio="0.49941927" ratioLeft="430" ratioRight="431" relationship="4" relative="org.eclipse.ui.internal.ViewStack@1c81f97"> + <folder activePageID="org.eclipse.ui.views.ContentOutline" appearance="2" expanded="2"> + <page content="org.eclipse.ui.views.ContentOutline" label="Outline"/> + <page content="com.adobe.flexbuilder.mxml.editor.components.ComponentsView" label="LabelNotFound"/> + <presentation id="org.eclipse.ui.presentations.WorkbenchPresentationFactory"> + <part id="0"/> + </presentation> + </folder> + </info> + </mainWindow> + </layout> + </perspective> + </perspectives> + <workingSets/> + <navigationHistory> + <editors> + <editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="com.adobe.flexbuilder.editors.mxml.MXMLEditor" path="/Radii8/src/Components.mxml"/> + <editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="com.adobe.flexbuilder.mxml.editor.MXMLCodeEditor" path="/Radii8/src/Components.mxml"/> + <editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="com.adobe.flexbuilder.editors.actionscript.ActionScriptEditor" path="/MainLibrary/src/com/flexcapacitor/radiate/Radiate.as"/> + <editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="com.adobe.flexbuilder.editors.actionscript.ActionScriptEditor" path="/MainLibrary/src/com/flexcapacitor/radiate/supportClasses/ComponentDescription.as"/> + <editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="com.adobe.flexbuilder.editors.mxml.MXMLEditor" path="/Radii8/src/RadiateExample.mxml"/> + <editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="com.adobe.flexbuilder.editors.mxml.MXMLEditor" path="/Radii8/src/Remote.mxml"/> + <editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="com.adobe.flexbuilder.editors.mxml.MXMLEditor" path="/Radii8/src/Remote.mxml"/> + <editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="com.adobe.flexbuilder.mxml.editor.MXMLCodeEditor" path="/Radii8/src/Components.mxml"/> + <editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="com.adobe.flexbuilder.editors.mxml.MXMLEditor" path="/Radii8/src/DragExample.mxml"/> + <editor factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="com.adobe.flexbuilder.mxml.editor.MXMLCodeEditor" path="/Radii8/src/DragExample.mxml"/> + </editors> + <item historyLabel="Radiate.as" index="2"> + <position info="not_deleted" x="8114" y="0"/> + </item> + <item historyLabel="ComponentDescription.as" index="3"> + <position info="not_deleted" x="317" y="0"/> + </item> + <item historyLabel="Radiate.as" index="2"> + <position info="not_deleted" x="7521" y="0"/> + </item> + <item historyLabel="Components.mxml" index="0"> + <position/> + </item> + <item historyLabel="Components.mxml" index="1"> + <position info="not_deleted" x="2370" y="0"/> + </item> + <item historyLabel="Components.mxml" index="1"> + <position info="not_deleted" x="1856" y="0"/> + </item> + <item historyLabel="Radiate.as" index="2"> + <position info="not_deleted" x="7521" y="0"/> + </item> + <item historyLabel="Components.mxml" index="0"> + <position info="not_deleted" x="1827" y="0"/> + </item> + <item historyLabel="Components.mxml" index="1"> + <position info="not_deleted" x="2270" y="10"/> + </item> + <item historyLabel="Components.mxml" index="1"> + <position info="not_deleted" x="2230" y="0"/> + </item> + <item historyLabel="Components.mxml" index="1"> + <position info="not_deleted" x="1817" y="0"/> + </item> + <item historyLabel="Components.mxml" index="1"> + <position info="not_deleted" x="1853" y="0"/> + </item> + <item historyLabel="Components.mxml" index="1"> + <position info="not_deleted" x="1754" y="0"/> + </item> + <item historyLabel="Components.mxml" index="1"> + <position info="not_deleted" x="1818" y="0"/> + </item> + <item historyLabel="Radiate.as" index="2"> + <position info="not_deleted" x="7444" y="0"/> + </item> + <item historyLabel="Components.mxml" index="0"> + <position info="not_deleted" x="1818" y="0"/> + </item> + <item historyLabel="Components.mxml" index="1"> + <position info="not_deleted" x="1854" y="0"/> + </item> + <item historyLabel="Components.mxml" index="1"> + <position info="not_deleted" x="2489" y="0"/> + </item> + <item historyLabel="Components.mxml" index="0"> + <position info="not_deleted" x="2489" y="0"/> + </item> + <item historyLabel="Components.mxml" index="0"> + <position info="not_deleted" x="2489" y="0"/> + </item> + <item historyLabel="RadiateExample.mxml" index="4"> + <position info="not_deleted" x="347" y="0"/> + </item> + <item historyLabel="Components.mxml" index="0"> + <position/> + </item> + <item historyLabel="Components.mxml" index="1"> + <position/> + </item> + <item historyLabel="Components.mxml" index="1"> + <position/> + </item> + <item historyLabel="Components.mxml" index="1"> + <position/> + </item> + <item historyLabel="Components.mxml" index="1"> + <position/> + </item> + <item historyLabel="Components.mxml" index="1"> + <position info="not_deleted" x="2628" y="0"/> + </item> + <item historyLabel="RadiateExample.mxml" index="4"> + <position info="not_deleted" x="347" y="0"/> + </item> + <item historyLabel="Remote.mxml" index="5"> + <position info="not_deleted" x="10112" y="0"/> + </item> + <item historyLabel="Components.mxml" index="0"> + <position info="not_deleted" x="0" y="0"/> + </item> + <item historyLabel="Remote.mxml" index="6"> + <position info="not_deleted" x="911" y="0"/> + </item> + <item historyLabel="Components.mxml" index="0"> + <position info="not_deleted" x="0" y="0"/> + </item> + <item historyLabel="Components.mxml" index="7"> + <position/> + </item> + <item historyLabel="Components.mxml" index="7"> + <position/> + </item> + <item historyLabel="Components.mxml" index="7"> + <position info="not_deleted" x="3778" y="0"/> + </item> + <item historyLabel="Components.mxml" index="0"> + <position info="not_deleted" x="3794" y="0"/> + </item> + <item historyLabel="Components.mxml" index="7"> + <position/> + </item> + <item historyLabel="Components.mxml" index="7"> + <position/> + </item> + <item historyLabel="Components.mxml" index="7"> + <position info="not_deleted" x="3992" y="0"/> + </item> + <item historyLabel="Components.mxml" index="7"> + <position info="not_deleted" x="3940" y="0"/> + </item> + <item historyLabel="Components.mxml" index="7"> + <position info="not_deleted" x="3982" y="0"/> + </item> + <item historyLabel="Components.mxml" index="7"> + <position info="not_deleted" x="4311" y="0"/> + </item> + <item historyLabel="DragExample.mxml" index="8"> + <position info="not_deleted" x="3794" y="0"/> + </item> + <item historyLabel="Remote.mxml" index="6"> + <position info="not_deleted" x="9123" y="0"/> + </item> + <item historyLabel="DragExample.mxml" index="8"> + <position info="not_deleted" x="3794" y="0"/> + </item> + <item historyLabel="DragExample.mxml" index="9"> + <position info="not_deleted" x="4517" y="0"/> + </item> + <item active="true" historyLabel="DragExample.mxml" index="9"> + <position info="not_deleted" x="2146" y="27"/> + </item> + </navigationHistory> + <input factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/" type="8"/> + </page> + <workbenchWindowAdvisor/> + <actionBarAdvisor/> + <trimLayout> + <trimArea IMemento.internal.id="128"> + <trimItem IMemento.internal.id="org.eclipse.ui.internal.WorkbenchWindow.topBar"/> + <trimItem IMemento.internal.id="org.eclipse.mylyn.tasks.ui.trim.container"/> + </trimArea> + <trimArea IMemento.internal.id="1024"> + <trimItem IMemento.internal.id="org.eclise.ui.internal.FastViewBar"/> + <trimItem IMemento.internal.id="org.eclipse.jface.action.StatusLineManager"/> + <trimItem IMemento.internal.id="org.eclipse.ui.internal.progress.ProgressRegion"/> + <trimItem IMemento.internal.id="org.eclipse.ui.internal.HeapStatus"/> + </trimArea> + </trimLayout> + </window> + <mruList> + <file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="com.adobe.flexbuilder.editors.mxml.MXMLEditor" name="DragExample.mxml" tooltip="Radii8/src/DragExample.mxml"> + <persistable path="/Radii8/src/DragExample.mxml"/> + </file> + <file factoryID="com.adobe.flexbuilder.editors.derived.ui.startpage.StartPageEditorInput" id="com.adobe.flexbuilder.ui.StartPage" name="Web Browser" tooltip="Flash Builder Start Page"> + <persistable iconpath="platform:/plugin/com.adobe.flexbuilder.ui/icons/fb_app_16.png" style="20" tooltip="Flash Builder Start Page" url="file:/Applications/Adobe Flash Builder 4.5/eclipse/plugins/com.adobe.flexbuilder.ui_4.5.2.320838/welcome/index.html?firstLaunch=false&edition=prem&version=451"/> + </file> + <file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="com.adobe.flexbuilder.editors.actionscript.ActionScriptEditor" name="ComponentDescription.as" tooltip="MainLibrary/src/com/flexcapacitor/radiate/supportClasses/ComponentDescription.as"> + <persistable path="/MainLibrary/src/com/flexcapacitor/radiate/supportClasses/ComponentDescription.as"/> + </file> + <file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="com.adobe.flexbuilder.editors.actionscript.ActionScriptEditor" name="Radiate.as" tooltip="MainLibrary/src/com/flexcapacitor/radiate/Radiate.as"> + <persistable path="/MainLibrary/src/com/flexcapacitor/radiate/Radiate.as"/> + </file> + <file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart" name="crossdomain.xml" tooltip="Radii8/src/crossdomain.xml"> + <persistable path="/Radii8/src/crossdomain.xml"/> + </file> + <file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="com.adobe.flexbuilder.editors.mxml.MXMLEditor" name="Remote.mxml" tooltip="Radii8/src/Remote.mxml"> + <persistable path="/Radii8/src/Remote.mxml"/> + </file> + <file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="com.adobe.flexbuilder.editors.mxml.MXMLEditor" name="RadiateExample.mxml" tooltip="Radii8/src/RadiateExample.mxml"> + <persistable path="/Radii8/src/RadiateExample.mxml"/> + </file> + <file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart" name="MagicScreenPro-app.xml" tooltip="MagicScreenPro/src/MagicScreenPro-app.xml"> + <persistable path="/MagicScreenPro/src/MagicScreenPro-app.xml"/> + </file> + <file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="com.adobe.flexbuilder.editors.actionscript.ActionScriptEditor" name="HistoryEvent.as" tooltip="MainLibrary/src/com/flexcapacitor/radiate/supportClasses/HistoryEvent.as"> + <persistable path="/MainLibrary/src/com/flexcapacitor/radiate/supportClasses/HistoryEvent.as"/> + </file> + <file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.ui.systemExternalEditor" name="Application.png" tooltip="MainLibrary/src/com/flexcapacitor/inspectors/icons/Application.png"> + <persistable path="/MainLibrary/src/com/flexcapacitor/inspectors/icons/Application.png"/> + </file> + <file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.ui.systemExternalEditor" name="ActionScript.png" tooltip="MainLibrary/src/com/flexcapacitor/inspectors/icons/ActionScript.png"> + <persistable path="/MainLibrary/src/com/flexcapacitor/inspectors/icons/ActionScript.png"/> + </file> + </mruList> +</workbench> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/src/examples/workingsets_flex.mxml ---------------------------------------------------------------------- diff --git a/Radii8Designer/src/examples/workingsets_flex.mxml b/Radii8Designer/src/examples/workingsets_flex.mxml new file mode 100644 index 0000000..b0e7bf3 --- /dev/null +++ b/Radii8Designer/src/examples/workingsets_flex.mxml @@ -0,0 +1,32 @@ +<?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. + +--> +<workingSetManager> + <workingSet editPageId="org.eclipse.ui.resourceWorkingSetPage" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1315939991634_2" label="MegatronicSpectrascope" name="MegatronicSpectrascope"> + <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/MobileSparkLibrary" type="4"/> + <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/ReflextionsMobile" type="4"/> + <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/InternalLibrary" type="4"/> + <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/MainLibrary" type="4"/> + <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/CasaLibrary" type="4"/> + <item factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/NBFlexLib4" type="4"/> + </workingSet> + <workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1315922901304_0" label="Window Working Set" name="Aggregate for window 1315922901302"/> + <workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1315939933488_1" label="Window Working Set" name="Aggregate for window 1315939933488"/> + <mruList name="MegatronicSpectrascope"/> +</workingSetManager> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/src/js/Radiate.js ---------------------------------------------------------------------- diff --git a/Radii8Designer/src/js/Radiate.js b/Radii8Designer/src/js/Radiate.js new file mode 100644 index 0000000..eb67b70 --- /dev/null +++ b/Radii8Designer/src/js/Radiate.js @@ -0,0 +1,298 @@ +/** + 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. +*/ + +Radiate = function () {}; + +Radiate.prototype.aceEditor = null; +Radiate.prototype.instance = null; +Radiate.prototype.postFrame = null; +Radiate.prototype.wpPath = "/blog/wp-admin/"; +Radiate.prototype.flashInstance = null; + +Radiate.getInstance = function() { + if (this.instance==null) { + this.instance = new Radiate(); + } + return this.instance; +} + +Radiate.prototype.initialize = function () { + +} + +Radiate.prototype.setFlashInstance = function (flashID) { + var flash = document.getElementById(flashID); + this.flashInstance = flash; + console.log ("Flash instance: " + flash); +} + +/////////////////////////////////// +// POST CODE +/////////////////////////////////// + +Radiate.prototype.createPostIFrame = function () { + + if (document.getElementById("wordpressthing")==null) { + var iframe = document.createElement('iframe'); + iframe.id="wordpressthing"; + iframe.width = "100%"; + iframe.src = "http://www.radii8.com/blog/wp-admin/post.php?post=212&action=edit"; + iframe.style="display:none"; + document.body.appendChild(iframe); + this.postFrame = iframe; + } +} + +Radiate.prototype.addPost = function () { + console.log("add post"); + + if (this.postFrame) { + this.postFrame.onready = this.newPostReadyCallBack; + this.postFrame.onload = this.newPostReadyCallBack; + this.postFrame.src = "http://www.radii8.com/blog/wp-admin/post-new.php"; + } +} + +Radiate.prototype.newPostReadyCallBack = function (event) { + var postFrame = Radiate.instance.postFrame; + var el = postFrame.contentDocument ? postFrame.contentDocument.getElementById('post_ID') : null; + var postID = el ? el.value : null; + + if (postID==null) { + + if (postFrame.contentDocument==null) { + console.log("Could not access frame content. Must be on the same server."); + Radiate.instance.flashInstance.notOnServer(); + } + else if (postFrame.contentWindow.location.href.indexOf("wp-login.php")!=-1) { + console.log("Not logged in"); + Radiate.instance.flashInstance.notLoggedIn(); + } + } + else { + Radiate.instance.flashInstance.addPostCallback(postID); + console.log("New post added"); + } +} + +Radiate.prototype.isPostFrameCreated = function () { + + if (this.postFrame) { + return true; + } + + return false; +} + +Radiate.prototype.editPost = function (postID) { + + if (this.postFrame) { + this.postFrame.onReady = this.editPostReadyCallBack; + this.postFrame.src = "http://www.radii8.com/blog/wp-admin/post.php?post=" + postID + "&action=edit"; + } +} + +Radiate.prototype.editPostReadyCallBack = function () { + console.log("Edit Post Ready: " + this.postFrame.src); +} + +Radiate.prototype.savePostDraft = function () { + if (this.postFrame) { + this.postFrame.contentDocument.getElementById('save-post').click(); + console.log("Draft saved."); + } +} + +Radiate.prototype.previewPost = function () { + if (this.postFrame) { + this.postFrame.contentDocument.getElementById('post-preview').click(); + console.log("Preview post"); + } +} + +Radiate.prototype.publishPost = function () { + if (this.postFrame) { + this.postFrame.contentDocument.getElementById('publish').click(); + console.log("Published"); + } +} + +Radiate.prototype.getPostTitle = function () { + if (this.postFrame) { + var value = this.postFrame.contentDocument.getElementById('title').value; + console.log("Title: " + value); + return value; + } + + return null; +} + +Radiate.prototype.getPostContent = function () { + if (this.postFrame) { + var value = this.postFrame.contentDocument.getElementById('content').value; + console.log("Content: " + value); + return value; + } + + return null; +} + +Radiate.prototype.getPostId = function () { + if (this.postFrame) { + var value = this.postFrame.contentDocument.getElementById('post_ID').value; + console.log("Post ID: " + value); + return value; + } + + return null; +} + + +Radiate.prototype.setPostTitle = function (value) { + if (this.postFrame) { + this.postFrame.contentDocument.getElementById('title').value = value; + console.log("Title set to: " + value); + return true; + } + + return false; +} + + +Radiate.prototype.setPostContent = function () { + if (this.postFrame) { + this.postFrame.contentDocument.getElementById('content').value = value; + console.log("Content set to: " + value); + return true; + } + + return false; +} + +Radiate.prototype.showHidePostFrame = function () { + if (this.postFrame) { + this.postFrame.style.display = this.postFrame.style.display=='none' ? 'block' : 'none'; + console.log("Post frame display: " + postFrame.style.display); + } +} + + + +/////////////////////////////////// +// ACE EDITOR CODE +/////////////////////////////////// + +Radiate.prototype.createEditor = function (editorName, flashID) { + ace_editor = ace.edit(editorName); + ace_editor.setTheme("ace/theme/crimson_editor"); + ace_editor.getSession().setMode("ace/mode/html"); + ace_editor.setShowFoldWidgets(false); + ace_editor.setShowPrintMargin(false); + ace_editor.renderer.setShowGutter(false); + ace_editor.getSession().setUseWrapMode(true); + + // in firefox on mac editor stops working after placing cursor + // in different location with mouse (second time) + // clicking on flash object then clicking back into editor + // allows typing again until placing cursor in another location + // and you must click the flash object again. works in safari. + //ace_editor.onFocus = function() { ace_editor.setReadOnly(false);}; + + /* + ace_editor.__defineGetter__("$readOnly", function(){return false}) + ace_editor.__defineSetter__("$readOnly", function(val){ + console.log("read only changed!!!"); + }) + ace_editor.setReadOnly(false); + ace_editor.setReadOnly(true);*/ + + ace_editor.setReadOnly(false); + + ace_editor.getSession().on('change', function(e) { + editorChange(flashID); + }); + + //ace_editor.getSession().selection.on('changeCursor', function(e) { + // cursorChange(flashID); + //}); + + //ace_editor.renderer.$keepTextAreaAtCursor = false; + + return "created"; +} + +Radiate.prototype.setEditorText = function (value) { + ace_editor.setValue(value); + ace_editor.selection.clearSelection(); + ace_editor.navigateFileStart(); + ace_editor.setReadOnly(false); + return value; +} + +Radiate.prototype.getEditorText = function () { + return ace_editor.getValue(); +} + +Radiate.prototype.editorChange = function (flashID) { + console.log("text changed"); + var value = ace_editor.getValue(); + var flash = document.getElementById(flashID); + ace_editor.setReadOnly(false); + flash.editorChange(value); +} + +Radiate.prototype.cursorChange = function (flashID) { + console.log("cursor changed"); + ace_editor.setReadOnly(false); + var flash = document.getElementById(flashID); + flash.cursorChange(); +} + +Radiate.prototype.wordWrapChange = function (flashID, enabled) { + console.log("word wrap changed"); + ace_editor.getSession().setUseWrapMode(enabled); + //var flash = document.getElementById(flashID); + //flash.wordWrapChange(); +} + +Radiate.prototype.resizeEditor = function () { + console.log("editor resized"); + ace_editor.resize(); +} + +/////////////////////////////////// +// ASK BEFORE NAVIGATION +/////////////////////////////////// + +Radiate.prototype.beforeUnloadHandler = function () { + var testing = window.location.search.substr(1).indexOf("debug=true"); + + if (testing==-1) { + return "Are you sure you want to navigate away?"; + } + else { + //return false; + } +} + +Radiate.prototype.onloadHandler = function () { + window.onbeforeunload = beforeUnloadHandler; +} + + + + http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/src/js/StoreLogin.js ---------------------------------------------------------------------- diff --git a/Radii8Designer/src/js/StoreLogin.js b/Radii8Designer/src/js/StoreLogin.js new file mode 100644 index 0000000..0790c35 --- /dev/null +++ b/Radii8Designer/src/js/StoreLogin.js @@ -0,0 +1,132 @@ +/** + 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. +*/ + +//TODO: Refactor this into a StoreLogin class + +// removed code until license is found +var DocumentManager; // basically this gets an element by id and adds or removes elements +var EventManager; // this adds event listeners to elements + +function resizeApplication(id, value) { + var el = DocumentManager.get(id); + el.style.height = value; + return true; +} + +function insertForm(id) { + var form = document.createElement('form'); + var textinput = document.createElement('input'); + var password = document.createElement('input'); + + form.id = id; + textinput.id = "username"; + password.id = "password"; + password.type = "password"; + + form.appendChild(textinput); + form.appendChild(password); + DocumentManager.add(form); + + return true; +} + +function setFormValues(username, password) { + var usernameInput = DocumentManager.get('username'); + var passwordInput = DocumentManager.get('password'); + usernameInput.value = username; + passwordInput.value = password; + return true; +} + +function getFormValues() { + var usernameInput = DocumentManager.get('username'); + var passwordInput = DocumentManager.get('password'); + return [usernameInput.value, passwordInput.value]; +} + +function clearFormValues() { + var usernameInput = DocumentManager.get('username'); + var passwordInput = DocumentManager.get('password'); + usernameInput.value = ""; + passwordInput.value = ""; + return true; +} + +function getUsername() { + var usernameInput = DocumentManager.get('username'); + return usernameInput.value; +} + +function getPassword() { + var passwordInput = DocumentManager.get('password'); + return passwordInput.value; +} + +function submitForm(id) { + var form = DocumentManager.get(id); + //form.action = window.location.href; + form.submit(); + form.submit();// chrome + return true; +} + +function noDirectLogin(){ + return false; +} + +function checkForPassword(username) { + var usernameInput = DocumentManager.get('username'); + var passwordInput = DocumentManager.get('password'); + usernameInput.value = username; + if (username!="") { + usernameInput.focus(); + usernameInput.blur(); + } + else { + passwordInput.value = ""; + } + //passwordInput.focus(); + return passwordInput.value; +} + +function setFocusOnFlash(id) { + var application = DocumentManager.get(id); + application.tabIndex = 0; + application.focus(); + return true; +} + +function formExists(id) { + var form = DocumentManager.get(id); + return form!=null; +} + +function showForm(id) { + var form = DocumentManager.get(id); + form.style.display = "block"; + return true; +} + +function hideForm(id) { + var form = DocumentManager.get(id); + form.style.display = "none"; + return true; +} + +function scriptConfirmation() { + return true; +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/src/styles.css ---------------------------------------------------------------------- diff --git a/Radii8Designer/src/styles.css b/Radii8Designer/src/styles.css new file mode 100644 index 0000000..aff0443 --- /dev/null +++ b/Radii8Designer/src/styles.css @@ -0,0 +1,164 @@ +/* + * + * 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. + * + */ +/* CSS file */ +@namespace s "library://ns.adobe.com/flex/spark"; +@namespace mx "library://ns.adobe.com/flex/mx"; +@namespace local "*"; +@namespace skins "com.flexcapacitor.skins.*"; +@namespace controls "com.flexcapacitor.controls.*"; + +s|Scroller +{ + skinClass: ClassReference("com.flexcapacitor.skins.MinimalScrollerSkin"); +} + +global { + fontFamily: Arial; + selectionColor: #d8d8d8; + rollOverColor: #d8d8d8; + caretColor: #d8d8d8; +} + +mx|ToolTip { + fontSize: 12; + color: #585858; + backgroundColor: #FCFCFC; + cornerRadius: 3; +} + + +.constraintStyles { + fontSize:12; +} + +.inputStyles { + fontSize: 12; + focusAlpha : 0; + borderColor: #b8b8b8; +} + +.stateLabel { + color: #989898; + fontSize: 12; +} + +.textInputStyles { + fontSize: 18; +} + +.loginLabel { + color: #686868; +} + +s|SkinnableTextBase:normalWithPrompt { + fontStyle:normal; + color: #CCCCCC; +} + +s|TextBase:normalWithPrompt { + fontStyle:normal; + color: #CCCCCC; +} + +s|TextInput:normalWithPrompt { + fontStyle:normal; + color: #CCCCCC; + borderColor: #b8b8b8; +} + +controls|SearchTextInput:normalWithPrompt { + fontStyle:normal; + color: #b8b8b8; +} + + +mx|MenuBar#mainMenuBar { + /*chromeColor: #333333; + borderVisible: true; + borderColor: #000000; + borderAlpha: 0; + borderStyle: solid; + borderWeight: 2; + color: #FFFFFF; + contentBackgroundColor: #333333; + contentBackgroundAlpha: 0.8; + rollOverColor: #AAAAAA; + itemRollOverColor: #FF0000;*/ + /* changes background color at top level*/ + backgroundSkin: ClassReference("com.flexcapacitor.skins.MenuBarButtonSkin"); + /* changes background HOVER color at top level of menu bar */ + itemSkin: ClassReference("com.flexcapacitor.skins.MenuItemSkin"); + color: #EFEFEF; + rollOverColor: #AAAAAA; + itemRollOverColor: #FF0000; +} + + mx|MenuItemRenderer{ + color:#585858; +} + +s|Panel { + skinClass: ClassReference("com.flexcapacitor.skins.PanelSkin"); + showHeader: true; + backgroundColor: #FFFFFF; +/* headerBackgroundColor: #a71717;*/ + headerBackgroundColor: #444444; + headerBackgroundAlpha: 1; + headerTextColor: #ffffff; + headerDividerColor: #000000; + headerDividerWeight: 2; + cornerRadius: 4; + borderVisible: true; + borderWeight: 2; + borderAlpha: 1; + borderColor: #181818; +} +/* +s|Panel skins|PanelSkin#titleDisplay { + backgroundColor: #00ff00; + backgroundAlpha: 1; +}*/ + +mx|TabNavigator { + +} + +mx|TabNavigator { + tabStyleName: tabStyle; + /*borderStyle: inset;*/ + tabOffset: 0; + /*border-color: #FF0000;*/ +} + +mx|TabNavigator .tabStyle { + fontFamily: "Verdana"; + fontSize: 10; + cornerRadius: 10; +} + +/* used to set the label width of the dynamic property inspector panels */ +.inspectablePanel { + labelWidth: 132; + gap: 12; + focusColor: #CCCCCC; +} + +.inspectablePanelLabel { + textAlign: right; +} http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/todo.txt ---------------------------------------------------------------------- diff --git a/Radii8Designer/todo.txt b/Radii8Designer/todo.txt new file mode 100644 index 0000000..c2d21ec --- /dev/null +++ b/Radii8Designer/todo.txt @@ -0,0 +1,22 @@ + +Jul 8 +- fork json-api in github, apply local changes and remove folder from project +- fix when document is sometimes empty. see radiate.openDocument() +- property inspector doesn't list all properties and styles after a time +- add tests for updated json api apis + +Apr 24 +- add code to allow event listeners to be removed on add -X april 25 +- remove event listeners of components dragged to the stage - +- create document object model (AST like model) +- store property changes to it +- create project in wordpress +- retrieve project in wordpress +- retrieve projects in wordpress +- create mxml document export +- save mxml to wordpress +- retrieve mxml from wordpress +- retrieve assets from wordpress +- set explicit size (prompt) vs actual size (text) in properties panel +- add clear button to size and properties in properties panel +- make property value grid easier to edit values \ No newline at end of file