org.symbian.tools.wrttools/plugin.xml
author Eugene Ostroukhov <eugeneo@symbian.org>
Wed, 14 Jul 2010 16:18:46 -0700
changeset 448 4bb763ad2b12
parent 446 01ed86179b76
child 454 38d6944cff88
permissions -rw-r--r--
Bug 3251 - phonegap project - Vibrate text overflows button size
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>
274
d236e890687c Bug 2123 - Enable use of Web Inspector
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 266
diff changeset
     4
   <extension-point id="projectTemplates" name="WRT Project Templates" schema="schema/projectTemplates.exsd"/>
310
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
     5
   <extension-point id="jsLibraries" name="JavaScript Libraries" schema="schema/jsLibraries.exsd"/>
0
ddc9cde0ba07 Initial version of WRT Tools Plugin.
TasneemS@US-TASNEEMS
parents:
diff changeset
     6
50
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
     7
<!-- Generic Project Builder and Project Natures  -->		
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
     8
 	
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
     9
<!-- Widget Project Nature -->	
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    10
 <extension
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    11
       id="WidgetProjectNature"
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    12
       point="org.eclipse.core.resources.natures">
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
       <run class="org.symbian.tools.wrttools.WidgetProjectNature"/>
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    15
    </runtime>
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    16
 </extension> 
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    17
 
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    18
<!-- Widget Project Nature Images -->
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    19
        <extension
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    20
              point="org.eclipse.ui.ide.projectNatureImages">
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    21
           <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
    22
                 icon="icons/WRT_main_16.png"
50
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    23
                 id="org.symbian.tools.wrttools.natureImage"
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    24
                 natureId="org.symbian.tools.wrttools.WidgetProjectNature">
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    25
           </image>
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    26
        </extension>
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    27
        
145
19985c154f5c Merged. Added deployment. Fixed developer experience. Added about.ini, about.properties.
tasneems@symbian.org
parents: 141
diff changeset
    28
<!-- Web Runtime Preferences --> 
19985c154f5c Merged. Added deployment. Fixed developer experience. Added about.ini, about.properties.
tasneems@symbian.org
parents: 141
diff changeset
    29
 <extension
19985c154f5c Merged. Added deployment. Fixed developer experience. Added about.ini, about.properties.
tasneems@symbian.org
parents: 141
diff changeset
    30
    point="org.eclipse.core.runtime.preferences">
19985c154f5c Merged. Added deployment. Fixed developer experience. Added about.ini, about.properties.
tasneems@symbian.org
parents: 141
diff changeset
    31
    <initializer class="org.symbian.tools.wrttools.core.deploy.PreferenceInitializer"/>
190
13a34213b146 Fixed Bug 1953 - Import File Browse Doesn't remember last directory
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 183
diff changeset
    32
    <initializer
13a34213b146 Fixed Bug 1953 - Import File Browse Doesn't remember last directory
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 183
diff changeset
    33
          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
    34
    </initializer>
145
19985c154f5c Merged. Added deployment. Fixed developer experience. Added about.ini, about.properties.
tasneems@symbian.org
parents: 141
diff changeset
    35
 </extension>
50
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    36
74
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    37
<!-- 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
    38
 <extension	
50
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    39
          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
    40
      <objectContribution
74
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    41
            objectClass="org.eclipse.core.resources.IResource"            
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    42
            id="org.symbian.tools.wrttools.widget.wrttool.packageoptions">
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    43
         <visibility>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    44
            <not>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    45
               <or>
248
039260aebcb6 Fixed 2163: Cannot include file into WGZ archive
tasneems@symbian.org
parents: 247
diff changeset
    46
               <objectState name="persistentProperty" value="org.symbian.tools.wrttools.core.packager.exclude"/>
74
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    47
			   <objectState name="extension" value="plist"/>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    48
			   <objectClass name="org.eclipse.core.resources.IProject"/>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    49
			   </or>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    50
            </not>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    51
         </visibility>
145
19985c154f5c Merged. Added deployment. Fixed developer experience. Added about.ini, about.properties.
tasneems@symbian.org
parents: 141
diff changeset
    52
     	 <filter
74
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    53
         	name="projectNature"
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    54
         	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
    55
         <action
74
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    56
             class="org.symbian.tools.wrttools.core.packager.ExcludeFileAction"
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    57
             icon="icons/exclude_archive.gif"
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    58
             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
    59
             label="Exclude From Archive"
74
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    60
             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
    61
         </action>  
19985c154f5c Merged. Added deployment. Fixed developer experience. Added about.ini, about.properties.
tasneems@symbian.org
parents: 141
diff changeset
    62
      </objectContribution>    
74
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    63
      <objectContribution
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    64
            objectClass="org.eclipse.core.resources.IResource"            
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    65
            id="org.symbian.tools.wrttools.widget.wrttool.packageoptions">
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    66
      <visibility>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    67
        <and>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    68
	        <not>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    69
	        	<objectState name="extension" value="wgz"/>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    70
	        </not>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    71
	        <and>
248
039260aebcb6 Fixed 2163: Cannot include file into WGZ archive
tasneems@symbian.org
parents: 247
diff changeset
    72
	        	<objectState name="persistentProperty" value="org.symbian.tools.wrttools.core.packager.exclude"/>
74
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    73
	        	<objectState name="projectNature" value="org.symbian.tools.wrttools.WidgetProjectNature"/>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    74
	        </and>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    75
        </and>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    76
       </visibility>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    77
       <action
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    78
             class="org.symbian.tools.wrttools.core.packager.IncludeFileAction"
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    79
             icon="icons/include_archive.gif"
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    80
             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
    81
             label="Include in Archive"
74
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    82
             menubarPath="org.symbian.tools.wrttools.contextMenuGroupMarker"> 
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    83
      </action>  
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    84
    </objectContribution>
1f72e81a1aa7 Added WRT packaging
tasneems@symbian.org
parents: 71
diff changeset
    85
   </extension>  
50
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
    86
375
d1edab2715d4 plugin.xml cleanup
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 374
diff changeset
    87
<!-- CSS Validator -->
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
    88
	<extension id="org.symbian.tools.wrttools.core.cssvalidator"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
    89
		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
    90
		<validator build="true"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
    91
			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
    92
			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
    93
			version="0.0.1">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
    94
			<include>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
    95
				<rules>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
    96
					<contentType exactMatch="false"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
    97
						id="org.eclipse.wst.css.core.csssource">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
    98
					</contentType>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
    99
				</rules>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   100
			</include>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   101
		</validator>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   102
	</extension>
50
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
   103
	 
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   104
	<extension point="org.eclipse.ui.newWizards">
409
cc687be9a816 WRT references were cleared from the UI
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 401
diff changeset
   105
		<category id="org.symbian.tools.wrttools.core.category" name="Mobile Web Tools">
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   106
		</category>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   107
		<wizard category="org.symbian.tools.wrttools.core.category"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   108
			class="org.symbian.tools.wrttools.wizards.WrtWidgetWizard"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   109
			finalPerspective="org.symbian.tools.wrttools.mainPerspective"
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
   110
			hasPages="true" icon="icons/WRT_main_16.png"
409
cc687be9a816 WRT references were cleared from the UI
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 401
diff changeset
   111
			id="org.symbian.tools.wrttools.core.wrtwidgetwizard" name="Mobile Web Application Project"
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   112
			project="true">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   113
			<description>
145
19985c154f5c Merged. Added deployment. Fixed developer experience. Added about.ini, about.properties.
tasneems@symbian.org
parents: 141
diff changeset
   114
				Creates a new Symbian WRT application project using one of the provided
19985c154f5c Merged. Added deployment. Fixed developer experience. Added about.ini, about.properties.
tasneems@symbian.org
parents: 141
diff changeset
   115
				templates
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   116
         </description>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   117
		</wizard>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   118
	</extension>
50
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
   119
	
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
   120
<!-- WRT Project Templates -->
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   121
	<extension point="org.symbian.tools.wrttools.projectTemplates">
205
cae914a9293d Fixed bug 2067: create blank WRT project. Added default icon.
tasneems@symbian.org
parents: 203
diff changeset
   122
107
7dc2457b02ac Fixed bug 1652. Added new HelloWRTKit project template.
tasneems@symbian.org
parents: 102
diff changeset
   123
      <projectTemplate
366
715f288b552a Bug 2779 - Better naming for Application templates
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 354
diff changeset
   124
            archive="projecttemplates/basic.zip"
715f288b552a Bug 2779 - Better naming for Application templates
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 354
diff changeset
   125
            default-css-name="basic"
715f288b552a Bug 2779 - Better naming for Application templates
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 354
diff changeset
   126
            default-html-name="index"
715f288b552a Bug 2779 - Better naming for Application templates
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 354
diff changeset
   127
            default-js-name="basic"
715f288b552a Bug 2779 - Better naming for Application templates
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 354
diff changeset
   128
            icon="icons/main16.gif"
715f288b552a Bug 2779 - Better naming for Application templates
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 354
diff changeset
   129
            name="Minimal Project"
381
8620655754e5 Bug 2923 - Add more templates for modern devices
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 376
diff changeset
   130
            order="10">
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   131
			<description>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   132
				This wizard generates an empty widget project with a minimal Info.plist, html,css and js.
0
ddc9cde0ba07 Initial version of WRT Tools Plugin.
TasneemS@US-TASNEEMS
parents:
diff changeset
   133
         </description>
205
cae914a9293d Fixed bug 2067: create blank WRT project. Added default icon.
tasneems@symbian.org
parents: 203
diff changeset
   134
	  </projectTemplate> 
107
7dc2457b02ac Fixed bug 1652. Added new HelloWRTKit project template.
tasneems@symbian.org
parents: 102
diff changeset
   135
71
3b6f16a76732 More project templates were introduced. Several bugs were fixed.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 63
diff changeset
   136
      <projectTemplate
107
7dc2457b02ac Fixed bug 1652. Added new HelloWRTKit project template.
tasneems@symbian.org
parents: 102
diff changeset
   137
            archive="projecttemplates/helloWithWRTKit.zip"
7dc2457b02ac Fixed bug 1652. Added new HelloWRTKit project template.
tasneems@symbian.org
parents: 102
diff changeset
   138
            default-css-name="HelloWithWRTKit"
71
3b6f16a76732 More project templates were introduced. Several bugs were fixed.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 63
diff changeset
   139
            default-html-name="index"
107
7dc2457b02ac Fixed bug 1652. Added new HelloWRTKit project template.
tasneems@symbian.org
parents: 102
diff changeset
   140
            default-js-name="HelloWithWRTKit"
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
   141
            icon="icons/WRT_main_16.png"
366
715f288b552a Bug 2779 - Better naming for Application templates
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 354
diff changeset
   142
            name="Hello World Project"
715f288b552a Bug 2779 - Better naming for Application templates
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 354
diff changeset
   143
            order="1"
107
7dc2457b02ac Fixed bug 1652. Added new HelloWRTKit project template.
tasneems@symbian.org
parents: 102
diff changeset
   144
            wizard-page-factory="org.symbian.tools.wrttools.wizards.HelloWithWRTKitProjectDetailsWizardPage$Factory">
71
3b6f16a76732 More project templates were introduced. Several bugs were fixed.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 63
diff changeset
   145
         <description>
107
7dc2457b02ac Fixed bug 1652. Added new HelloWRTKit project template.
tasneems@symbian.org
parents: 102
diff changeset
   146
            This wizard generates a basic Hello project with a minimal Info.plist, html,css and js along with WRTKit.
71
3b6f16a76732 More project templates were introduced. Several bugs were fixed.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 63
diff changeset
   147
         </description>
84
b24e6a27768d Integrating WRTKit libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 74
diff changeset
   148
         <requires-library>org.symbian.wrtkit</requires-library>
71
3b6f16a76732 More project templates were introduced. Several bugs were fixed.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 63
diff changeset
   149
      </projectTemplate>
420
716a505be7b8 Bug 2493 - Add phonegap API support and phonegap sample app
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 409
diff changeset
   150
      <projectTemplate
716a505be7b8 Bug 2493 - Add phonegap API support and phonegap sample app
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 409
diff changeset
   151
            archive="projecttemplates/phonegap.zip"
716a505be7b8 Bug 2493 - Add phonegap API support and phonegap sample app
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 409
diff changeset
   152
            default-css-name="css"
716a505be7b8 Bug 2493 - Add phonegap API support and phonegap sample app
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 409
diff changeset
   153
            default-html-name="index"
716a505be7b8 Bug 2493 - Add phonegap API support and phonegap sample app
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 409
diff changeset
   154
            default-js-name="main"
716a505be7b8 Bug 2493 - Add phonegap API support and phonegap sample app
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 409
diff changeset
   155
            icon="icons/phonegap.png"
716a505be7b8 Bug 2493 - Add phonegap API support and phonegap sample app
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 409
diff changeset
   156
            name="PhoneGap Application"
448
4bb763ad2b12 Bug 3251 - phonegap project - Vibrate text overflows button size
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 446
diff changeset
   157
            order="2"
4bb763ad2b12 Bug 3251 - phonegap project - Vibrate text overflows button size
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 446
diff changeset
   158
            screen-size="360x640">
420
716a505be7b8 Bug 2493 - Add phonegap API support and phonegap sample app
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 409
diff changeset
   159
         <description>
446
01ed86179b76 Bug 3248 - Communicate to the user that PhoneGap requires WRT 1.1
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 433
diff changeset
   160
            This wizard generates a project based on the PhoneGap library that showcases PhoneGap API usage. PhoneGap applications require WRT 1.1 or newer.
420
716a505be7b8 Bug 2493 - Add phonegap API support and phonegap sample app
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 409
diff changeset
   161
         </description>
716a505be7b8 Bug 2493 - Add phonegap API support and phonegap sample app
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 409
diff changeset
   162
         <requires-library>phonegap</requires-library>
716a505be7b8 Bug 2493 - Add phonegap API support and phonegap sample app
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 409
diff changeset
   163
      </projectTemplate>
107
7dc2457b02ac Fixed bug 1652. Added new HelloWRTKit project template.
tasneems@symbian.org
parents: 102
diff changeset
   164
71
3b6f16a76732 More project templates were introduced. Several bugs were fixed.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 63
diff changeset
   165
      <projectTemplate
3b6f16a76732 More project templates were introduced. Several bugs were fixed.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 63
diff changeset
   166
            archive="projecttemplates/flickr.zip"
3b6f16a76732 More project templates were introduced. Several bugs were fixed.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 63
diff changeset
   167
            default-css-name="Flickr"
3b6f16a76732 More project templates were introduced. Several bugs were fixed.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 63
diff changeset
   168
            default-html-name="index"
3b6f16a76732 More project templates were introduced. Several bugs were fixed.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 63
diff changeset
   169
            default-js-name="Flickr"
3b6f16a76732 More project templates were introduced. Several bugs were fixed.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 63
diff changeset
   170
            icon="icons/flickr.gif"
366
715f288b552a Bug 2779 - Better naming for Application templates
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 354
diff changeset
   171
            name="Flickr Project"
420
716a505be7b8 Bug 2493 - Add phonegap API support and phonegap sample app
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 409
diff changeset
   172
            order="3"
71
3b6f16a76732 More project templates were introduced. Several bugs were fixed.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 63
diff changeset
   173
            wizard-page-factory="org.symbian.tools.wrttools.wizards.FlickrProjectDetailsWizardPage$Factory">
3b6f16a76732 More project templates were introduced. Several bugs were fixed.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 63
diff changeset
   174
         <description>
3b6f16a76732 More project templates were introduced. Several bugs were fixed.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 63
diff changeset
   175
            This wizard generates an Flickr project with a minimal Info.plist, html,css and js and WRTKit.
3b6f16a76732 More project templates were introduced. Several bugs were fixed.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 63
diff changeset
   176
         </description>
84
b24e6a27768d Integrating WRTKit libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 74
diff changeset
   177
         <requires-library>org.symbian.wrtkit</requires-library>
71
3b6f16a76732 More project templates were introduced. Several bugs were fixed.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 63
diff changeset
   178
      </projectTemplate>
107
7dc2457b02ac Fixed bug 1652. Added new HelloWRTKit project template.
tasneems@symbian.org
parents: 102
diff changeset
   179
71
3b6f16a76732 More project templates were introduced. Several bugs were fixed.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 63
diff changeset
   180
      <projectTemplate
3b6f16a76732 More project templates were introduced. Several bugs were fixed.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 63
diff changeset
   181
            archive="projecttemplates/rssreader.zip"
3b6f16a76732 More project templates were introduced. Several bugs were fixed.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 63
diff changeset
   182
            default-css-name="RSSReader"
3b6f16a76732 More project templates were introduced. Several bugs were fixed.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 63
diff changeset
   183
            default-html-name="index"
3b6f16a76732 More project templates were introduced. Several bugs were fixed.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 63
diff changeset
   184
            default-js-name="RSSReader"
3b6f16a76732 More project templates were introduced. Several bugs were fixed.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 63
diff changeset
   185
            icon="icons/rss.gif"
366
715f288b552a Bug 2779 - Better naming for Application templates
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 354
diff changeset
   186
            name="RSS Reader Project"
420
716a505be7b8 Bug 2493 - Add phonegap API support and phonegap sample app
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 409
diff changeset
   187
            order="4"
71
3b6f16a76732 More project templates were introduced. Several bugs were fixed.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 63
diff changeset
   188
            wizard-page-factory="org.symbian.tools.wrttools.wizards.RssReaderProjectDetailsWizardPage$Factory">
3b6f16a76732 More project templates were introduced. Several bugs were fixed.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 63
diff changeset
   189
         <description>
3b6f16a76732 More project templates were introduced. Several bugs were fixed.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 63
diff changeset
   190
            This wizard generates an RSS Reader project with a minimal Info.plist, html,css and js and WRTKit.
3b6f16a76732 More project templates were introduced. Several bugs were fixed.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 63
diff changeset
   191
         </description>
84
b24e6a27768d Integrating WRTKit libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 74
diff changeset
   192
         <requires-library>org.symbian.wrtkit</requires-library>
71
3b6f16a76732 More project templates were introduced. Several bugs were fixed.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 63
diff changeset
   193
      </projectTemplate>
381
8620655754e5 Bug 2923 - Add more templates for modern devices
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 376
diff changeset
   194
      <projectTemplate
388
bd7a2b98ea78 Bug 2923 - Add more templates for modern devices
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 387
diff changeset
   195
            archive="projecttemplates/uitemplate.zip"
381
8620655754e5 Bug 2923 - Add more templates for modern devices
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 376
diff changeset
   196
            default-css-name="basic"
8620655754e5 Bug 2923 - Add more templates for modern devices
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 376
diff changeset
   197
            default-html-name="index"
8620655754e5 Bug 2923 - Add more templates for modern devices
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 376
diff changeset
   198
            default-js-name="basic"
8620655754e5 Bug 2923 - Add more templates for modern devices
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 376
diff changeset
   199
            icon="icons/main16.gif"
448
4bb763ad2b12 Bug 3251 - phonegap project - Vibrate text overflows button size
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 446
diff changeset
   200
            name="Various UI Templates"
420
716a505be7b8 Bug 2493 - Add phonegap API support and phonegap sample app
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 409
diff changeset
   201
            order="5"
448
4bb763ad2b12 Bug 3251 - phonegap project - Vibrate text overflows button size
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 446
diff changeset
   202
            screen-size="360x640">
381
8620655754e5 Bug 2923 - Add more templates for modern devices
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 376
diff changeset
   203
         <description>
8620655754e5 Bug 2923 - Add more templates for modern devices
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 376
diff changeset
   204
            Includes templates for high-end devices from Forum.Nokia.
8620655754e5 Bug 2923 - Add more templates for modern devices
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 376
diff changeset
   205
         </description>
8620655754e5 Bug 2923 - Add more templates for modern devices
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 376
diff changeset
   206
      </projectTemplate>
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   207
	</extension>
50
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
   208
	
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
   209
<!-- Import Wizard -->
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   210
	<extension point="org.eclipse.ui.importWizards">
409
cc687be9a816 WRT references were cleared from the UI
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 401
diff changeset
   211
		<category id="org.symbian.tools.wrttools.import" name="Mobile Web Tools">
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   212
		</category>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   213
		<wizard category="org.symbian.tools.wrttools.import"
203
bb3a18c4e037 Refactoring, some messages were updated
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 200
diff changeset
   214
			class="org.symbian.tools.wrttools.wizards.projectimport.WrtProjectsImportWizard"
bb3a18c4e037 Refactoring, some messages were updated
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 200
diff changeset
   215
			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
   216
			name="Existing Mobile Web Projects into Workspace">
203
bb3a18c4e037 Refactoring, some messages were updated
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 200
diff changeset
   217
     <description>
bb3a18c4e037 Refactoring, some messages were updated
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 200
diff changeset
   218
        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
   219
     </description>
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   220
		</wizard>
354
0bceeb415e7f Bug 2892 - Import wgz file from Import menu should have same functionality as File New Project Create from wgz
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 353
diff changeset
   221
		
0bceeb415e7f Bug 2892 - Import wgz file from Import menu should have same functionality as File New Project Create from wgz
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 353
diff changeset
   222
		<wizard
0bceeb415e7f Bug 2892 - Import wgz file from Import menu should have same functionality as File New Project Create from wgz
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 353
diff changeset
   223
          category="org.symbian.tools.wrttools.import"
0bceeb415e7f Bug 2892 - Import wgz file from Import menu should have same functionality as File New Project Create from wgz
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 353
diff changeset
   224
          class="org.symbian.tools.wrttools.wizards.WgzImportWizard"
0bceeb415e7f Bug 2892 - Import wgz file from Import menu should have same functionality as File New Project Create from wgz
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 353
diff changeset
   225
          icon="icons/import_16x16px.png"
0bceeb415e7f Bug 2892 - Import wgz file from Import menu should have same functionality as File New Project Create from wgz
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 353
diff changeset
   226
          id="org.symbian.tools.wrttools.importwgz"
0bceeb415e7f Bug 2892 - Import wgz file from Import menu should have same functionality as File New Project Create from wgz
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 353
diff changeset
   227
          name="Application Archive (WGZ)">
0bceeb415e7f Bug 2892 - Import wgz file from Import menu should have same functionality as File New Project Create from wgz
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 353
diff changeset
   228
        <description>
0bceeb415e7f Bug 2892 - Import wgz file from Import menu should have same functionality as File New Project Create from wgz
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 353
diff changeset
   229
          Create WRT project from deployable WGZ application archive
0bceeb415e7f Bug 2892 - Import wgz file from Import menu should have same functionality as File New Project Create from wgz
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 353
diff changeset
   230
        </description>
0bceeb415e7f Bug 2892 - Import wgz file from Import menu should have same functionality as File New Project Create from wgz
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 353
diff changeset
   231
      </wizard>
0bceeb415e7f Bug 2892 - Import wgz file from Import menu should have same functionality as File New Project Create from wgz
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 353
diff changeset
   232
		
84
b24e6a27768d Integrating WRTKit libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 74
diff changeset
   233
    </extension>
50
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
   234
	
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
   235
<!-- WRT Content Descriptor (.plist) file -->
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   236
	<extension point="org.eclipse.core.contenttype.contentTypes">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   237
		<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
   238
			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
   239
			name="WebRuntime Descriptor File" priority="normal">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   240
		</content-type>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   241
	</extension>
50
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
   242
	
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
   243
<!-- Perspective Extensions -->
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   244
	<extension point="org.eclipse.ui.perspectiveExtensions">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   245
		<perspectiveExtension targetID="org.eclipse.wst.jsdt.ui.JavaPerspective">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   246
			<newWizardShortcut id="org.symbian.tools.wrttools.core.wrtwidgetwizard">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   247
			</newWizardShortcut>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   248
		</perspectiveExtension>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   249
		<perspectiveExtension targetID="org.eclipse.debug.ui.DebugPerspective">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   250
			<newWizardShortcut id="org.symbian.tools.wrttools.core.wrtwidgetwizard">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   251
			</newWizardShortcut>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   252
		</perspectiveExtension>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   253
	</extension>
50
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
   254
	
0560e98b9bf6 Added widget project nature and WRT validators
tasneems@symbian.org
parents: 42
diff changeset
   255
<!-- Navigator Extensions -->
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   256
	<extension point="org.eclipse.ui.views">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   257
		<view allowMultiple="false" category="org.symbian.tools.wrttools.views"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   258
			class="org.eclipse.ui.navigator.CommonNavigator" icon="icons/main16.gif"
401
72386743b723 Improve TMW messages - bug 3121
Paul Beusterien <paulb@symbian.org>
parents: 397
diff changeset
   259
			id="org.symbian.tools.wrttools.wrtnavigator" name="Projects"
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   260
			restorable="true">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   261
		</view>
401
72386743b723 Improve TMW messages - bug 3121
Paul Beusterien <paulb@symbian.org>
parents: 397
diff changeset
   262
		<category id="org.symbian.tools.wrttools.views" name="Tools for Mobile Web">
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   263
		</category>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   264
	</extension>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   265
	<extension point="org.eclipse.ui.navigator.viewer">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   266
		<viewer viewerId="org.symbian.tools.wrttools.wrtnavigator">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   267
			<popupMenu allowsPlatformContributions="true"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   268
				id="org.eclipse.ui.navigator.ProjectExplorer#PopupMenu">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   269
				<insertionPoint name="group.new" />
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   270
				<insertionPoint name="group.open" separator="true" />
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   271
				<insertionPoint name="group.openWith" />
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   272
				<insertionPoint name="group.edit" separator="true" />
48
df12256c6ad0 Several bugs were fixed
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 42
diff changeset
   273
				<insertionPoint name="group.reorganize" separator="true" />
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   274
				<insertionPoint name="group.port" separator="true" />
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   275
				<insertionPoint name="group.build" separator="true" />
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   276
				<insertionPoint name="group.generate" separator="true" />
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   277
				<insertionPoint name="group.search" separator="true" />
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   278
				<insertionPoint name="additions" separator="true" />
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   279
				<insertionPoint name="group.properties" separator="true" />
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   280
			</popupMenu>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   281
		</viewer>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   282
		<viewerContentBinding viewerId="org.symbian.tools.wrttools.wrtnavigator">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   283
			<includes>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   284
				<contentExtension
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   285
          isRoot="true"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   286
          pattern="org.symbian.tools.wrttools.navigatorcontent"/>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   287
				<contentExtension pattern="org.eclipse.ui.navigator.resources.filters.*" />
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
   288
				<contentExtension
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
   289
          isRoot="true"
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
   290
          pattern="org.symbian.tools.wrttools.wrtLinkHelper"/>
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   291
			</includes>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   292
		</viewerContentBinding>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   293
		<viewerActionBinding viewerId="org.symbian.tools.wrttools.wrtnavigator">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   294
			<includes>
48
df12256c6ad0 Several bugs were fixed
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 42
diff changeset
   295
				<actionExtension pattern="org.eclipse.ui.navigator.resources.PortingActions" />
df12256c6ad0 Several bugs were fixed
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 42
diff changeset
   296
				<actionExtension pattern="org.eclipse.ui.navigator.resources.GotoActions" />
df12256c6ad0 Several bugs were fixed
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 42
diff changeset
   297
				<actionExtension pattern="org.eclipse.ui.navigator.resources.GoIntoActions" />
df12256c6ad0 Several bugs were fixed
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 42
diff changeset
   298
				<actionExtension pattern="org.eclipse.ui.navigator.resources.NewActions" />
df12256c6ad0 Several bugs were fixed
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 42
diff changeset
   299
				<actionExtension pattern="org.eclipse.ui.navigator.resources.PropertiesActionProvider" />
df12256c6ad0 Several bugs were fixed
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 42
diff changeset
   300
				<actionExtension pattern="org.eclipse.ui.navigator.resources.WorkManagementActionProvider" />
df12256c6ad0 Several bugs were fixed
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 42
diff changeset
   301
				<actionExtension pattern="org.eclipse.ui.navigator.resources.ResourceMgmtActions" />
df12256c6ad0 Several bugs were fixed
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 42
diff changeset
   302
				<actionExtension pattern="org.eclipse.ui.navigator.resources.UndoRedoActionProvider" />
df12256c6ad0 Several bugs were fixed
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 42
diff changeset
   303
				<actionExtension pattern="org.eclipse.ui.navigator.resources.WorkingSetActions" />
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   304
			</includes>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   305
		</viewerActionBinding>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   306
		<dragAssistant
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   307
			class="org.eclipse.ui.navigator.resources.ResourceDragAdapterAssistant"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   308
			viewerId="org.symbian.tools.wrttools.wrtnavigator" />
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   309
	</extension>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   310
	 <extension
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   311
       point="org.eclipse.ui.navigator.navigatorContent">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   312
    <navigatorContent
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   313
          activeByDefault="true"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   314
          contentProvider="org.symbian.tools.wrttools.navigator.WRTNavigatorContentProvider"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   315
          icon="icons/main16.gif"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   316
          id="org.symbian.tools.wrttools.navigatorcontent"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   317
          labelProvider="org.eclipse.wst.jsdt.internal.ui.navigator.JavaNavigatorLabelProvider"
409
cc687be9a816 WRT references were cleared from the UI
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 401
diff changeset
   318
          name="Mobile Web"
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   319
          priority="high"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   320
          providesSaveables="false">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   321
       <triggerPoints>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   322
          <or>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   323
             <instanceof
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   324
                   value="org.eclipse.wst.jsdt.core.IJavaScriptElement">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   325
             </instanceof>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   326
             <instanceof
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   327
                   value="org.eclipse.wst.jsdt.core.IJarEntryResource">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   328
             </instanceof>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   329
             <instanceof
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   330
                   value="org.eclipse.wst.jsdt.internal.ui.packageview.PackageFragmentRootContainer">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   331
             </instanceof>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   332
             <instanceof
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   333
                   value="org.eclipse.wst.jsdt.ui.ProjectLibraryRoot">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   334
             </instanceof>
194
46f0d372a45c Fixed Bug 1968 - Error Log - Cannot find navigator content extension
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 190
diff changeset
   335
             <instanceof
46f0d372a45c Fixed Bug 1968 - Error Log - Cannot find navigator content extension
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 190
diff changeset
   336
                   value="org.eclipse.core.resources.IResource">
46f0d372a45c Fixed Bug 1968 - Error Log - Cannot find navigator content extension
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 190
diff changeset
   337
             </instanceof>
46f0d372a45c Fixed Bug 1968 - Error Log - Cannot find navigator content extension
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 190
diff changeset
   338
             <adapt
46f0d372a45c Fixed Bug 1968 - Error Log - Cannot find navigator content extension
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 190
diff changeset
   339
                   type="org.eclipse.core.resources.IProject">
46f0d372a45c Fixed Bug 1968 - Error Log - Cannot find navigator content extension
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 190
diff changeset
   340
                <test
46f0d372a45c Fixed Bug 1968 - Error Log - Cannot find navigator content extension
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 190
diff changeset
   341
                      property="org.eclipse.core.resources.projectNature"
46f0d372a45c Fixed Bug 1968 - Error Log - Cannot find navigator content extension
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 190
diff changeset
   342
                      value="org.symbian.tools.wrttools.WidgetProjectNature">
46f0d372a45c Fixed Bug 1968 - Error Log - Cannot find navigator content extension
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 190
diff changeset
   343
                </test>
46f0d372a45c Fixed Bug 1968 - Error Log - Cannot find navigator content extension
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 190
diff changeset
   344
             </adapt>
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   345
          </or>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   346
       </triggerPoints>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   347
       <possibleChildren>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   348
          <or>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   349
             <instanceof
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   350
                   value="org.eclipse.core.resources.IResource">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   351
             </instanceof>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   352
             <instanceof
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   353
                   value="org.eclipse.wst.jsdt.core.IJavaScriptElement">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   354
             </instanceof>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   355
             <instanceof
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   356
                   value="org.eclipse.wst.jsdt.core.IJarEntryResource">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   357
             </instanceof>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   358
             <instanceof
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   359
                   value="org.eclipse.wst.jsdt.ui.ProjectLibraryRoot">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   360
             </instanceof>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   361
          </or>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   362
       </possibleChildren>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   363
       <actionProvider
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   364
             class="org.eclipse.wst.jsdt.internal.ui.navigator.JavaNavigatorActionProvider"
48
df12256c6ad0 Several bugs were fixed
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 42
diff changeset
   365
             id="org.eclipse.wst.jsdt.ui.navigator.actions.StandardActions">
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   366
       </actionProvider>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   367
       <actionProvider
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   368
             class="org.eclipse.wst.jsdt.internal.ui.navigator.JavaNavigatorRefactorActionProvider"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   369
             id="org.eclipse.wst.jsdt.ui.navigator.actions.RefactorActions"
126
d496880b1e8b Added gif for importing Aptana IDE project
tasneems@symbian.org
parents: 122
diff changeset
   370
             overrides="org.eclipse.ui.navigator.resources.actions.RefactorActions">
d496880b1e8b Added gif for importing Aptana IDE project
tasneems@symbian.org
parents: 122
diff changeset
   371
          <enablement>
d496880b1e8b Added gif for importing Aptana IDE project
tasneems@symbian.org
parents: 122
diff changeset
   372
             <or>
d496880b1e8b Added gif for importing Aptana IDE project
tasneems@symbian.org
parents: 122
diff changeset
   373
                <adapt
d496880b1e8b Added gif for importing Aptana IDE project
tasneems@symbian.org
parents: 122
diff changeset
   374
                      type="java.util.Collection">
d496880b1e8b Added gif for importing Aptana IDE project
tasneems@symbian.org
parents: 122
diff changeset
   375
                   <count
d496880b1e8b Added gif for importing Aptana IDE project
tasneems@symbian.org
parents: 122
diff changeset
   376
                         value="0">
d496880b1e8b Added gif for importing Aptana IDE project
tasneems@symbian.org
parents: 122
diff changeset
   377
                   </count>
d496880b1e8b Added gif for importing Aptana IDE project
tasneems@symbian.org
parents: 122
diff changeset
   378
                </adapt>
153
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   379
                <and>
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   380
                   <or>
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   381
                      <instanceof
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   382
                            value="org.eclipse.wst.jsdt.core.IJavaScriptElement">
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   383
                      </instanceof>
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   384
                      <instanceof
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   385
                            value="org.eclipse.wst.jsdt.core.IJarEntryResource">
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   386
                      </instanceof>
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   387
                   </or>
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   388
                   <not>
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   389
                      <instanceof
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   390
                            value="org.eclipse.wst.jsdt.core.ITypeRoot">
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   391
                      </instanceof>
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   392
                   </not>
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   393
                </and>
126
d496880b1e8b Added gif for importing Aptana IDE project
tasneems@symbian.org
parents: 122
diff changeset
   394
             </or>
d496880b1e8b Added gif for importing Aptana IDE project
tasneems@symbian.org
parents: 122
diff changeset
   395
          </enablement>
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   396
       </actionProvider>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   397
       <actionProvider
153
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   398
             class="org.symbian.tools.wrttools.navigator.RenameMoveActionProvider"
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   399
             id="org.symbian.wrttools.navigator.MoveRename"
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   400
             overrides="org.eclipse.ui.navigator.resources.actions.RefactorActions">
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   401
          <enablement>
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   402
             <and>
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   403
                <adapt
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   404
                      type="org.eclipse.core.resources.IResource">
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   405
                </adapt>
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   406
                <not>
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   407
                   <instanceof
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   408
                         value="org.eclipse.wst.jsdt.core.IType">
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   409
                   </instanceof>
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   410
                </not>
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   411
             </and>
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   412
          </enablement>
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   413
       </actionProvider>
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   414
       <actionProvider
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   415
             class="org.eclipse.wst.jsdt.internal.ui.navigator.PackageExplorerOpenActionProvider"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   416
             id="org.eclipse.wst.jsdt.ui.navigator.actions.OpenActions"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   417
             overrides="org.eclipse.ui.navigator.resources.OpenActions">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   418
       </actionProvider>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   419
       <override
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   420
             policy="InvokeAlwaysRegardlessOfSuppressedExt"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   421
             suppressedExtensionId="org.eclipse.ui.navigator.resourceContent">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   422
       </override>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   423
       <commonWizard
354
0bceeb415e7f Bug 2892 - Import wgz file from Import menu should have same functionality as File New Project Create from wgz
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 353
diff changeset
   424
             type="import"
275
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   425
             wizardId="org.symbian.tools.wrttools.importwgz">
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   426
          <enablement>
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   427
             <or>
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   428
                <adapt
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   429
                      type="org.eclipse.core.resources.IResource">
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   430
                </adapt>
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   431
                <adapt
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   432
                      type="java.util.Collection">
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   433
                </adapt>
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   434
             </or>
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   435
          </enablement>
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   436
       </commonWizard>
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   437
       <commonWizard
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   438
             menuGroupId="group.new.z"
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   439
             type="new"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   440
             wizardId="org.symbian.tools.wrttools.core.wrtwidgetwizard">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   441
          <enablement>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   442
             <or>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   443
                <adapt
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   444
                      type="org.eclipse.core.resources.IResource">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   445
                </adapt>
153
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   446
                <adapt
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   447
                      type="java.util.Collection">
87faf2d4e64c Reintroduced fix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 152
diff changeset
   448
                </adapt>
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   449
             </or>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   450
          </enablement>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   451
       </commonWizard>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   452
       <commonWizard
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   453
             type="new"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   454
             wizardId="org.eclipse.wst.html.ui.internal.wizard.NewHTMLWizard">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   455
          <enablement>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   456
             <adapt
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   457
                   type="org.eclipse.core.resources.IResource">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   458
             </adapt>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   459
          </enablement>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   460
       </commonWizard>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   461
       <commonWizard
275
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   462
             menuGroupId="group.new.generic"
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   463
             type="new"
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   464
             wizardId="org.eclipse.ui.wizards.new.folder">
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   465
          <enablement>
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   466
             <adapt
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   467
                   type="org.eclipse.core.resources.IResource">
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   468
             </adapt>
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   469
          </enablement>
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   470
       </commonWizard>
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   471
       <commonWizard
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   472
             menuGroupId="group.new.generic"
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   473
             type="new"
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   474
             wizardId="org.eclipse.ui.wizards.new.file">
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   475
          <enablement>
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   476
             <adapt
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   477
                   type="org.eclipse.core.resources.IResource">
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   478
             </adapt>
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   479
          </enablement>
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   480
       </commonWizard>
12c2ea2194c7 Bug 2214 - Debugger is not updated when JS file is edited.
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 274
diff changeset
   481
       <commonWizard
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   482
             type="new"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   483
             wizardId="org.eclipse.wst.css.ui.internal.wizard.NewCSSWizard">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   484
          <enablement>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   485
             <adapt
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   486
                   type="org.eclipse.core.resources.IResource">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   487
             </adapt>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   488
          </enablement>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   489
       </commonWizard>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   490
       <commonWizard
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   491
             type="new"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   492
             wizardId="org.eclipse.wst.jsdt.ui.NewJSWizard">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   493
          <enablement>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   494
             <adapt
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   495
                   type="org.eclipse.core.resources.IResource">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   496
             </adapt>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   497
          </enablement>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   498
       </commonWizard>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   499
       <commonWizard
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   500
             type="import"
203
bb3a18c4e037 Refactoring, some messages were updated
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 200
diff changeset
   501
             wizardId="org.symbian.tools.wrttools.import.projectImport">
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   502
          <enablement>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   503
             <or>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   504
                <adapt
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   505
                      type="org.eclipse.core.resources.IResource">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   506
                </adapt>
84
b24e6a27768d Integrating WRTKit libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 74
diff changeset
   507
                <adapt
b24e6a27768d Integrating WRTKit libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 74
diff changeset
   508
                      type="java.util.Collection">
b24e6a27768d Integrating WRTKit libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 74
diff changeset
   509
                </adapt>
b24e6a27768d Integrating WRTKit libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 74
diff changeset
   510
             </or>
b24e6a27768d Integrating WRTKit libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 74
diff changeset
   511
          </enablement>
b24e6a27768d Integrating WRTKit libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 74
diff changeset
   512
       </commonWizard>
38
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   513
       <dropAssistant
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   514
             class="org.eclipse.wst.jsdt.internal.ui.navigator.JavaDropAdapterAssistant"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   515
             id="org.eclipse.wst.jsdt.ui.dropAssistant">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   516
          <possibleDropTargets>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   517
             <or>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   518
                <instanceof
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   519
                      value="org.eclipse.core.resources.IResource">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   520
                </instanceof>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   521
                <instanceof
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   522
                      value="org.eclipse.wst.jsdt.core.IJavaScriptElement">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   523
                </instanceof>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   524
             </or>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   525
          </possibleDropTargets>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   526
       </dropAssistant>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   527
       <commonSorter
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   528
             class="org.symbian.tools.wrttools.navigator.NavigatorSorter"
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   529
             id="org.symbian.tools.wrttools.sorter">
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   530
       </commonSorter>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   531
    </navigatorContent>
954dbf7baac6 Merged with the most current version
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 31
diff changeset
   532
 </extension>
84
b24e6a27768d Integrating WRTKit libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 74
diff changeset
   533
 <extension
b24e6a27768d Integrating WRTKit libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 74
diff changeset
   534
       point="org.eclipse.wst.jsdt.core.JsGlobalScopeContainerInitializer">
b24e6a27768d Integrating WRTKit libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 74
diff changeset
   535
    <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
   536
       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
   537
       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
   538
    </JsGlobalScopeContainerInitializer>
84
b24e6a27768d Integrating WRTKit libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 74
diff changeset
   539
 </extension>
b24e6a27768d Integrating WRTKit libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 74
diff changeset
   540
 <extension
b24e6a27768d Integrating WRTKit libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 74
diff changeset
   541
        point="org.eclipse.wst.jsdt.ui.JsGlobalScopeContainerPage">
b24e6a27768d Integrating WRTKit libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 74
diff changeset
   542
    <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
   543
            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
   544
            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
   545
            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
   546
    </JsGlobalScopeContainerPage>    
84
b24e6a27768d Integrating WRTKit libraries
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 74
diff changeset
   547
  </extension>
98
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   548
 <extension
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   549
       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
   550
       name="WRT Application Descriptor Validator"
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   551
       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
   552
    <validator
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   553
          build="true"
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   554
          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
   555
          manual="true"
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   556
          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
   557
          version="0.0.1">
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   558
       <include>
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   559
          <rules>
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   560
             <projectNature
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   561
                   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
   562
             </projectNature>
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   563
          </rules>
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   564
       </include>
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   565
    </validator>
b6d252d808df Nokia validation code is now integrated with WTP framework
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 84
diff changeset
   566
 </extension>
183
c39bca475a90 Fixed Bug 1964 - Deployment preference page is in the wrong category
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 168
diff changeset
   567
 <extension
c39bca475a90 Fixed Bug 1964 - Deployment preference page is in the wrong category
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 168
diff changeset
   568
       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
   569
    <keyword
c39bca475a90 Fixed Bug 1964 - Deployment preference page is in the wrong category
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 168
diff changeset
   570
          id="org.symbian.tools.wrttools.wrtwords"
237
63858673b918 Bug 2086 - Review Run/Debug preferences
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 218
diff changeset
   571
          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
   572
    </keyword>
c39bca475a90 Fixed Bug 1964 - Deployment preference page is in the wrong category
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 168
diff changeset
   573
 </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
   574
 <extension
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
   575
       point="org.eclipse.ui.navigator.linkHelper">
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
   576
    <linkHelper
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
   577
          class="org.symbian.tools.wrttools.navigator.WrtNavigatorLinkHelper"
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
   578
          id="org.symbian.tools.wrttools.wrtLinkHelper">
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
   579
       <editorInputEnablement>
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
   580
          <adapt
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
   581
                type="org.eclipse.ui.IFileEditorInput">
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
   582
          </adapt>
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
   583
       </editorInputEnablement>
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
   584
       <selectionEnablement>
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
   585
          <or>
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
   586
             <adapt
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
   587
                   type="org.eclipse.wst.jsdt.core.IJavaScriptElement">
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
   588
             </adapt>
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
   589
             <instanceof
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
   590
                   value="java.util.Collection">
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
   591
             </instanceof>
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
   592
             <adapt
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
   593
                   type="org.eclipse.core.resources.IResource">
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
   594
             </adapt>
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
   595
          </or>
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
   596
       </selectionEnablement>
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
   597
    </linkHelper>
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
   598
 </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
   599
 <extension
d6dd3cce46a6 Bug 2070 - Code completion: Add support for code completion for built in global objects
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 216
diff changeset
   600
       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
   601
       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
   602
       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
   603
    <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
   604
          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
   605
    </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
   606
 </extension>
263
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   607
 <extension
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   608
       point="org.eclipse.ui.commands">
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   609
    <category
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   610
          id="org.symbian.tools.wrttools.commands.maincategory"
401
72386743b723 Improve TMW messages - bug 3121
Paul Beusterien <paulb@symbian.org>
parents: 397
diff changeset
   611
          name="Tools for Mobile Web">
263
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   612
    </category>
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   613
    <command
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   614
          categoryId="org.symbian.tools.wrttools.commands.maincategory"
281
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   615
          description="Deploys an application to phone or emulator"
263
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   616
          id="org.symbian.tools.wrttools.commands.deploy"
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   617
          name="Deploy Application">
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   618
    </command>
281
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   619
    <command
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   620
          categoryId="org.symbian.tools.wrttools.commands.maincategory"
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   621
          description="Packages an application for distribution or deployment"
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   622
          id="org.symbian.tools.wrttools.commands.package"
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   623
          name="Package Application">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   624
    </command>
310
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   625
    <command
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   626
          categoryId="org.symbian.tools.wrttools.commands.maincategory"
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   627
          defaultHandler="org.symbian.tools.wrttools.handlers.AddJSLibrary"
401
72386743b723 Improve TMW messages - bug 3121
Paul Beusterien <paulb@symbian.org>
parents: 397
diff changeset
   628
          description="Adds JavaScript libraries to Mobile Web projects"
310
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   629
          id="org.symbian.tools.wrttools.addlibrary"
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   630
          name="Add JavaScript Libraries...">
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   631
    </command>
263
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   632
 </extension>
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   633
 <extension
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   634
       point="org.eclipse.ui.menus">
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   635
    <menuContribution
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   636
          locationURI="toolbar:org.eclipse.ui.main.toolbar">
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   637
       <toolbar
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   638
             id="org.symbian.tools.wrttools">
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   639
          <command
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   640
                commandId="org.symbian.tools.wrttools.commands.deploy"
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   641
                icon="icons/deploy_widget.gif"
281
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   642
                id="org.symbian.tools.wrttools.toolbars.deploy">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   643
          </command>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   644
          <command
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   645
                commandId="org.symbian.tools.wrttools.commands.package"
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   646
                icon="icons/package_widget.gif"
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   647
                id="org.symbian.tools.wrttools.toolbars.package">
263
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   648
          </command>
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   649
       </toolbar>
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   650
    </menuContribution>
281
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   651
    <menuContribution
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   652
          locationURI="menu:project?after=additions">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   653
       <separator
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   654
             name="org.symbian.tools.wrttools.beginwert"
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   655
             visible="true">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   656
       </separator>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   657
       <command
310
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   658
             commandId="org.symbian.tools.wrttools.addlibrary"
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   659
             id="org.symbian.tools.wrttools.toolbars.addlibrary"
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   660
             style="push">
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   661
       </command>
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   662
       <separator
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   663
             name="org.symbian.tools.wrttools.deploypackage"
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   664
             visible="true">
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   665
       </separator>
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   666
       <command
281
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   667
             commandId="org.symbian.tools.wrttools.commands.deploy"
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   668
             icon="icons/deploy_widget.gif"
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   669
             id="org.symbian.tools.wrttools.toolbars.deploy">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   670
       </command>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   671
       <command
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   672
             commandId="org.symbian.tools.wrttools.commands.package"
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   673
             icon="icons/package_widget.gif"
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   674
             id="org.symbian.tools.wrttools.toolbars.package">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   675
       </command>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   676
       <separator
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   677
             name="org.symbian.tools.wrttools.endwrt"
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   678
             visible="true">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   679
       </separator>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   680
    </menuContribution>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   681
    <menuContribution
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   682
          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
   683
       <separator
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   684
             name="org.symbian.tools.wrttools.beginwert"
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   685
             visible="true">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   686
       </separator>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   687
       <command
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   688
             commandId="org.symbian.tools.wrttools.commands.deploy"
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   689
             icon="icons/deploy_widget.gif"
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   690
             id="org.symbian.tools.wrttools.toolbars.deploy">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   691
          <visibleWhen>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   692
             <and>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   693
                <iterate
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   694
                      ifEmpty="false"
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   695
                      operator="and">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   696
                   <adapt
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   697
                         type="org.eclipse.core.resources.IProject">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   698
                   </adapt>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   699
                </iterate>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   700
                <count
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   701
                      value="1">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   702
                </count>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   703
             </and>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   704
          </visibleWhen>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   705
       </command>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   706
       <command
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   707
             commandId="org.symbian.tools.wrttools.commands.package"
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   708
             icon="icons/package_widget.gif"
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   709
             id="org.symbian.tools.wrttools.toolbars.package">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   710
          <visibleWhen>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   711
             <and>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   712
                <iterate
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   713
                      ifEmpty="false"
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   714
                      operator="and">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   715
                   <adapt
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   716
                         type="org.eclipse.core.resources.IProject">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   717
                   </adapt>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   718
                </iterate>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   719
                <count
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   720
                      value="1">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   721
                </count>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   722
             </and>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   723
          </visibleWhen>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   724
       </command>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   725
       <separator
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   726
             name="org.symbian.tools.wrttools.endwrt"
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   727
             visible="true">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   728
       </separator>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   729
    </menuContribution>
310
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   730
    <menuContribution
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   731
          locationURI="popup:org.eclipse.ui.popup.any?after=group.build">
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   732
       <dynamic
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   733
             class="org.symbian.tools.wrttools.core.libraries.AddLibraryPopupMenu$LibrariesPopupMenu"
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   734
             id="org.symbian.tools.wrttools.addlibrary">
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   735
          <visibleWhen>
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   736
             <and>
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   737
                <iterate
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   738
                      ifEmpty="false"
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   739
                      operator="and">
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   740
                   <adapt
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   741
                         type="org.eclipse.core.resources.IProject">
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   742
                      <test
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   743
                            property="org.eclipse.core.resources.projectNature"
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   744
                            value="org.symbian.tools.wrttools.WidgetProjectNature">
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   745
                      </test>
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   746
                   </adapt>
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   747
                </iterate>
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   748
                <count
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   749
                      value="1">
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   750
                </count>
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   751
             </and>
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   752
          </visibleWhen>
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   753
       </dynamic>
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   754
       <separator
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   755
             name="org.symbian.tools.wrttools.libs"
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   756
             visible="true">
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   757
       </separator>
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   758
    </menuContribution>
263
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   759
 </extension>
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   760
 <extension
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   761
       point="org.eclipse.ui.handlers">
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   762
    <handler
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   763
          class="org.symbian.tools.wrttools.handlers.DeployHandler"
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   764
          commandId="org.symbian.tools.wrttools.commands.deploy">
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   765
       <enabledWhen>
281
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   766
          <reference
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   767
                definitionId="org.symbian.tools.wrttools.symbianproject">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   768
          </reference>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   769
       </enabledWhen>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   770
    </handler>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   771
    <handler
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   772
          class="org.symbian.tools.wrttools.handlers.PackageApplicationHandler"
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   773
          commandId="org.symbian.tools.wrttools.commands.package">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   774
       <enabledWhen>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   775
          <reference
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   776
                definitionId="org.symbian.tools.wrttools.symbianproject">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   777
          </reference>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   778
       </enabledWhen>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   779
    </handler>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   780
 </extension>
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   781
 <extension
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   782
       point="org.eclipse.core.expressions.definitions">
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   783
    <definition
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   784
          id="org.symbian.tools.wrttools.symbianproject">
263
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   785
          <or>
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   786
             <with
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   787
                   variable="selection">
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   788
                <and>
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   789
                   <count
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   790
                         value="1">
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   791
                   </count>
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   792
                   <iterate>
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   793
                      <adapt
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   794
                            type="org.eclipse.core.resources.IResource">
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   795
                         <test
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   796
                               property="org.eclipse.core.resources.projectNature"
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   797
                               value="org.symbian.tools.wrttools.WidgetProjectNature">
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   798
                         </test>
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   799
                      </adapt>
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   800
                   </iterate>
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   801
                </and>
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   802
             </with>
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   803
             <and>
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   804
                <with
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   805
                      variable="activePart">
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   806
                   <instanceof
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   807
                         value="org.eclipse.ui.IEditorPart">
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   808
                   </instanceof>
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   809
                </with>
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   810
                <with
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   811
                      variable="activeEditorInput">
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   812
                   <adapt
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   813
                         type="org.eclipse.core.resources.IResource">
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   814
                   </adapt>
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   815
                </with>
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   816
             </and>
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
   817
          </or>
281
c4e6bebd078c Bug 2306 - Synchronize Package and Deployment Options
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 275
diff changeset
   818
    </definition>
282
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   819
 </extension>
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   820
 <extension
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   821
       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
   822
    <decorator
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   823
          adaptable="true"
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   824
          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
   825
          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
   826
          id="org.symbian.tools.wrttools.packagingDeclarator"
409
cc687be9a816 WRT references were cleared from the UI
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 401
diff changeset
   827
          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
   828
          lightweight="true"
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   829
          location="TOP_RIGHT"
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   830
          objectClass="org.eclipse.core.resources.IResource"
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   831
          state="true">
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   832
    </decorator>
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   833
 </extension>
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   834
 <extension
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   835
       id="org.symbian.tools.wrttools.excluded"
401
72386743b723 Improve TMW messages - bug 3121
Paul Beusterien <paulb@symbian.org>
parents: 397
diff changeset
   836
       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
   837
       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
   838
    <persistent
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   839
          value="true">
39bbb3a15d6f Bug 2341 - Files excluded from widget archive are not clearly marked
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 281
diff changeset
   840
    </persistent>
310
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   841
 </extension>
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   842
 <extension
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   843
       point="org.symbian.tools.wrttools.jsLibraries">
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   844
    <library
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   845
          icon="icons/main16_prev.gif"
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   846
          id="org.symbian.wrtkit"
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   847
          installer="org.symbian.tools.wrttools.core.libraries.WRTKitInstaller"
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   848
          name="WRTKit">
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   849
    </library>
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   850
    <library
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   851
          icon="icons/phonegap.png"
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   852
          id="phonegap"
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   853
          installer="org.symbian.tools.wrttools.core.libraries.PhoneGapInstaller"
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   854
          name="PhoneGap">
e9484be98cfe UI to add libraries was introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 309
diff changeset
   855
    </library>
319
40387cc658b4 PhoneGap support work in progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 310
diff changeset
   856
 </extension>
40387cc658b4 PhoneGap support work in progress
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 310
diff changeset
   857
 <extension
348
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   858
       point="org.eclipse.ltk.core.refactoring.renameParticipants">
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   859
    <renameParticipant
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   860
          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
   861
          id="org.symbian.tools.wrttools.renameParticipant1"
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   862
          name="WRT Projects Rename Participant">
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   863
    <enablement>
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   864
      <with variable="affectedNatures">
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   865
        <iterate operator="or">
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   866
          <equals value="org.symbian.tools.wrttools.WidgetProjectNature"/>
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   867
        </iterate>
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   868
      </with>
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   869
      <with variable="element">
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   870
         <adapt
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   871
               type="org.eclipse.core.resources.IProject">
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   872
         </adapt>
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   873
        
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   874
      </with>
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   875
    </enablement>
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   876
          
4cd68ab4c1f2 Bug 2534 - Project rename isn't complete
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 319
diff changeset
   877
    </renameParticipant>
372
1e408ee32d8a Added templates for WRT 1.1 platform services
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 366
diff changeset
   878
 </extension>
1e408ee32d8a Added templates for WRT 1.1 platform services
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 366
diff changeset
   879
 <extension
1e408ee32d8a Added templates for WRT 1.1 platform services
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 366
diff changeset
   880
       point="org.eclipse.ui.editors.templates">
1e408ee32d8a Added templates for WRT 1.1 platform services
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 366
diff changeset
   881
    <include
1e408ee32d8a Added templates for WRT 1.1 platform services
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 366
diff changeset
   882
          file="templates/default-templates.xml">
1e408ee32d8a Added templates for WRT 1.1 platform services
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 366
diff changeset
   883
    </include>
373
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   884
 </extension>
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   885
 <extension
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   886
       point="org.eclipse.wst.common.snippets.SnippetContributions">
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   887
    <category
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   888
          description="WRT-specific JavaScript snippets"
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   889
          id="org.symbian.tools.wrttools.wrtsnippets"
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   890
          label="Symbian Web Runtime"
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   891
          smallicon="icons/main16.gif"
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   892
          contenttypes="org.eclipse.wst.jsdt.core.jsSource">
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   893
       <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
   894
             class="org.symbian.tools.wrttools.util.SnippetInsertion"
373
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   895
             description="Retrieves list of the contacts"
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   896
             id="org.symbian.tools.wrttools.contacts"
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   897
             label="Get contacts">
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   898
          <content>
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   899
var contactService = device.getServiceObject("Service.Contact",
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   900
			"IDataSource");
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   901
	var result = contactService.IDataSource.GetList(
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   902
			{ Type : "Contact", Sort : { Order : "Ascending" } }
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   903
			);
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   904
	if (result.ErrorCode == 0) {
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   905
		var contacts = result.ReturnValue;
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   906
		for ( var contact = contacts.getNext(); contact != null; contact = contacts.getNext()) {
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   907
			var firstName = contact.FirstName;
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   908
			var lastName = contact.LastName;
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   909
			var mobile = contact.MobilePhoneGen;
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   910
			var landPhone = contact.LandPhoneGen;
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   911
			var jobTitle = contact.JobTitle;
374
92f6ae438d71 Strings updated
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 373
diff changeset
   912
			// Consult WRT documentation for other possible fields
373
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   913
			// TODO Process contact information
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   914
		}
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   915
	} else {
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   916
		var errorCode = result.ErrorCode;
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   917
		var errorMessage = result.ErrorMessage;
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   918
		// TODO Cannot retrieve contacts list
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   919
	}
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   920
          </content>
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   921
       </item>
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   922
       <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
   923
             class="org.symbian.tools.wrttools.util.SnippetInsertion"
376
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   924
             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
   925
             id="org.symbian.tools.wrttools.location"
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   926
             label="Location callback">
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   927
          <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
   928
// 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
   929
// GetLocation or Trace method
376
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   930
function locationUpdated(transactionId, code, result) {
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   931
	if (result.ErrorCode == 0) {
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   932
		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
   933
		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
   934
		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
   935
		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
   936
		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
   937
		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
   938
		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
   939
		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
   940
		var trueCourseError = result.ReturnValue.TrueCourseError; // TrueCourse error in degrees.
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   941
		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
   942
		var magneticHeadingError = result.ReturnValue.MagneticHeadingError; // MagneticHeading error in degrees.
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   943
		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
   944
		var headingError = result.ReturnValue.HeadingError; // Heading error in degrees.
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   945
		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
   946
		var magneticCourseError = result.ReturnValue.MagneticCourseError; // MagneticCourse error in degrees
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   947
		// TODO Location information was received
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   948
	} else {
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   949
		var errorCode = result.ErrorCode;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   950
		var errorMessage = result.ErrorMessage;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   951
		// TODO Failed to retrieve location information
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   952
	}
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   953
}          </content>
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   954
       </item>
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
   955
       <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
   956
             class="org.symbian.tools.wrttools.util.SnippetInsertion"
386
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   957
             description="Sends SMS message"
390
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   958
             id="org.symbian.tools.wrttools.dial"
386
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   959
             label="Send SMS message">
373
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
   960
          <content>
386
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   961
var phoneNumber = "+6505551214";
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   962
	var text = "Sent from WRT application";
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   963
	var messaging = device.getServiceObject("Service.Messaging", "IMessaging");
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   964
	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
   965
	if (result.ErrorCode != null) {
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   966
		var errorCode = result.ErrorCode;
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   967
		var errorMessage = result.ErrorMessage;
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   968
		// TODO Cannot send SMS message
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   969
	}
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   970
          </content>
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
   971
       </item>
390
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   972
       
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   973
       <item
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   974
             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
   975
             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
   976
             id="org.symbian.tools.wrttools.battery"
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   977
             label="Watch battery status">
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   978
          <content>
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   979
function watchBatteryNotifications() {
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   980
	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
   981
	var result = sysInfo.ISysInfo.GetNotification( {
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   982
		Entity : "Battery",
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   983
		Key : "BatteryStrength"
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   984
	}, batteryUpdated);
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   985
	if (result.ErrorCode == 0) {
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   986
		var transactionId = result.TransactionID;
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   987
		// 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
   988
	} else {
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   989
		var message = result.ErrorMessage;
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   990
		// TODO Process error
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   991
	}
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   992
}
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   993
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   994
function batteryUpdated(tId, code, result) {
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   995
	if (result.ErrorCode == 0) {
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   996
		var batteryStatus = result.ReturnValue.Status;
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   997
		// TODO Process battery charge level
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   998
	} else {
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
   999
		var message = result.ErrorMessage;
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
  1000
		// TODO Process error
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
  1001
	}
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
  1002
}
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
  1003
          </content>
41fb932132ea Battery status snippet and system info code template
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 389
diff changeset
  1004
       </item>
386
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1005
       <item
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1006
             class="org.symbian.tools.wrttools.util.SnippetInsertion"
389
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
  1007
             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
  1008
             id="org.symbian.tools.wrttools.sensor"
386
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1009
             label="Watch sensor notifications">
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1010
          <content>
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1011
// 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
  1012
function watchSensorNotifications() {
386
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1013
	var sensors = device.getServiceObject("Service.Sensor", "ISensor");
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1014
	var SensorParams = {
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1015
		SearchCriterion : "Orientation" // TODO Possible values (one of):
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1016
			// SearchCriterion : "All"
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1017
			// SearchCriterion : "AccelerometerAxis"
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1018
			// SearchCriterion : "AccelerometerDoubleTapping"
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1019
			// SearchCriterion : "Rotation"
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1020
	};
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1021
	var result = sensors.ISensor.FindSensorChannel(SensorParams);
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1022
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1023
	if (result.ErrorCode != 0) {
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1024
		var errorCode = result.ErrorCode;
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1025
		var errorMessage = result.ErrorMessage;
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1026
		// TODO Handle error
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1027
		return null;
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1028
	}
389
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
  1029
    // 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
  1030
	var result2 = sensors.ISensor.RegisterForNotification(
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1031
			{ ChannelInfoMap : result.ReturnValue[0], 
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1032
				ListeningType : "ChannelData" }, sensorCallback);
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1033
	if (result.ErrorCode == 0) {
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1034
		var transactionId = result.TransactionID;
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1035
		// 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
  1036
		return transactionId;
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1037
	} else {
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1038
		var errorCode = result.ErrorCode;
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1039
		var errorMessage = result.ErrorMessage;
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1040
		// TODO Handle error
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1041
		return null;
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1042
	}
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1043
}
389
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
  1044
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
  1045
// This function can be passed as callback to 
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
  1046
// sensors.ISensor.RegisterForNotification method
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
  1047
function sensorCallback(transactionId, code, result) {
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
  1048
	if (result.ErrorCode == 0) {
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
  1049
		// TODO Process notification
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
  1050
		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
  1051
		var orientation = result.ReturnValue.DeviceOrientation; // Orientation
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
  1052
		// var xAxis = result.ReturnValue.XAxisData; // Accelerometer
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
  1053
		// var yAxis = result.ReturnValue.YAxisData; // Accelerometer
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
  1054
		// var zAxis = result.ReturnValue.ZAxisData; // Accelerometer
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
  1055
		// var direction = result.ReturnValue.DeviceDirection; // Accelerometer double tapping
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
  1056
		// var xRotation = result.ReturnValue.XRotation; // Rotation
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
  1057
		// var yRotation = result.ReturnValue.YRotation; // Rotation
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
  1058
		// var zRotation = result.ReturnValue.ZRotation; // Rotation
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
  1059
	} else {
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
  1060
		var errorCode = result.ErrorCode;
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
  1061
		var errorMessage = result.ErrorMessage;
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
  1062
		// TODO Handle error
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
  1063
	}
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
  1064
}
5a72e60dea8b Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 388
diff changeset
  1065
386
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1066
         </content>
7d0a718a6346 Bug 3019 - Register orientation callback problems
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 385
diff changeset
  1067
       </item>
373
85c2a2a29aad Snippets support introduced
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 372
diff changeset
  1068
    </category>
376
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1069
    <category
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1070
          description="Snippets using PhoneGap APIs"
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1071
          id="org.symbian.tools.wrttools.phonegapsnippets"
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1072
          label="PhoneGap"
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1073
          smallicon="icons/phonegap.png">
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1074
       <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
  1075
             class="org.symbian.tools.wrttools.util.SnippetInsertion"
376
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1076
             description="Accepts accerelometer data"
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1077
             id="org.symbian.tools.wrttools.phonegap.accererometer"
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1078
             label="Accelerometer callback">
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1079
          <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
  1080
// 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
  1081
// navigator.accelerometer getCurrentAcceleration and watchAcceleration methods
376
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1082
function updateAcceleration(accel) {
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1083
	var x = accel.x;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1084
	var y = accel.y;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1085
	var z = accel.z;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1086
	
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1087
	// TODO process the data
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1088
}
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1089
          </content>
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1090
       </item>
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1091
       <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
  1092
             class="org.symbian.tools.wrttools.util.SnippetInsertion"
376
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1093
             description="Accepts contacts data"
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1094
             id="org.symbian.tools.wrttools.phonegap.contacts"
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1095
             label="Contacts callback">
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1096
          <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
  1097
// 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
  1098
// navigator.contacts.find method
376
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1099
function displayContacts(contacts) {
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1100
	for (var i=0; i &lt; contacts.length; i++) {
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1101
		var contact = contacts[i];
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1102
		var name = contact.name.formatted;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1103
		var phones = contact.name.phone; // Array of phone numbers
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1104
		var name = contact.name.address;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1105
		
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1106
		// TODO Insert your code here
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1107
	}
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1108
}
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1109
          </content>
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1110
       </item>
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1111
       <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
  1112
             class="org.symbian.tools.wrttools.util.SnippetInsertion"
376
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1113
             description="Accepts location data"
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1114
             id="org.symbian.tools.wrttools.phonegap.location"
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1115
             label="Location callback">
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1116
          <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
  1117
// 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
  1118
// navigator.geolocation getCurrentPosition or watchPosition methods
376
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1119
function updateLocation(position) {
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1120
	var pt = position.coords;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1121
	var latitude = pt.latitude;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1122
	var longitude = pt.longitude;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1123
	var altitude = pt.altitude;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1124
	var heading = pt.heading;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1125
	var speed = pt.speed;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1126
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1127
	// TODO Insert your code here
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1128
}
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1129
          </content>
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1130
       </item>
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1131
       <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
  1132
             class="org.symbian.tools.wrttools.util.SnippetInsertion"
376
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1133
             description="Accepts orientation data"
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1134
             id="org.symbian.tools.wrttools.phonegap.orientation"
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1135
             label="Orientation callback">
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1136
          <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
  1137
// 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
  1138
// navigator.orientation getCurrentOrientation or watchOrientation methods
376
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1139
function updateOrientation(orientation) {
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1140
	switch (orientation) {
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1141
		case DisplayOrientation.PORTRAIT: break;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1142
		case DisplayOrientation.REVERSE_PORTRAIT: break;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1143
		case DisplayOrientation.LANDSCAPE_LEFT_UP: break;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1144
		case DisplayOrientation.LANDSCAPE_RIGHT_UP: break;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1145
		case DisplayOrientation.FACE_UP: break;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1146
		case DisplayOrientation.FACE_DOWN: break;
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1147
	}
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1148
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1149
	// TODO Insert your code here
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1150
}
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1151
          </content>
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1152
       </item>
5027709c9315 PhoneGap snippets and minor bugfix
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 375
diff changeset
  1153
    </category>
263
0c4249e0396d Bug 2068 - Improve packaging and deployment usability
Eugene Ostroukhov <eugeneo@symbian.org>
parents: 260
diff changeset
  1154
 </extension>
0
ddc9cde0ba07 Initial version of WRT Tools Plugin.
TasneemS@US-TASNEEMS
parents:
diff changeset
  1155
</plugin>