Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Voicetools » FYI: Converting an Application to an Application Fragment
FYI: Converting an Application to an Application Fragment [message #19259] Tue, 23 September 2008 17:04
Randy Childers is currently offline Randy ChildersFriend
Messages: 121
Registered: July 2009
Senior Member
This, at the moment, is a manual process.

Before beginning, make a backup copy of your project!

1) I recommend deleting any ³End Call² blocks from the application prior to
the conversion. Save the project, close Eclipse.

2) .project changes

[original application file]
<buildSpec> <buildCommand>
<name> org.eclipse.vtp.desktop.projects.core.VoiceApplicationBuilde r </name>
<arguments> </arguments> </buildCommand> </buildSpec> <natures>
<nature> org.eclipse.vtp.desktop.projects.core.VoiceApplicationNature </nature
> </natures>
[changes to the file]
<buildSpec> <buildCommand>
<name> org.eclipse.vtp.desktop.projects.core.VoiceApplicationFragme ntBuilder <
/name> <arguments> </arguments> </buildCommand> </buildSpec> <natures>
<nature> org.eclipse.vtp.desktop.projects.core.VoiceApplicationFragme ntNature
</nature> </natures>

3) Rename CallDesign.xml ---> CallDesign.frag

4) Edit the CallDesign.frag document

[xml element renames]
<application-definition> ---> <fragment-definition>
<application> ---> <fragment>
(don¹t forget to change the end tags as well, e.g. </application> to
</fragment>)

[begin block changes]
This will be the first primitive element in the design document.
Original application file:

<primitive-element id="cbb0fc79382a4f039e6f8eb5fef8b1cd" name="Begin"
type="org.eclipse.vtp.desktop.editors.core.appbegin"> <bindings
xmlns="http://eclipse.org/vtp/xml/configuration/attacheddata" />
<custom-config xmlns="http://www.eclipse.org/vtp/namespaces/config">
<declarations>
<variable multiplicity="0" name="IncomingVar" type="String" value="no"
value-type="0" /> </declarations> </custom-config> </primitive-element>

------------------------------------------------------------ ----------------

Changes to the file:

<primitive-element id="cbb0fc79382a4f039e6f8eb5fef8b1cd" name="Begin
Fragment" type="org.eclipse.vtp.desktop.editors.core.beginFragment">
<bindings xmlns="http://eclipse.org/vtp/xml/configuration/attacheddata" />
<custom-config xmlns="http://www.eclipse.org/vtp/namespaces/config">
<declarations> <variable multiplicity="0" name="IncomingVar" type="String"
value="no" value-type="0" /> </declarations> </custom-config>
</primitive-element>

5) Re-launch eclipse and the project should now be listed as a fragment.
Previous Topic:Custom module development for vtp 3.0
Next Topic:openvxml vtp 3.0. I need help
Goto Forum:
  


Current Time: Mon Dec 30 17:58:58 GMT 2024

Powered by FUDForum. Page generated in 0.03432 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top