Commit 54c57961 authored by De Viry Guilhem's avatar De Viry Guilhem

Ajout d'un outil de création de message, légère modif de présentation des textes

parent a965badc
......@@ -20,7 +20,7 @@
</style>
</edgeMappings>
<toolSections name="New">
<ownedTools xsi:type="tool:NodeCreationDescription" name="stateCreator" label="New State" forceRefresh="true" nodeMappings="//@ownedViewpoints[name='FSMViewpoint']/@ownedRepresentations[name='FSMDiagram']/@defaultLayer/@nodeMappings[name='StateNode']" iconPath="\fr.supelec.plong9.fsm.edit\icons\full\obj16\State.gif">
<ownedTools xsi:type="tool:NodeCreationDescription" name="stateCreator" label="New State" forceRefresh="true" nodeMappings="//@ownedViewpoints[name='FSMViewpoint']/@ownedRepresentations[name='FSMDiagram']/@defaultLayer/@nodeMappings[name='StateNode']" iconPath="/fr.supelec.plong9.fsm.edit/icons/full/obj16/State.gif">
<variable name="container"/>
<viewVariable name="containerView"/>
<initialOperation>
......@@ -29,7 +29,7 @@
</firstModelOperations>
</initialOperation>
</ownedTools>
<ownedTools xsi:type="tool:EdgeCreationDescription" name="transitionCreator" label="New Transition" edgeMappings="//@ownedViewpoints[name='FSMViewpoint']/@ownedRepresentations[name='FSMDiagram']/@defaultLayer/@edgeMappings[name='TransitionEdge']" iconPath="\fr.supelec.plong9.fsm.edit\icons\full\obj16\Transition.gif">
<ownedTools xsi:type="tool:EdgeCreationDescription" name="transitionCreator" label="New Transition" edgeMappings="//@ownedViewpoints[name='FSMViewpoint']/@ownedRepresentations[name='FSMDiagram']/@defaultLayer/@edgeMappings[name='TransitionEdge']" iconPath="/fr.supelec.plong9.fsm.edit/icons/full/obj16/Transition.gif">
<sourceVariable name="source"/>
<targetVariable name="target"/>
<sourceViewVariable name="sourceView"/>
......@@ -44,31 +44,32 @@
</firstModelOperations>
</initialOperation>
</ownedTools>
<ownedTools xsi:type="tool_1:ToolDescription" name="NewEvent" label="New Event" iconPath="\fr.supelec.plong9.fsm.edit\icons\full\obj16\Event.gif">
<ownedTools xsi:type="tool_1:ToolDescription" name="NewEvent" label="New Event" iconPath="/fr.supelec.plong9.fsm.edit/icons/full/obj16/Event.gif">
<element name="element"/>
<elementView name="elementView"/>
<initialOperation>
<firstModelOperations xsi:type="tool_1:ChangeContext" browseExpression="var:container">
<subModelOperations xsi:type="tool_1:CreateInstance" typeName="fsm::Event" referenceName="ownedEvents"/>
</firstModelOperations>
<firstModelOperations xsi:type="tool_1:CreateInstance" typeName="fsm::Event" referenceName="ownedEvents"/>
</initialOperation>
</ownedTools>
<ownedTools xsi:type="tool_1:ToolDescription" name="NewAction" label="New Action" iconPath="\fr.supelec.plong9.fsm.edit\icons\full\obj16\Action.gif">
<ownedTools xsi:type="tool_1:ToolDescription" name="NewAction" label="New Action" iconPath="/fr.supelec.plong9.fsm.edit/icons/full/obj16/Action.gif">
<element name="element"/>
<elementView name="elementView"/>
<initialOperation>
<firstModelOperations xsi:type="tool_1:ChangeContext" browseExpression="var:container">
<subModelOperations xsi:type="tool_1:CreateInstance" typeName="fsm::Action" referenceName="ownedActions"/>
</firstModelOperations>
<firstModelOperations xsi:type="tool_1:CreateInstance" typeName="fsm::Action" referenceName="ownedActions"/>
</initialOperation>
</ownedTools>
<ownedTools xsi:type="tool_1:ToolDescription" name="NewGuard" label="New Guard" forceRefresh="true" iconPath="\fr.supelec.plong9.fsm.edit\icons\full\obj16\Guard.gif">
<ownedTools xsi:type="tool_1:ToolDescription" name="NewGuard" label="New Guard" forceRefresh="true" iconPath="/fr.supelec.plong9.fsm.edit/icons/full/obj16/Guard.gif">
<element name="element"/>
<elementView name="elementView"/>
<initialOperation>
<firstModelOperations xsi:type="tool_1:ChangeContext" browseExpression="var:container">
<subModelOperations xsi:type="tool_1:CreateInstance" typeName="fsm::Guard" referenceName="ownedGuards"/>
</firstModelOperations>
<firstModelOperations xsi:type="tool_1:CreateInstance" typeName="fsm::Guard" referenceName="ownedGuards"/>
</initialOperation>
</ownedTools>
<ownedTools xsi:type="tool_1:ToolDescription" name="NewMessage" label="New Message" forceRefresh="true">
<element name="element"/>
<elementView name="elementView"/>
<initialOperation>
<firstModelOperations xsi:type="tool_1:CreateInstance" typeName="fsm::Message" referenceName="ownedMessages"/>
</initialOperation>
</ownedTools>
</toolSections>
......@@ -77,7 +78,7 @@
<containerMappings name="EAGContainer" label="Event/Action/Guard Container" semanticCandidatesExpression="var:self" synchronizationLock="true" domainClass="fsm::FSM" childrenPresentation="HorizontalStack">
<subContainerMappings name="EventContainer" label="Event Container" semanticCandidatesExpression="var:self" synchronizationLock="true" domainClass="fsm::FSM" childrenPresentation="List">
<subNodeMappings name="eventNode" label="Event Node" domainClass="fsm::Event">
<style xsi:type="style:SquareDescription" labelSize="12" labelPosition="node" resizeKind="NSEW">
<style xsi:type="style:SquareDescription" labelSize="12" labelAlignment="LEFT" labelPosition="node" resizeKind="NSEW">
<borderColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/>
<labelColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/>
<color xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='white']"/>
......@@ -92,7 +93,7 @@
</subContainerMappings>
<subContainerMappings name="ActionContainer" label="Action Container" semanticCandidatesExpression="var:self" synchronizationLock="true" domainClass="fsm::FSM" childrenPresentation="List">
<subNodeMappings name="ActionNode" label="ActionNode" domainClass="fsm::Action">
<style xsi:type="style:SquareDescription" labelSize="12" labelPosition="node" resizeKind="NSEW">
<style xsi:type="style:SquareDescription" labelSize="12" labelAlignment="LEFT" labelPosition="node" resizeKind="NSEW">
<borderColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/>
<labelColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/>
<color xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='white']"/>
......@@ -107,7 +108,7 @@
</subContainerMappings>
<subContainerMappings name="GuardContainer" label="Guard Container" semanticCandidatesExpression="var:self" synchronizationLock="true" domainClass="fsm::FSM" childrenPresentation="List">
<subNodeMappings name="GuardNode" label="Guard Node" domainClass="fsm::Guard">
<style xsi:type="style:SquareDescription" labelSize="12" labelPosition="node" resizeKind="NSEW">
<style xsi:type="style:SquareDescription" labelSize="12" labelAlignment="LEFT" labelPosition="node" resizeKind="NSEW">
<borderColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/>
<labelColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/>
<color xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='white']"/>
......@@ -131,7 +132,7 @@
<additionalLayers name="MessageLayer" label="Message Layer" activeByDefault="true">
<containerMappings name="MessageContainer" label="Message Container" semanticCandidatesExpression="var:self" domainClass="fsm::FSM" childrenPresentation="List">
<subNodeMappings name="MessageNode" label="Message Node" domainClass="fsm::Message">
<style xsi:type="style:SquareDescription" labelSize="12" labelExpression="[self.name + ' -> ' + self.event.name/]" labelPosition="node" resizeKind="NSEW">
<style xsi:type="style:SquareDescription" labelSize="12" labelExpression="[self.name + ' -> ' + self.event.name/]" labelAlignment="LEFT" labelPosition="node" resizeKind="NSEW">
<borderColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/>
<labelColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/>
<color xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='gray']"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment