plugins/org.symbian.tools.wrttools/plugin.xml
author Eugene Ostroukhov <eugeneo@symbian.org>
Thu, 02 Sep 2010 16:31:16 -0700
changeset 485 df4f55e8569e
parent 482 2973198ae2a9
child 490 17d65127bce4
permissions -rw-r--r--
Fixed copyright headers and removed unneeded WRT mentions from TMW code
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
ddc9cde0ba07 Initial version of WRT Tools Plugin.
TasneemS@US-TASNEEMS
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
ddc9cde0ba07 Initial version of WRT Tools Plugin.
TasneemS@US-TASNEEMS
parents:
diff changeset
     2
<?eclipse version="3.4"?>
ddc9cde0ba07 Initial version of WRT Tools Plugin.
TasneemS@US-TASNEEMS
parents:
diff changeset
     3
<plugin>
ddc9cde0ba07 Initial version of WRT Tools Plugin.
TasneemS@US-TASNEEMS
parents:
diff changeset
     4
50
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
     5
<!-- Generic Project Builder and Project Natures  -->		
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
     6
 	
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
     7
<!-- Widget Project Nature -->	
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
     8
 <extension
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
     9
       id="WidgetProjectNature"
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    10
       point="org.eclipse.core.resources.natures">
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    11
    <runtime>
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    12
       <run class="org.symbian.tools.wrttools.WidgetProjectNature"/>
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    13
    </runtime>
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    14
 </extension> 
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    15
 
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    16
<!-- Widget Project Nature Images -->
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    17
        <extension
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    18
              point="org.eclipse.ui.ide.projectNatureImages">
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    19
           <image
136
058151c7f9e6 Fixed bug 1865 New warning in FlickrParser.js. Fixed 1871 About Web Runtime Toolkit IDE Details. Added new WRT icons. More refinements to come.
tasneems@symbian.org
parents: 129
diff changeset
    20
                 icon="icons/WRT_main_16.png"
50
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    21
                 id="org.symbian.tools.wrttools.natureImage"
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    22
                 natureId="org.symbian.tools.wrttools.WidgetProjectNature">
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    23
           </image>
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    24
        </extension>
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    25
        
145
19985c154f5c Merged. Added deployment. Fixed developer experience. Added about.ini, about.properties.
tasneems@symbian.org
parents: 141
diff changeset
    26
<!-- Web Runtime Preferences --> 
19985c154f5c Merged. Added deployment. Fixed developer experience. Added about.ini, about.properties.
tasneems@symbian.org
parents: 141
diff changeset
    27
 <extension
19985c154f5c Merged. Added deployment. Fixed developer experience. Added about.ini, about.properties.
tasneems@symbian.org
parents: 141
diff changeset
    28
    point="org.eclipse.core.runtime.preferences">
190
13a34213b146 Fixed Bug 1953 - Import File Browse Doesn't remember last directory
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 183
diff changeset
    29
    <initializer
13a34213b146 Fixed Bug 1953 - Import File Browse Doesn't remember last directory
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 183
diff changeset
    30
          class="org.symbian.tools.wrttools.core.WrtIdeCorePreferences">
13a34213b146 Fixed Bug 1953 - Import File Browse Doesn't remember last directory
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 183
diff changeset
    31
    </initializer>
145
19985c154f5c Merged. Added deployment. Fixed developer experience. Added about.ini, about.properties.
tasneems@symbian.org
parents: 141
diff changeset
    32
 </extension>
50
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    33
74
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    34
<!-- WRT Tool Integration (Package, Validate, Include, Exclude Settings)-->
366
715f288b552a Bug 2779 - Better naming for Application templates
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 354
diff changeset
    35
 <extension	
50
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    36
          point="org.eclipse.ui.popupMenus">
145
19985c154f5c Merged. Added deployment. Fixed developer experience. Added about.ini, about.properties.
tasneems@symbian.org
parents: 141
diff changeset
    37
      <objectContribution
74
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    38
            objectClass="org.eclipse.core.resources.IResource"            
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    39
            id="org.symbian.tools.wrttools.widget.wrttool.packageoptions">
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    40
         <visibility>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    41
            <not>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    42
               <or>
248
039260aebcb6 Fixed 2163: Cannot include file into WGZ archive
tasneems@symbian.org
parents: 247
diff changeset
    43
               <objectState name="persistentProperty" value="org.symbian.tools.wrttools.core.packager.exclude"/>
74
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    44
			   <objectState name="extension" value="plist"/>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    45
			   <objectClass name="org.eclipse.core.resources.IProject"/>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    46
			   </or>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    47
            </not>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    48
         </visibility>
145
19985c154f5c Merged. Added deployment. Fixed developer experience. Added about.ini, about.properties.
tasneems@symbian.org
parents: 141
diff changeset
    49
     	 <filter
74
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    50
         	name="projectNature"
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    51
         	value="org.symbian.tools.wrttools.WidgetProjectNature"/>           
145
19985c154f5c Merged. Added deployment. Fixed developer experience. Added about.ini, about.properties.
tasneems@symbian.org
parents: 141
diff changeset
    52
         <action
74
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    53
             class="org.symbian.tools.wrttools.core.packager.ExcludeFileAction"
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    54
             icon="icons/exclude_archive.gif"
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    55
             id="org.symbian.tools.wrttools.widget.wrttool.packageoptions.ExcludeFileAction"
409
cc687be9a816 WRT references were cleared from the UI
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 401
diff changeset
    56
             label="Exclude From Archive"
74
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    57
             menubarPath="org.symbian.tools.wrttools.contextMenuGroupMarker"> 
145
19985c154f5c Merged. Added deployment. Fixed developer experience. Added about.ini, about.properties.
tasneems@symbian.org
parents: 141
diff changeset
    58
         </action>  
19985c154f5c Merged. Added deployment. Fixed developer experience. Added about.ini, about.properties.
tasneems@symbian.org
parents: 141
diff changeset
    59
      </objectContribution>    
74
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    60
      <objectContribution
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    61
            objectClass="org.eclipse.core.resources.IResource"            
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    62
            id="org.symbian.tools.wrttools.widget.wrttool.packageoptions">
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    63
      <visibility>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    64
        <and>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    65
	        <not>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    66
	        	<objectState name="extension" value="wgz"/>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    67
	        </not>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    68
	        <and>
248
039260aebcb6 Fixed 2163: Cannot include file into WGZ archive
tasneems@symbian.org
parents: 247
diff changeset
    69
	        	<objectState name="persistentProperty" value="org.symbian.tools.wrttools.core.packager.exclude"/>
74
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    70
	        	<objectState name="projectNature" value="org.symbian.tools.wrttools.WidgetProjectNature"/>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    71
	        </and>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    72
        </and>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    73
       </visibility>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    74
       <action
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    75
             class="org.symbian.tools.wrttools.core.packager.IncludeFileAction"
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    76
             icon="icons/include_archive.gif"
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    77
             id="org.symbian.tools.wrttools.widget.wrttool.packageoptions.IncludeFileAction"
409
cc687be9a816 WRT references were cleared from the UI
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 401
diff changeset
    78
             label="Include in Archive"
74
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    79
             menubarPath="org.symbian.tools.wrttools.contextMenuGroupMarker"> 
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    80
      </action>  
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    81
    </objectContribution>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    82
   </extension>  
50
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    83
375
d1edab2715d4 plugin.xml cleanup
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 374
diff changeset
    84
<!-- CSS Validator -->
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
    85
	<extension id="org.symbian.tools.wrttools.core.cssvalidator"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
    86
		name="CSS Validator" point="org.eclipse.wst.validation.validatorV2">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
    87
		<validator build="true"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
    88
			class="org.symbian.tools.wrttools.core.internal.validation.CssBuildValidator"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
    89
			manual="true" markerId="org.symbian.tools.wrttools.core.cssValidationMarker"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
    90
			version="0.0.1">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
    91
			<include>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
    92
				<rules>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
    93
					<contentType exactMatch="false"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
    94
						id="org.eclipse.wst.css.core.csssource">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
    95
					</contentType>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
    96
				</rules>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
    97
			</include>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
    98
		</validator>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
    99
	</extension>
50
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
   100
	 
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
   101
	
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
   102
<!-- WRT Project Templates -->
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
   103
	
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
   104
<!-- Import Wizard -->
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   105
	<extension point="org.eclipse.ui.importWizards">
481
e908ec135fa1 Application import wizard was refactored into extensible code
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 480
diff changeset
   106
		<wizard category="org.symbian.tools.tmw.import"
203
bb3a18c4e037 Refactoring, some messages were updated
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 200
diff changeset
   107
			class="org.symbian.tools.wrttools.wizards.projectimport.WrtProjectsImportWizard"
bb3a18c4e037 Refactoring, some messages were updated
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 200
diff changeset
   108
			icon="icons/import_aptana_project.gif" id="org.symbian.tools.wrttools.import.projectImport"
409
cc687be9a816 WRT references were cleared from the UI
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 401
diff changeset
   109
			name="Existing Mobile Web Projects into Workspace">
203
bb3a18c4e037 Refactoring, some messages were updated
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 200
diff changeset
   110
     <description>
bb3a18c4e037 Refactoring, some messages were updated
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 200
diff changeset
   111
        Import WRT project created in Aptana, Adobe Dreamweaver or WRT IDE
bb3a18c4e037 Refactoring, some messages were updated
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 200
diff changeset
   112
     </description>
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   113
		</wizard>
481
e908ec135fa1 Application import wizard was refactored into extensible code
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 480
diff changeset
   114
	
84
b24e6a27768d Integrating WRTKit libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 74
diff changeset
   115
    </extension>
50
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
   116
	
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
   117
<!-- WRT Content Descriptor (.plist) file -->
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   118
	<extension point="org.eclipse.core.contenttype.contentTypes">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   119
		<content-type base-type="org.eclipse.core.runtime.xml"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   120
			file-extensions="plist" id="org.symbian.tools.wrttools.contenttype.plist"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   121
			name="WebRuntime Descriptor File" priority="normal">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   122
		</content-type>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   123
	</extension>
50
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
   124
	
84
b24e6a27768d Integrating WRTKit libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 74
diff changeset
   125
 <extension
b24e6a27768d Integrating WRTKit libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 74
diff changeset
   126
       point="org.eclipse.wst.jsdt.core.JsGlobalScopeContainerInitializer">
b24e6a27768d Integrating WRTKit libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 74
diff changeset
   127
    <JsGlobalScopeContainerInitializer
216
914d053d42b1 Bug 2070 - added code completion for browser objects (window, navigator, etc) and core WRT objects (widget, device)
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 208
diff changeset
   128
       class="org.symbian.tools.wrttools.core.libraries.WrtLibInitializer"
914d053d42b1 Bug 2070 - added code completion for browser objects (window, navigator, etc) and core WRT objects (widget, device)
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 208
diff changeset
   129
       id="org.symbian.wrt">
914d053d42b1 Bug 2070 - added code completion for browser objects (window, navigator, etc) and core WRT objects (widget, device)
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 208
diff changeset
   130
    </JsGlobalScopeContainerInitializer>
84
b24e6a27768d Integrating WRTKit libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 74
diff changeset
   131
 </extension>
b24e6a27768d Integrating WRTKit libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 74
diff changeset
   132
 <extension
b24e6a27768d Integrating WRTKit libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 74
diff changeset
   133
        point="org.eclipse.wst.jsdt.ui.JsGlobalScopeContainerPage">
b24e6a27768d Integrating WRTKit libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 74
diff changeset
   134
    <JsGlobalScopeContainerPage
397
e5346aff014d Change from Webruntime to Tools for Mobile Web and WRT to TMW - bug 2899
Paul Beusterien <paulb@symbian.org>
parents: 390
diff changeset
   135
            name="Tools for Mobile Web"
216
914d053d42b1 Bug 2070 - added code completion for browser objects (window, navigator, etc) and core WRT objects (widget, device)
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 208
diff changeset
   136
            class="org.symbian.tools.wrttools.wizards.WrtLibraryWizardPage"
914d053d42b1 Bug 2070 - added code completion for browser objects (window, navigator, etc) and core WRT objects (widget, device)
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 208
diff changeset
   137
            id="org.symbian.wrt">
914d053d42b1 Bug 2070 - added code completion for browser objects (window, navigator, etc) and core WRT objects (widget, device)
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 208
diff changeset
   138
    </JsGlobalScopeContainerPage>    
84
b24e6a27768d Integrating WRTKit libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 74
diff changeset
   139
  </extension>
98
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   140
 <extension
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   141
       id="org.symbian.tools.wrttools.core.plistvalidator"
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   142
       name="WRT Application Descriptor Validator"
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   143
       point="org.eclipse.wst.validation.validatorV2">
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   144
    <validator
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   145
          build="true"
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   146
          class="org.symbian.tools.wrttools.core.internal.validation.WrtApplicationValidator"
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   147
          manual="true"
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   148
          markerId="org.symbian.tools.wrttools.core.cssValidationMarker"
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   149
          version="0.0.1">
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   150
       <include>
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   151
          <rules>
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   152
             <projectNature
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   153
                   id="org.symbian.tools.wrttools.WidgetProjectNature">
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   154
             </projectNature>
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   155
          </rules>
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   156
       </include>
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   157
    </validator>
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   158
 </extension>
183
c39bca475a90 Fixed Bug 1964 - Deployment preference page is in the wrong category
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 168
diff changeset
   159
 <extension
c39bca475a90 Fixed Bug 1964 - Deployment preference page is in the wrong category
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 168
diff changeset
   160
       point="org.eclipse.ui.keywords">
c39bca475a90 Fixed Bug 1964 - Deployment preference page is in the wrong category
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 168
diff changeset
   161
    <keyword
c39bca475a90 Fixed Bug 1964 - Deployment preference page is in the wrong category
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 168
diff changeset
   162
          id="org.symbian.tools.wrttools.wrtwords"
237
63858673b918 Bug 2086 - Review Run/Debug preferences
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 218
diff changeset
   163
          label="wrt, webruntime, web runtime, cwrt widget">
183
c39bca475a90 Fixed Bug 1964 - Deployment preference page is in the wrong category
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 168
diff changeset
   164
    </keyword>
c39bca475a90 Fixed Bug 1964 - Deployment preference page is in the wrong category
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 168
diff changeset
   165
 </extension>
208
4cb21ecdda83 Bug 2073 - On restart of WRT tools - its hard to know which project the open file is in
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 205
diff changeset
   166
 <extension
218
d6dd3cce46a6 Bug 2070 - Code completion: Add support for code completion for built in global objects
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 216
diff changeset
   167
       id="org.symbian.tools.wrttools.platformservices"
d6dd3cce46a6 Bug 2070 - Code completion: Add support for code completion for built in global objects
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 216
diff changeset
   168
       name="Platform Services Inferrence Support"
d6dd3cce46a6 Bug 2070 - Code completion: Add support for code completion for built in global objects
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 216
diff changeset
   169
       point="org.eclipse.wst.jsdt.core.inferrenceSupport">
d6dd3cce46a6 Bug 2070 - Code completion: Add support for code completion for built in global objects
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 216
diff changeset
   170
    <inferenceProvider
d6dd3cce46a6 Bug 2070 - Code completion: Add support for code completion for built in global objects
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 216
diff changeset
   171
          class="org.symbian.tools.wrttools.core.libraries.PlatformServicesTypeProvider">
d6dd3cce46a6 Bug 2070 - Code completion: Add support for code completion for built in global objects
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 216
diff changeset
   172
    </inferenceProvider>
d6dd3cce46a6 Bug 2070 - Code completion: Add support for code completion for built in global objects
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 216
diff changeset
   173
 </extension>
263
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   174
 <extension
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   175
       point="org.eclipse.ui.menus">
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   176
    <menuContribution
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   177
          locationURI="toolbar:org.eclipse.ui.main.toolbar">
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   178
       <toolbar
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   179
             id="org.symbian.tools.wrttools">
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   180
          <command
485
df4f55e8569e Fixed copyright headers and removed unneeded WRT mentions from TMW code
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 482
diff changeset
   181
                commandId="org.symbian.tools.tmw.commands.deploy"
263
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   182
                icon="icons/deploy_widget.gif"
281
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   183
                id="org.symbian.tools.wrttools.toolbars.deploy">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   184
          </command>
263
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   185
       </toolbar>
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   186
    </menuContribution>
281
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   187
    <menuContribution
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   188
          locationURI="menu:project?after=additions">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   189
       <separator
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   190
             name="org.symbian.tools.wrttools.beginwert"
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   191
             visible="true">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   192
       </separator>
310
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   193
       <separator
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   194
             name="org.symbian.tools.wrttools.deploypackage"
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   195
             visible="true">
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   196
       </separator>
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   197
       <command
485
df4f55e8569e Fixed copyright headers and removed unneeded WRT mentions from TMW code
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 482
diff changeset
   198
             commandId="org.symbian.tools.tmw.commands.deploy"
281
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   199
             icon="icons/deploy_widget.gif"
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   200
             id="org.symbian.tools.wrttools.toolbars.deploy">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   201
       </command>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   202
       <separator
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   203
             name="org.symbian.tools.wrttools.endwrt"
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   204
             visible="true">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   205
       </separator>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   206
    </menuContribution>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   207
    <menuContribution
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   208
          locationURI="popup:org.eclipse.ui.popup.any?after=sourceMenuId">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   209
       <separator
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   210
             name="org.symbian.tools.wrttools.beginwert"
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   211
             visible="true">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   212
       </separator>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   213
       <command
485
df4f55e8569e Fixed copyright headers and removed unneeded WRT mentions from TMW code
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 482
diff changeset
   214
             commandId="org.symbian.tools.tmw.commands.deploy"
281
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   215
             icon="icons/deploy_widget.gif"
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   216
             id="org.symbian.tools.wrttools.toolbars.deploy">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   217
          <visibleWhen>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   218
             <and>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   219
                <iterate
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   220
                      ifEmpty="false"
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   221
                      operator="and">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   222
                   <adapt
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   223
                         type="org.eclipse.core.resources.IProject">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   224
                   </adapt>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   225
                </iterate>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   226
                <count
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   227
                      value="1">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   228
                </count>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   229
             </and>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   230
          </visibleWhen>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   231
       </command>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   232
       <separator
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   233
             name="org.symbian.tools.wrttools.endwrt"
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   234
             visible="true">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   235
       </separator>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   236
    </menuContribution>
263
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   237
 </extension>
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   238
 <extension
282
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   239
       point="org.eclipse.ui.decorators">
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   240
    <decorator
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   241
          adaptable="true"
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   242
          class="org.symbian.tools.wrttools.navigator.PackagingInformationDecorator"
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   243
          icon="icons/main16.gif"
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   244
          id="org.symbian.tools.wrttools.packagingDeclarator"
409
cc687be9a816 WRT references were cleared from the UI
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 401
diff changeset
   245
          label="Mobile Web Packaging Information"
282
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   246
          lightweight="true"
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   247
          location="TOP_RIGHT"
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   248
          state="true">
454
38d6944cff88 Bug 3352 - Replace our Navigator View with the JSDT one
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 448
diff changeset
   249
       <enablement>
38d6944cff88 Bug 3352 - Replace our Navigator View with the JSDT one
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 448
diff changeset
   250
       	<objectClass
38d6944cff88 Bug 3352 - Replace our Navigator View with the JSDT one
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 448
diff changeset
   251
              name="org.eclipse.core.resources.IResource">
38d6944cff88 Bug 3352 - Replace our Navigator View with the JSDT one
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 448
diff changeset
   252
       	</objectClass>
38d6944cff88 Bug 3352 - Replace our Navigator View with the JSDT one
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 448
diff changeset
   253
       </enablement>
282
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   254
    </decorator>
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   255
 </extension>
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   256
 <extension
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   257
       id="org.symbian.tools.wrttools.excluded"
401
72386743b723 Improve TMW messages - bug 3121
Paul Beusterien <paulb@symbian.org>
parents: 397
diff changeset
   258
       name="Excluded from Mobile Web packaging marker"
282
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   259
       point="org.eclipse.core.resources.markers">
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   260
    <persistent
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   261
          value="true">
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   262
    </persistent>
310
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   263
 </extension>
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   264
 <extension
348
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   265
       point="org.eclipse.ltk.core.refactoring.renameParticipants">
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   266
    <renameParticipant
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   267
          class="org.symbian.tools.wrttools.core.project.ProjectRenameParticipant"
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   268
          id="org.symbian.tools.wrttools.renameParticipant1"
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   269
          name="WRT Projects Rename Participant">
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   270
    <enablement>
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   271
      <with variable="affectedNatures">
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   272
        <iterate operator="or">
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   273
          <equals value="org.symbian.tools.wrttools.WidgetProjectNature"/>
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   274
        </iterate>
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   275
      </with>
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   276
      <with variable="element">
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   277
         <adapt
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   278
               type="org.eclipse.core.resources.IProject">
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   279
         </adapt>
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   280
      </with>
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   281
    </enablement>
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   282
          
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   283
    </renameParticipant>
372
1e408ee32d8a Added templates for WRT 1.1 platform services
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 366
diff changeset
   284
 </extension>
1e408ee32d8a Added templates for WRT 1.1 platform services
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 366
diff changeset
   285
 <extension
1e408ee32d8a Added templates for WRT 1.1 platform services
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 366
diff changeset
   286
       point="org.eclipse.ui.editors.templates">
1e408ee32d8a Added templates for WRT 1.1 platform services
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 366
diff changeset
   287
    <include
1e408ee32d8a Added templates for WRT 1.1 platform services
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 366
diff changeset
   288
          file="templates/default-templates.xml">
1e408ee32d8a Added templates for WRT 1.1 platform services
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 366
diff changeset
   289
    </include>
373
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   290
 </extension>
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   291
 <extension
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   292
       point="org.eclipse.wst.common.snippets.SnippetContributions">
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   293
    <category
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   294
          description="WRT-specific JavaScript snippets"
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   295
          id="org.symbian.tools.wrttools.wrtsnippets"
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   296
          label="Symbian Web Runtime"
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   297
          smallicon="icons/main16.gif"
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   298
          contenttypes="org.eclipse.wst.jsdt.core.jsSource">
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   299
       <item
385
9bf326e3aeb9 Bug 3018 - After adding a snippet the focus should be changed to the edit view
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 384
diff changeset
   300
             class="org.symbian.tools.wrttools.util.SnippetInsertion"
373
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   301
             description="Retrieves list of the contacts"
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   302
             id="org.symbian.tools.wrttools.contacts"
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   303
             label="Get contacts">
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   304
          <content>
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   305
var contactService = device.getServiceObject("Service.Contact",
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   306
			"IDataSource");
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   307
	var result = contactService.IDataSource.GetList(
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   308
			{ Type : "Contact", Sort : { Order : "Ascending" } }
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   309
			);
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   310
	if (result.ErrorCode == 0) {
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   311
		var contacts = result.ReturnValue;
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   312
		for ( var contact = contacts.getNext(); contact != null; contact = contacts.getNext()) {
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   313
			var firstName = contact.FirstName;
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   314
			var lastName = contact.LastName;
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   315
			var mobile = contact.MobilePhoneGen;
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   316
			var landPhone = contact.LandPhoneGen;
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   317
			var jobTitle = contact.JobTitle;
374
92f6ae438d71 Strings updated
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 373
diff changeset
   318
			// Consult WRT documentation for other possible fields
373
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   319
			// TODO Process contact information
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   320
		}
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   321
	} else {
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   322
		var errorCode = result.ErrorCode;
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   323
		var errorMessage = result.ErrorMessage;
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   324
		// TODO Cannot retrieve contacts list
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   325
	}
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   326
          </content>
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   327
       </item>
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   328
       <item
385
9bf326e3aeb9 Bug 3018 - After adding a snippet the focus should be changed to the edit view
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 384
diff changeset
   329
             class="org.symbian.tools.wrttools.util.SnippetInsertion"
376
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   330
             description="This function can be used as a callback in GetLocation and Trace calls to location service."
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   331
             id="org.symbian.tools.wrttools.location"
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   332
             label="Location callback">
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   333
          <content>
384
efc34c5e085b Bug 3015 - Snippets should have sufficient help to enable novice user to use the API
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 381
diff changeset
   334
// This function can be passed as a callback to locationService.ILocation
efc34c5e085b Bug 3015 - Snippets should have sufficient help to enable novice user to use the API
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 381
diff changeset
   335
// GetLocation or Trace method
376
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   336
function locationUpdated(transactionId, code, result) {
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   337
	if (result.ErrorCode == 0) {
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   338
		var longitude = result.ReturnValue.Longitude; // Longitude estimate in degrees. The value range is [+180, -180].
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   339
		var latitude = result.ReturnValue.Latitude; // Latitude estimate in degrees. The value range is [+90, -90].
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   340
		var altitude = result.ReturnValue.Altitude; // Elevation estimate in meters relative to the WGS 84 datum.
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   341
		var satelliteNumView = result.ReturnValue.SatelliteNumView; // Number of satellites currently in view.
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   342
		var satelliteNumViewUsed = result.ReturnValue.SatelliteNumViewUsed; // Number of satellites used to obtain the location fix.
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   343
		var horizontalSpeed = result.ReturnValue.HorizontalSpeed; // Horizontal speed estimate in meters per second. This is the speed of the device at the time the location fix was obtained.
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   344
		var horizontalSpeedError = result.ReturnValue.HorizontalSpeedError; // Horizontal speed error in meters per second.
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   345
		var trueCourse = result.ReturnValue.TrueCourse; // Current direction of movement in degrees in relation to true north.
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   346
		var trueCourseError = result.ReturnValue.TrueCourseError; // TrueCourse error in degrees.
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   347
		var magneticHeading = result.ReturnValue.MagneticHeading; // Current direction of movement in degrees in relation to magnetic north.
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   348
		var magneticHeadingError = result.ReturnValue.MagneticHeadingError; // MagneticHeading error in degrees.
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   349
		var heading = result.ReturnValue.Heading; // Current instantaneous direction of movement in degrees in relation to true north.
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   350
		var headingError = result.ReturnValue.HeadingError; // Heading error in degrees.
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   351
		var magneticCourse = result.ReturnValue.MagneticCourse; // Current instantaneous direction of movement in degrees in relation to magnetic north.
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   352
		var magneticCourseError = result.ReturnValue.MagneticCourseError; // MagneticCourse error in degrees
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   353
		// TODO Location information was received
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   354
	} else {
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   355
		var errorCode = result.ErrorCode;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   356
		var errorMessage = result.ErrorMessage;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   357
		// TODO Failed to retrieve location information
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   358
	}
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   359
}          </content>
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   360
       </item>
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   361
       <item
385
9bf326e3aeb9 Bug 3018 - After adding a snippet the focus should be changed to the edit view
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 384
diff changeset
   362
             class="org.symbian.tools.wrttools.util.SnippetInsertion"
386
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   363
             description="Sends SMS message"
390
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   364
             id="org.symbian.tools.wrttools.dial"
386
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   365
             label="Send SMS message">
373
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   366
          <content>
386
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   367
var phoneNumber = "+6505551214";
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   368
	var text = "Sent from WRT application";
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   369
	var messaging = device.getServiceObject("Service.Messaging", "IMessaging");
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   370
	var result = messaging.IMessaging.Send({ MessageType : "SMS", To : phoneNumber, BodyText : text });
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   371
	if (result.ErrorCode != null) {
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   372
		var errorCode = result.ErrorCode;
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   373
		var errorMessage = result.ErrorMessage;
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   374
		// TODO Cannot send SMS message
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   375
	}
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   376
          </content>
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   377
       </item>
390
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   378
       
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   379
       <item
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   380
             class="org.symbian.tools.wrttools.util.SnippetInsertion"
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   381
             description="Use this code to track battery status"
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   382
             id="org.symbian.tools.wrttools.battery"
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   383
             label="Watch battery status">
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   384
          <content>
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   385
function watchBatteryNotifications() {
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   386
	var sysInfo = device.getServiceObject("Service.SysInfo", "ISysInfo");
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   387
	var result = sysInfo.ISysInfo.GetNotification( {
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   388
		Entity : "Battery",
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   389
		Key : "BatteryStrength"
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   390
	}, batteryUpdated);
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   391
	if (result.ErrorCode == 0) {
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   392
		var transactionId = result.TransactionID;
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   393
		// TODO Use this ID to cancel notifications
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   394
	} else {
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   395
		var message = result.ErrorMessage;
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   396
		// TODO Process error
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   397
	}
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   398
}
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   399
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   400
function batteryUpdated(tId, code, result) {
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   401
	if (result.ErrorCode == 0) {
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   402
		var batteryStatus = result.ReturnValue.Status;
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   403
		// TODO Process battery charge level
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   404
	} else {
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   405
		var message = result.ErrorMessage;
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   406
		// TODO Process error
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   407
	}
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   408
}
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   409
          </content>
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   410
       </item>
386
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   411
       <item
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   412
             class="org.symbian.tools.wrttools.util.SnippetInsertion"
389
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
   413
             description="Use this code to track acceleration, orientation or rotation changes"
390
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   414
             id="org.symbian.tools.wrttools.sensor"
386
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   415
             label="Watch sensor notifications">
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   416
          <content>
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   417
// Call this function to add a callback that will be notified of orientation changes
389
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
   418
function watchSensorNotifications() {
386
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   419
	var sensors = device.getServiceObject("Service.Sensor", "ISensor");
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   420
	var SensorParams = {
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   421
		SearchCriterion : "Orientation" // TODO Possible values (one of):
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   422
			// SearchCriterion : "All"
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   423
			// SearchCriterion : "AccelerometerAxis"
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   424
			// SearchCriterion : "AccelerometerDoubleTapping"
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   425
			// SearchCriterion : "Rotation"
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   426
	};
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   427
	var result = sensors.ISensor.FindSensorChannel(SensorParams);
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   428
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   429
	if (result.ErrorCode != 0) {
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   430
		var errorCode = result.ErrorCode;
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   431
		var errorMessage = result.ErrorMessage;
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   432
		// TODO Handle error
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   433
		return null;
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   434
	}
389
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
   435
    // TODO Function named "sensorCallback" will be called when device orientation changes. This function should be created. 
386
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   436
	var result2 = sensors.ISensor.RegisterForNotification(
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   437
			{ ChannelInfoMap : result.ReturnValue[0], 
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   438
				ListeningType : "ChannelData" }, sensorCallback);
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   439
	if (result.ErrorCode == 0) {
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   440
		var transactionId = result.TransactionID;
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   441
		// TODO Use this transaction ID to cancel notifications when watching orientation is no longer needed
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   442
		return transactionId;
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   443
	} else {
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   444
		var errorCode = result.ErrorCode;
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   445
		var errorMessage = result.ErrorMessage;
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   446
		// TODO Handle error
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   447
		return null;
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   448
	}
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   449
}
389
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
   450
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
   451
// This function can be passed as callback to 
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
   452
// sensors.ISensor.RegisterForNotification method
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
   453
function sensorCallback(transactionId, code, result) {
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
   454
	if (result.ErrorCode == 0) {
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
   455
		// TODO Process notification
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
   456
		var dataType = result.ReturnValue.DataType; // One of: "AxisData", "DoubleTappingData", "OrientationData" or "RotationData"
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
   457
		var orientation = result.ReturnValue.DeviceOrientation; // Orientation
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
   458
		// var xAxis = result.ReturnValue.XAxisData; // Accelerometer
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
   459
		// var yAxis = result.ReturnValue.YAxisData; // Accelerometer
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
   460
		// var zAxis = result.ReturnValue.ZAxisData; // Accelerometer
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
   461
		// var direction = result.ReturnValue.DeviceDirection; // Accelerometer double tapping
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
   462
		// var xRotation = result.ReturnValue.XRotation; // Rotation
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
   463
		// var yRotation = result.ReturnValue.YRotation; // Rotation
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
   464
		// var zRotation = result.ReturnValue.ZRotation; // Rotation
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
   465
	} else {
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
   466
		var errorCode = result.ErrorCode;
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
   467
		var errorMessage = result.ErrorMessage;
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
   468
		// TODO Handle error
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
   469
	}
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
   470
}
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
   471
386
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   472
         </content>
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   473
       </item>
373
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   474
    </category>
376
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   475
    <category
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   476
          description="Snippets using PhoneGap APIs"
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   477
          id="org.symbian.tools.wrttools.phonegapsnippets"
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   478
          label="PhoneGap"
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   479
          smallicon="icons/phonegap.png">
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   480
       <item
385
9bf326e3aeb9 Bug 3018 - After adding a snippet the focus should be changed to the edit view
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 384
diff changeset
   481
             class="org.symbian.tools.wrttools.util.SnippetInsertion"
376
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   482
             description="Accepts accerelometer data"
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   483
             id="org.symbian.tools.wrttools.phonegap.accererometer"
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   484
             label="Accelerometer callback">
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   485
          <content>
384
efc34c5e085b Bug 3015 - Snippets should have sufficient help to enable novice user to use the API
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 381
diff changeset
   486
// This callback can be passed as a successCallback argument to  
efc34c5e085b Bug 3015 - Snippets should have sufficient help to enable novice user to use the API
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 381
diff changeset
   487
// navigator.accelerometer getCurrentAcceleration and watchAcceleration methods
376
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   488
function updateAcceleration(accel) {
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   489
	var x = accel.x;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   490
	var y = accel.y;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   491
	var z = accel.z;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   492
	
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   493
	// TODO process the data
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   494
}
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   495
          </content>
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   496
       </item>
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   497
       <item
385
9bf326e3aeb9 Bug 3018 - After adding a snippet the focus should be changed to the edit view
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 384
diff changeset
   498
             class="org.symbian.tools.wrttools.util.SnippetInsertion"
376
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   499
             description="Accepts contacts data"
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   500
             id="org.symbian.tools.wrttools.phonegap.contacts"
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   501
             label="Contacts callback">
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   502
          <content>
384
efc34c5e085b Bug 3015 - Snippets should have sufficient help to enable novice user to use the API
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 381
diff changeset
   503
// This method can be passed as a successCallback argument to
efc34c5e085b Bug 3015 - Snippets should have sufficient help to enable novice user to use the API
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 381
diff changeset
   504
// navigator.contacts.find method
376
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   505
function displayContacts(contacts) {
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   506
	for (var i=0; i &lt; contacts.length; i++) {
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   507
		var contact = contacts[i];
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   508
		var name = contact.name.formatted;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   509
		var phones = contact.name.phone; // Array of phone numbers
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   510
		var name = contact.name.address;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   511
		
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   512
		// TODO Insert your code here
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   513
	}
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   514
}
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   515
          </content>
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   516
       </item>
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   517
       <item
385
9bf326e3aeb9 Bug 3018 - After adding a snippet the focus should be changed to the edit view
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 384
diff changeset
   518
             class="org.symbian.tools.wrttools.util.SnippetInsertion"
376
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   519
             description="Accepts location data"
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   520
             id="org.symbian.tools.wrttools.phonegap.location"
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   521
             label="Location callback">
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   522
          <content>
384
efc34c5e085b Bug 3015 - Snippets should have sufficient help to enable novice user to use the API
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 381
diff changeset
   523
// This method can be passed as a successCallback argument to 
efc34c5e085b Bug 3015 - Snippets should have sufficient help to enable novice user to use the API
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 381
diff changeset
   524
// navigator.geolocation getCurrentPosition or watchPosition methods
376
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   525
function updateLocation(position) {
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   526
	var pt = position.coords;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   527
	var latitude = pt.latitude;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   528
	var longitude = pt.longitude;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   529
	var altitude = pt.altitude;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   530
	var heading = pt.heading;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   531
	var speed = pt.speed;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   532
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   533
	// TODO Insert your code here
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   534
}
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   535
          </content>
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   536
       </item>
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   537
       <item
385
9bf326e3aeb9 Bug 3018 - After adding a snippet the focus should be changed to the edit view
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 384
diff changeset
   538
             class="org.symbian.tools.wrttools.util.SnippetInsertion"
376
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   539
             description="Accepts orientation data"
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   540
             id="org.symbian.tools.wrttools.phonegap.orientation"
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   541
             label="Orientation callback">
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   542
          <content>
384
efc34c5e085b Bug 3015 - Snippets should have sufficient help to enable novice user to use the API
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 381
diff changeset
   543
// This method can be passed as a successCallback argument to 
efc34c5e085b Bug 3015 - Snippets should have sufficient help to enable novice user to use the API
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 381
diff changeset
   544
// navigator.orientation getCurrentOrientation or watchOrientation methods
376
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   545
function updateOrientation(orientation) {
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   546
	switch (orientation) {
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   547
		case DisplayOrientation.PORTRAIT: break;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   548
		case DisplayOrientation.REVERSE_PORTRAIT: break;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   549
		case DisplayOrientation.LANDSCAPE_LEFT_UP: break;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   550
		case DisplayOrientation.LANDSCAPE_RIGHT_UP: break;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   551
		case DisplayOrientation.FACE_UP: break;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   552
		case DisplayOrientation.FACE_DOWN: break;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   553
	}
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   554
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   555
	// TODO Insert your code here
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   556
}
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   557
          </content>
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   558
       </item>
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   559
    </category>
455
5da55957c779 Bluetooth support was refactored on top of a new frameworks
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 454
diff changeset
   560
 </extension>
5da55957c779 Bluetooth support was refactored on top of a new frameworks
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 454
diff changeset
   561
 <extension
461
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   562
       point="org.symbian.tools.tmw.core.projectProvider">
455
5da55957c779 Bluetooth support was refactored on top of a new frameworks
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 454
diff changeset
   563
    <projectProvider
5da55957c779 Bluetooth support was refactored on top of a new frameworks
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 454
diff changeset
   564
          class="org.symbian.tools.wrttools.core.project.WRTIDEProjectProvider">
5da55957c779 Bluetooth support was refactored on top of a new frameworks
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 454
diff changeset
   565
       <enablement>
5da55957c779 Bluetooth support was refactored on top of a new frameworks
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 454
diff changeset
   566
          <adapt
5da55957c779 Bluetooth support was refactored on top of a new frameworks
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 454
diff changeset
   567
                type="org.eclipse.core.resources.IProject">
5da55957c779 Bluetooth support was refactored on top of a new frameworks
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 454
diff changeset
   568
             <test
5da55957c779 Bluetooth support was refactored on top of a new frameworks
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 454
diff changeset
   569
                   property="org.eclipse.core.resources.projectNature"
5da55957c779 Bluetooth support was refactored on top of a new frameworks
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 454
diff changeset
   570
                   value="org.symbian.tools.wrttools.WidgetProjectNature">
5da55957c779 Bluetooth support was refactored on top of a new frameworks
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 454
diff changeset
   571
             </test>
5da55957c779 Bluetooth support was refactored on top of a new frameworks
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 454
diff changeset
   572
          </adapt>
5da55957c779 Bluetooth support was refactored on top of a new frameworks
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 454
diff changeset
   573
       </enablement>
5da55957c779 Bluetooth support was refactored on top of a new frameworks
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 454
diff changeset
   574
    </projectProvider>
5da55957c779 Bluetooth support was refactored on top of a new frameworks
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 454
diff changeset
   575
 </extension>
5da55957c779 Bluetooth support was refactored on top of a new frameworks
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 454
diff changeset
   576
   <extension
461
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   577
        point="org.symbian.tools.tmw.core.runtimes">
455
5da55957c779 Bluetooth support was refactored on top of a new frameworks
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 454
diff changeset
   578
     <runtime
461
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   579
           component-id="org.symbian.tools.wrttools.wrt"
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   580
           component-version="1.1"
455
5da55957c779 Bluetooth support was refactored on top of a new frameworks
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 454
diff changeset
   581
           name="Symbian WRT 1.1">
461
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   582
        <runtime-component
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   583
              id="tmw.geolocation"
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   584
              version="1.0">
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   585
        </runtime-component>
477
b616697678bf Providers can now specify fixed facets on per-runtime basis. Those facets will not be shown to users in the project creation wizard
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 476
diff changeset
   586
        <fixed-facet
b616697678bf Providers can now specify fixed facets on per-runtime basis. Those facets will not be shown to users in the project creation wizard
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 476
diff changeset
   587
              id="tmw.geolocation"
b616697678bf Providers can now specify fixed facets on per-runtime basis. Those facets will not be shown to users in the project creation wizard
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 476
diff changeset
   588
              version="1.0">
b616697678bf Providers can now specify fixed facets on per-runtime basis. Those facets will not be shown to users in the project creation wizard
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 476
diff changeset
   589
        </fixed-facet>
455
5da55957c779 Bluetooth support was refactored on top of a new frameworks
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 454
diff changeset
   590
     </runtime>
5da55957c779 Bluetooth support was refactored on top of a new frameworks
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 454
diff changeset
   591
  </extension>
5da55957c779 Bluetooth support was refactored on top of a new frameworks
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 454
diff changeset
   592
   <extension
461
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   593
         point="org.symbian.tools.tmw.core.packagers">
455
5da55957c779 Bluetooth support was refactored on top of a new frameworks
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 454
diff changeset
   594
      <packager
459
c278f0c8917f Refactored packager and deployer interfaces
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 458
diff changeset
   595
            delegate="org.symbian.tools.wrttools.core.packager.WrtPackager"
461
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   596
            target-runtime="org.symbian.tools.wrttools.wrt"
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   597
            target-runtime-version="1.1">
455
5da55957c779 Bluetooth support was refactored on top of a new frameworks
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 454
diff changeset
   598
      </packager>
5da55957c779 Bluetooth support was refactored on top of a new frameworks
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 454
diff changeset
   599
   </extension>
458
5ff93668b08c Emulator deployment was added
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 455
diff changeset
   600
   <extension
461
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   601
         point="org.symbian.tools.tmw.ui.deploymentTargetType">
458
5ff93668b08c Emulator deployment was added
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 455
diff changeset
   602
      <deployment-target-type
5ff93668b08c Emulator deployment was added
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 455
diff changeset
   603
            class="org.symbian.tools.wrttools.core.deploy.emulator.EmulatorTargetType"
5ff93668b08c Emulator deployment was added
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 455
diff changeset
   604
            icon="icons/deploy_settings.gif"
5ff93668b08c Emulator deployment was added
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 455
diff changeset
   605
            id="org.symbian.tools.wrttools.symbianemulator"
5ff93668b08c Emulator deployment was added
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 455
diff changeset
   606
            priority="50">
5ff93668b08c Emulator deployment was added
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 455
diff changeset
   607
      </deployment-target-type>
5ff93668b08c Emulator deployment was added
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 455
diff changeset
   608
   </extension>
461
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   609
   <extension
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   610
         point="org.eclipse.wst.common.project.facet.core.runtimes">
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   611
      <runtime-component-type
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   612
            id="org.symbian.tools.wrttools.wrt">
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   613
      </runtime-component-type>
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   614
      <runtime-component-version
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   615
            type="org.symbian.tools.wrttools.wrt"
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   616
            version="1.1">
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   617
      </runtime-component-version>
467
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   618
      <supported>
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   619
         <facet
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   620
               id="symbian.wrtkit"
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   621
               version="1.0">
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   622
         </facet>
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   623
         <runtime-component
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   624
               id="org.symbian.tools.wrttools.wrt"
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   625
               version="1.1">
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   626
         </runtime-component>
468
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   627
         <facet
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   628
               id="symbian.phonegap">
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   629
         </facet>
467
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   630
      </supported>
461
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   631
   </extension>
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   632
   <extension
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   633
         point="org.eclipse.wst.common.project.facet.ui.images">
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   634
      <image
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   635
            path="icons/main16_prev.gif"
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   636
            runtime-component-type="org.symbian.tools.wrttools.wrt"
462
cdc4995b1677 Minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 461
diff changeset
   637
            version="1.1">
461
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   638
      </image>
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   639
   </extension>
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   640
   <extension
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   641
         point="org.symbian.tools.tmw.core.runtimeIncludePath">
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   642
      <runtime-include-path
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   643
            id="org.symbian.tools.wrttools.wrt"
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   644
            version="1.1">
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   645
         <include-path-entry
463
aea4c83725d8 Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 462
diff changeset
   646
               file="libraries/core/widget.js"/>
aea4c83725d8 Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 462
diff changeset
   647
         <include-path-entry
aea4c83725d8 Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 462
diff changeset
   648
               file="libraries/core/services.js"/>
461
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   649
         <include-path-entry
463
aea4c83725d8 Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 462
diff changeset
   650
               file="libraries/core/menu.js"/>
461
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   651
      </runtime-include-path>
7a8f9fa8d278 Project model introduction and JSDT classpath support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 459
diff changeset
   652
   </extension>
463
aea4c83725d8 Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 462
diff changeset
   653
   <extension
aea4c83725d8 Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 462
diff changeset
   654
         point="org.symbian.tools.tmw.ui.projectTemplate">
aea4c83725d8 Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 462
diff changeset
   655
      <template
aea4c83725d8 Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 462
diff changeset
   656
            icon="icons/flickr.gif"
465
87920e15f8eb Added a way to contribute wizard pages for templates
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 464
diff changeset
   657
            id="org.symbian.wrt11.flickr"
463
aea4c83725d8 Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 462
diff changeset
   658
            name="Flickr Project"
aea4c83725d8 Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 462
diff changeset
   659
            weight="3">
aea4c83725d8 Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 462
diff changeset
   660
         <archive
466
129c94e78375 Project creation from the templates was implemented
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 465
diff changeset
   661
               file="projecttemplates/flickr.zip"
129c94e78375 Project creation from the templates was implemented
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 465
diff changeset
   662
               open-files="${mainHtml}.html">
463
aea4c83725d8 Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 462
diff changeset
   663
         </archive>
aea4c83725d8 Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 462
diff changeset
   664
         <description>
aea4c83725d8 Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 462
diff changeset
   665
            This wizard generates an Flickr project with a minimal Info.plist, html,css and js and WRTKit.
aea4c83725d8 Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 462
diff changeset
   666
         </description>
aea4c83725d8 Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 462
diff changeset
   667
         <supported-runtime
aea4c83725d8 Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 462
diff changeset
   668
               id="org.symbian.tools.wrttools.wrt"
aea4c83725d8 Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 462
diff changeset
   669
               version="1.1">
aea4c83725d8 Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 462
diff changeset
   670
         </supported-runtime>
464
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   671
         <default-parameter-value
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   672
               name="mainCss"
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   673
               value="style">
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   674
         </default-parameter-value>
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   675
         <default-parameter-value
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   676
               name="mainJs"
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   677
               value="flickr">
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   678
         </default-parameter-value>
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   679
         <default-parameter-value
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   680
               name="mainHtml"
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   681
               value="flickr">
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   682
         </default-parameter-value>
465
87920e15f8eb Added a way to contribute wizard pages for templates
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 464
diff changeset
   683
         <default-parameter-value
87920e15f8eb Added a way to contribute wizard pages for templates
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 464
diff changeset
   684
               name="flickrUrl"
87920e15f8eb Added a way to contribute wizard pages for templates
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 464
diff changeset
   685
               value="http://flickr.com/photos/symbianfoundation">
87920e15f8eb Added a way to contribute wizard pages for templates
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 464
diff changeset
   686
         </default-parameter-value>
467
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   687
         <required-facet
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   688
               id="symbian.wrtkit"
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   689
               version="1.0">
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   690
         </required-facet>
463
aea4c83725d8 Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 462
diff changeset
   691
      </template>
474
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   692
      <template
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   693
            icon="icons/rss.gif"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   694
            id="org.symbian.wrt11.rssreader"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   695
            name="RSS Reader Project"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   696
            weight="3">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   697
         <archive
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   698
               file="projecttemplates/rssreader.zip"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   699
               open-files="${mainHtml}.html">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   700
         </archive>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   701
         <required-facet
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   702
               id="symbian.wrtkit"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   703
               version="1.0">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   704
         </required-facet>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   705
         <supported-runtime
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   706
               id="org.symbian.tools.wrttools.wrt"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   707
               version="1.1">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   708
         </supported-runtime>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   709
         <description>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   710
            This wizard generates an RSS Reader project with a minimal Info.plist, html,css and js and WRTKit.
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   711
         </description>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   712
         <default-parameter-value
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   713
               name="mainCss"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   714
               value="style">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   715
         </default-parameter-value>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   716
         <default-parameter-value
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   717
               name="mainJs"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   718
               value="rssreader">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   719
         </default-parameter-value>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   720
         <default-parameter-value
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   721
               name="mainHtml"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   722
               value="rssreader">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   723
         </default-parameter-value>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   724
         <default-parameter-value
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   725
               name="feedUrl"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   726
               value="http://twitter.com/statuses/user_timeline/21138778.rss">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   727
         </default-parameter-value>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   728
         <default-parameter-value
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   729
               name="feedName"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   730
               value="Symbian Twitter">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   731
         </default-parameter-value>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   732
      </template>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   733
      <template
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   734
            icon="icons/WRT_main_16.png"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   735
            id="org.symbian.wrt11.basic"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   736
            name="Hello World Project"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   737
            weight="1">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   738
         <archive
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   739
               file="projecttemplates/helloWithWRTKit.zip"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   740
               open-files="${mainJs}.js">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   741
         </archive>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   742
         <description>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   743
            This wizard generates a basic Hello project with a minimal Info.plist, html,css and js along with WRTKit.
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   744
         </description>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   745
         <required-facet
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   746
               id="symbian.wrtkit"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   747
               version="1.0">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   748
         </required-facet>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   749
         <supported-runtime
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   750
               id="org.symbian.tools.wrttools.wrt"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   751
               version="1.1">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   752
         </supported-runtime>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   753
         <default-parameter-value
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   754
               name="mainCss"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   755
               value="style">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   756
         </default-parameter-value>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   757
         <default-parameter-value
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   758
               name="mainJs"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   759
               value="main">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   760
         </default-parameter-value>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   761
         <default-parameter-value
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   762
               name="mainHtml"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   763
               value="index">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   764
         </default-parameter-value>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   765
      </template>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   766
      <template
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   767
            icon="icons/phonegap.png"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   768
            id="org.symbian.wrt11.phonegap"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   769
            name="PhoneGap"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   770
            weight="2">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   771
         <archive
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   772
               file="projecttemplates/phonegap.zip"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   773
               open-files="${mainHtml}.html">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   774
         </archive>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   775
         <description>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   776
            This wizard generates a project based on the PhoneGap library that showcases PhoneGap API usage. PhoneGap applications require WRT 1.1 or newer.
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   777
         </description>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   778
         <required-facet
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   779
               id="symbian.phonegap"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   780
               version="1.0">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   781
         </required-facet>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   782
         <supported-runtime
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   783
               id="org.symbian.tools.wrttools.wrt"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   784
               version="1.1">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   785
         </supported-runtime>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   786
         <default-parameter-value
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   787
               name="mainCss"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   788
               value="style">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   789
         </default-parameter-value>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   790
         <default-parameter-value
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   791
               name="mainJs"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   792
               value="main">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   793
         </default-parameter-value>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   794
         <default-parameter-value
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   795
               name="mainHtml"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   796
               value="index">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   797
         </default-parameter-value>
478
6c07c755d0c7 PhoneGap template will use proper screen size
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 477
diff changeset
   798
         <installer
6c07c755d0c7 PhoneGap template will use proper screen size
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 477
diff changeset
   799
               class="org.symbian.tools.wrttools.core.project.SetResolution">
6c07c755d0c7 PhoneGap template will use proper screen size
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 477
diff changeset
   800
         </installer>
474
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   801
      </template>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   802
      <template
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   803
            icon="icons/main16.gif"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   804
            id="org.symbian.wrt11.advanced"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   805
            name="Various UI Templates"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   806
            weight="2">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   807
         <archive
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   808
               file="projecttemplates/uitemplate.zip"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   809
               open-files="${mainHtml}.html">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   810
         </archive>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   811
         <description>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   812
            Includes templates for high-end devices from Forum.Nokia.
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   813
         </description>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   814
         <supported-runtime
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   815
               id="org.symbian.tools.wrttools.wrt"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   816
               version="1.1">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   817
         </supported-runtime>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   818
         <default-parameter-value
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   819
               name="mainCss"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   820
               value="style">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   821
         </default-parameter-value>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   822
         <default-parameter-value
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   823
               name="mainJs"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   824
               value="main">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   825
         </default-parameter-value>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   826
         <default-parameter-value
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   827
               name="mainHtml"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   828
               value="index">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   829
         </default-parameter-value>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   830
      </template>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   831
      <template
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   832
            icon="icons/main16_prev.gif"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   833
            id="org.symbian.wrt11.empty"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   834
            name="Minimal Project"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   835
            weight="4">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   836
         <description>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   837
            This wizard generates an empty widget project with a minimal Info.plist, html,css and js.
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   838
         </description>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   839
         <supported-runtime
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   840
               id="org.symbian.tools.wrttools.wrt"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   841
               version="1.1">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   842
         </supported-runtime>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   843
         <archive
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   844
               file="projecttemplates/basic.zip"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   845
               open-files="${mainHtml}.html">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   846
         </archive>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   847
      </template>
464
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   848
      <runtime-template
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   849
            runtime-id="org.symbian.tools.wrttools.wrt"
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   850
            version="1.1">
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   851
         <archive
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   852
               file="projecttemplates/basic.zip">
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   853
         </archive>
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   854
         <default-parameter-value
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   855
               name="homeScreen"
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   856
               value="false">
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   857
         </default-parameter-value>
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   858
         <default-parameter-value
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   859
               name="mainHtml"
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   860
               value="index">
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   861
         </default-parameter-value>
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   862
         <default-parameter-value
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   863
               name="mainCss"
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   864
               value="basic">
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   865
         </default-parameter-value>
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   866
         <default-parameter-value
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   867
               name="mainJs"
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   868
               value="basic">
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   869
         </default-parameter-value>
0b02f3d6f52c Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 463
diff changeset
   870
      </runtime-template>
463
aea4c83725d8 Project template work-in-progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 462
diff changeset
   871
   </extension>
465
87920e15f8eb Added a way to contribute wizard pages for templates
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 464
diff changeset
   872
   <extension
87920e15f8eb Added a way to contribute wizard pages for templates
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 464
diff changeset
   873
         point="org.symbian.tools.tmw.ui.wizardPages">
87920e15f8eb Added a way to contribute wizard pages for templates
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 464
diff changeset
   874
      <template-page
87920e15f8eb Added a way to contribute wizard pages for templates
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 464
diff changeset
   875
            class="org.symbian.tools.wrttools.wizards.NewFlickrApplicationWizardPage"
87920e15f8eb Added a way to contribute wizard pages for templates
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 464
diff changeset
   876
            template-id="org.symbian.wrt11.flickr">
87920e15f8eb Added a way to contribute wizard pages for templates
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 464
diff changeset
   877
      </template-page>
474
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   878
      <template-page
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   879
            class="org.symbian.tools.wrttools.wizards.NewRSSReaderApplicationWizardPage"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   880
            template-id="org.symbian.wrt11.rssreader">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   881
      </template-page>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   882
      <template-page
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   883
            class="org.symbian.tools.wrttools.wizards.NewWrtAppTemplatePage"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   884
            template-id="org.symbian.wrt11.basic">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   885
      </template-page>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   886
      <template-page
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   887
            class="org.symbian.tools.wrttools.wizards.NewWrtAppTemplatePage"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   888
            template-id="org.symbian.wrt11.phonegap">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   889
      </template-page>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   890
      <template-page
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   891
            class="org.symbian.tools.wrttools.wizards.NewWrtAppTemplatePage"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   892
            template-id="org.symbian.wrt11.advanced">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   893
      </template-page>
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   894
      <template-page
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   895
            class="org.symbian.tools.wrttools.wizards.NewWrtAppTemplatePage"
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   896
            template-id="org.symbian.wrt11.empty">
e2f461f0a9e0 All templates are ported to a new framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 473
diff changeset
   897
      </template-page>
465
87920e15f8eb Added a way to contribute wizard pages for templates
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 464
diff changeset
   898
   </extension>
467
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   899
   <extension
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   900
         point="org.eclipse.wst.common.project.facet.core.facets">
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   901
      <project-facet
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   902
            id="symbian.wrtkit">
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   903
         <label>
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   904
            Symbian WRTKit
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   905
         </label>
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   906
         <description>
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   907
            WRTKit UI library for Symbian WRT
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   908
         </description>
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   909
         <default-version
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   910
               version="1.0">
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   911
         </default-version>
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   912
      </project-facet>
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   913
      <project-facet-version
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   914
            facet="symbian.wrtkit"
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   915
            version="1.0">
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   916
         <constraint>
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   917
            <requires
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   918
                  facet="tmw.core"
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   919
                  version="[1.0">
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   920
            </requires>
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   921
         </constraint>
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   922
         <action
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   923
               type="install">
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   924
            <delegate
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   925
                  class="org.symbian.tools.wrttools.core.libraries.InstallWrtKitDelegate">
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   926
            </delegate>
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   927
            <config-factory
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   928
                  class="org.symbian.tools.tmw.core.runtimes.ProjectCreationConfigFactory">
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   929
            </config-factory>
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   930
         </action>
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   931
      </project-facet-version>
468
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   932
      <project-facet
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   933
            id="symbian.phonegap">
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   934
         <label>
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   935
            PhoneGap
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   936
         </label>
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   937
         <description>
476
20536eb3b9ff Remove build artifacts
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 475
diff changeset
   938
            PhoneGap is an open source development framework for building cross-platform mobile apps. It provides a cross-platform JavaScript APIs for accessing services on the mobile devices.
468
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   939
         </description>
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   940
      </project-facet>
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   941
      <project-facet-version
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   942
            facet="symbian.phonegap"
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   943
            version="1.0">
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   944
         <constraint>
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   945
            <requires
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   946
                  facet="tmw.core"
480
b6d992b9b998 Bugfixes
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 479
diff changeset
   947
                  version="[1.0">
468
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   948
            </requires>
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   949
         </constraint>
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   950
         <action
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   951
               type="install">
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   952
            <delegate
473
8e8aed9adb99 PhoneGap support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 470
diff changeset
   953
                  class="org.symbian.tools.wrttools.core.libraries.InstallPhoneGapDelegate">
468
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   954
            </delegate>
473
8e8aed9adb99 PhoneGap support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 470
diff changeset
   955
            <config-factory
8e8aed9adb99 PhoneGap support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 470
diff changeset
   956
                  class="org.symbian.tools.tmw.core.runtimes.ProjectCreationConfigFactory">
8e8aed9adb99 PhoneGap support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 470
diff changeset
   957
            </config-factory>
468
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   958
         </action>
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   959
      </project-facet-version>
467
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   960
   </extension>
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   961
   <extension
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   962
         point="org.eclipse.wst.common.project.facet.ui.images">
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   963
      <image
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   964
            facet="symbian.wrtkit"
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   965
            path="icons/main16_prev.gif"
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   966
            version="1.0">
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   967
      </image>
473
8e8aed9adb99 PhoneGap support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 470
diff changeset
   968
      <image
8e8aed9adb99 PhoneGap support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 470
diff changeset
   969
            facet="symbian.phonegap"
8e8aed9adb99 PhoneGap support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 470
diff changeset
   970
            path="icons/phonegap.png"
8e8aed9adb99 PhoneGap support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 470
diff changeset
   971
            version="1.0">
8e8aed9adb99 PhoneGap support
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 470
diff changeset
   972
      </image>
467
5a2901872fcf WRTKit facet was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 466
diff changeset
   973
   </extension>
468
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   974
   <extension
479
518afa7c6d2f Minor refactoring to make API more clear
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 478
diff changeset
   975
         point="org.symbian.tools.tmw.core.runtimeAppLayout">
468
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   976
      <layout-provider
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   977
            class="org.symbian.tools.wrttools.core.project.WRT11ApplicationLayout"
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   978
            runtime-id="org.symbian.tools.wrttools.wrt"
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   979
            runtime-version="1.1">
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   980
      </layout-provider>
a05c6e5cc7d9 Previewer now is TMWed (can support projects with different natures). Note: this commit does not compile. This previewer still only supports WRT libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 467
diff changeset
   981
   </extension>
481
e908ec135fa1 Application import wizard was refactored into extensible code
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 480
diff changeset
   982
   <extension
e908ec135fa1 Application import wizard was refactored into extensible code
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 480
diff changeset
   983
         point="org.symbian.tools.tmw.ui.applicationImporter">
e908ec135fa1 Application import wizard was refactored into extensible code
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 480
diff changeset
   984
      <importer
e908ec135fa1 Application import wizard was refactored into extensible code
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 480
diff changeset
   985
            class="org.symbian.tools.wrttools.core.project.WgzImporter">
e908ec135fa1 Application import wizard was refactored into extensible code
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 480
diff changeset
   986
      </importer>
e908ec135fa1 Application import wizard was refactored into extensible code
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 480
diff changeset
   987
   </extension>
e908ec135fa1 Application import wizard was refactored into extensible code
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 480
diff changeset
   988
   <extension
e908ec135fa1 Application import wizard was refactored into extensible code
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 480
diff changeset
   989
         point="org.eclipse.wst.common.project.facet.core.detectors">
e908ec135fa1 Application import wizard was refactored into extensible code
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 480
diff changeset
   990
      <detector
e908ec135fa1 Application import wizard was refactored into extensible code
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 480
diff changeset
   991
            class="org.symbian.tools.wrttools.core.libraries.WrtKitFacetDetector">
e908ec135fa1 Application import wizard was refactored into extensible code
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 480
diff changeset
   992
      </detector>
e908ec135fa1 Application import wizard was refactored into extensible code
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 480
diff changeset
   993
      <detector
e908ec135fa1 Application import wizard was refactored into extensible code
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 480
diff changeset
   994
            class="org.symbian.tools.wrttools.core.libraries.PhoneGapFacetDetector">
e908ec135fa1 Application import wizard was refactored into extensible code
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 480
diff changeset
   995
      </detector>
e908ec135fa1 Application import wizard was refactored into extensible code
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 480
diff changeset
   996
   </extension>
455
5da55957c779 Bluetooth support was refactored on top of a new frameworks
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 454
diff changeset
   997
 
0
ddc9cde0ba07 Initial version of WRT Tools Plugin.
TasneemS@US-TASNEEMS
parents:
diff changeset
   998
</plugin>