| FYI: Converting an Application to an Application Fragment [message #19259] | 
Tue, 23 September 2008 13:04  | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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.
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.04721 seconds