1 <?xml version="1.0" encoding="UTF-8"?> 2 <?eclipse version="3.2"?> 3 <plugin> 4 <extension 5 id="com.android.ide.eclipse.common.xmlProblem" 6 name="Android XML Format Problem" 7 point="org.eclipse.core.resources.markers"> 8 <super type="org.eclipse.core.resources.problemmarker" /> 9 <super type="org.eclipse.core.resources.textmarker" /> 10 <persistent value="true" /> 11 </extension> 12 <extension 13 id="com.android.ide.eclipse.common.aaptProblem" 14 name="Android AAPT Problem" 15 point="org.eclipse.core.resources.markers"> 16 <super type="org.eclipse.core.resources.problemmarker" /> 17 <super type="org.eclipse.core.resources.textmarker" /> 18 <persistent value="true" /> 19 </extension> 20 <extension 21 id="com.android.ide.eclipse.common.aapt2Problem" 22 name="Android AAPT Problem" 23 point="org.eclipse.core.resources.markers"> 24 <super type="org.eclipse.core.resources.problemmarker" /> 25 <super type="org.eclipse.core.resources.textmarker" /> 26 <persistent value="true" /> 27 </extension> 28 <extension 29 id="com.android.ide.eclipse.common.aidlProblem" 30 name="Android AIDL Problem" 31 point="org.eclipse.core.resources.markers"> 32 <super type="org.eclipse.core.resources.problemmarker" /> 33 <super type="org.eclipse.core.resources.textmarker" /> 34 <persistent value="true" /> 35 </extension> 36 <extension 37 id="com.android.ide.eclipse.common.rsProblem" 38 name="Android RenderScript Problem" 39 point="org.eclipse.core.resources.markers"> 40 <super type="org.eclipse.core.resources.problemmarker" /> 41 <super type="org.eclipse.core.resources.textmarker" /> 42 <persistent value="true" /> 43 </extension> 44 <extension 45 id="com.android.ide.eclipse.common.androidProblem" 46 name="Android XML Content Problem" 47 point="org.eclipse.core.resources.markers"> 48 <super type="org.eclipse.core.resources.problemmarker" /> 49 <super type="org.eclipse.core.resources.textmarker" /> 50 <persistent value="true" /> 51 </extension> 52 <extension 53 id="com.android.ide.eclipse.adt.lintProblem" 54 name="Android Lint Problem" 55 point="org.eclipse.core.resources.markers"> 56 <super type="org.eclipse.core.resources.problemmarker" /> 57 <super type="org.eclipse.core.resources.textmarker" /> 58 <persistent value="true" /> 59 </extension> 60 <extension 61 id="com.android.ide.eclipse.adt.adtProblem" 62 name="Android ADT Problem" 63 point="org.eclipse.core.resources.markers"> 64 <super type="org.eclipse.core.resources.problemmarker" /> 65 <super type="org.eclipse.core.resources.textmarker" /> 66 <persistent value="true" /> 67 </extension> 68 <extension 69 id="com.android.ide.eclipse.adt.targetProblem" 70 name="Android Target Problem" 71 point="org.eclipse.core.resources.markers"> 72 <super type="org.eclipse.core.resources.problemmarker" /> 73 <persistent value="false" /> 74 </extension> 75 <extension 76 id="com.android.ide.eclipse.adt.dependencyProblem" 77 name="Android Dependency Problem" 78 point="org.eclipse.core.resources.markers"> 79 <super type="org.eclipse.core.resources.problemmarker" /> 80 <persistent value="false" /> 81 </extension> 82 <extension 83 id="com.android.ide.eclipse.adt.packagingProblem" 84 name="Android Packaging Problem" 85 point="org.eclipse.core.resources.markers"> 86 <super type="org.eclipse.core.resources.problemmarker" /> 87 <persistent value="true" /> 88 </extension> 89 <extension point="org.eclipse.ui.ide.markerResolution"> 90 <markerResolutionGenerator 91 markerType="com.android.ide.eclipse.adt.lintProblem" 92 class="com.android.ide.eclipse.adt.internal.lint.LintFixGenerator" /> 93 <markerResolutionGenerator 94 markerType="com.android.ide.eclipse.common.aaptProblem" 95 class="com.android.ide.eclipse.adt.internal.build.AaptQuickFix" /> 96 </extension> 97 <extension 98 id="ResourceManagerBuilder" 99 name="Android Resource Manager" 100 point="org.eclipse.core.resources.builders"> 101 <builder hasNature="true"> 102 <run class="com.android.ide.eclipse.adt.internal.build.builders.ResourceManagerBuilder" /> 103 </builder> 104 </extension> 105 <extension 106 id="PreCompilerBuilder" 107 name="Android Pre Compiler" 108 point="org.eclipse.core.resources.builders"> 109 <builder hasNature="true"> 110 <run class="com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder" /> 111 </builder> 112 </extension> 113 <extension 114 id="ApkBuilder" 115 name="Android Package Builder" 116 point="org.eclipse.core.resources.builders"> 117 <builder hasNature="true"> 118 <run class="com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder" /> 119 </builder> 120 </extension> 121 <extension 122 id="AndroidNature" 123 name="Android Project Nature" 124 point="org.eclipse.core.resources.natures"> 125 <runtime> 126 <run class="com.android.ide.eclipse.adt.internal.project.AndroidNature" /> 127 </runtime> 128 <builder id="com.android.ide.eclipse.adt.ResourceManagerBuilder" /> 129 <builder id="com.android.ide.eclipse.adt.PreCompilerBuilder" /> 130 <builder id="com.android.ide.eclipse.adt.ApkBuilder" /> 131 </extension> 132 <extension 133 id="ExportNature" 134 name="Android Export Project Nature" 135 point="org.eclipse.core.resources.natures"> 136 <runtime> 137 <run class="com.android.ide.eclipse.adt.internal.project.ExportNature" /> 138 </runtime> 139 </extension> 140 <extension point="org.eclipse.ui.newWizards"> 141 <category 142 id="com.android.ide.eclipse.wizards.category" 143 name="Android" /> 144 <wizard 145 canFinishEarly="false" 146 category="com.android.ide.eclipse.wizards.category" 147 class="com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectWizard" 148 finalPerspective="org.eclipse.jdt.ui.JavaPerspective" 149 hasPages="true" 150 icon="icons/new_adt_project.png" 151 id="com.android.ide.eclipse.adt.project.NewProjectWizard" 152 name="Android Project" 153 preferredPerspectives="org.eclipse.jdt.ui.JavaPerspective" 154 project="true" /> 155 <wizard 156 canFinishEarly="false" 157 category="com.android.ide.eclipse.wizards.category" 158 class="com.android.ide.eclipse.adt.internal.wizards.newproject.NewTestProjectWizard" 159 finalPerspective="org.eclipse.jdt.ui.JavaPerspective" 160 hasPages="true" 161 icon="icons/androidjunit.png" 162 id="com.android.ide.eclipse.adt.project.NewTestProjectWizard" 163 name="Android Test Project" 164 preferredPerspectives="org.eclipse.jdt.ui.JavaPerspective" 165 project="true"> 166 </wizard> 167 <wizard 168 canFinishEarly="false" 169 category="com.android.ide.eclipse.wizards.category" 170 class="com.android.ide.eclipse.adt.internal.wizards.newproject.NewSampleProjectWizard" 171 finalPerspective="org.eclipse.jdt.ui.JavaPerspective" 172 hasPages="true" 173 icon="icons/new_adt_project.png" 174 id="com.android.ide.eclipse.adt.project.NewSampleProjectWizard" 175 name="Android Sample Project" 176 preferredPerspectives="org.eclipse.jdt.ui.JavaPerspective" 177 project="true"> 178 </wizard> 179 <wizard 180 canFinishEarly="false" 181 category="com.android.ide.eclipse.wizards.category" 182 class="com.android.ide.eclipse.adt.internal.wizards.newxmlfile.NewXmlFileWizard" 183 finalPerspective="org.eclipse.jdt.ui.JavaPerspective" 184 hasPages="true" 185 icon="icons/new_xml.png" 186 id="com.android.ide.eclipse.editors.wizards.NewXmlFileWizard" 187 name="Android XML File" 188 preferredPerspectives="org.eclipse.jdt.ui.JavaPerspective" 189 project="false"> 190 </wizard> 191 <wizard 192 canFinishEarly="false" 193 category="com.android.ide.eclipse.wizards.category" 194 class="com.android.ide.eclipse.adt.internal.wizards.newxmlfile.NewXmlFileWizard$NewLayoutWizard" 195 finalPerspective="org.eclipse.jdt.ui.JavaPerspective" 196 hasPages="true" 197 icon="icons/new_xml.png" 198 id="com.android.ide.eclipse.editors.wizards.NewXmlFileWizard.Layout" 199 name="Android XML Layout File" 200 preferredPerspectives="org.eclipse.jdt.ui.JavaPerspective" 201 project="false"> 202 </wizard> 203 <wizard 204 canFinishEarly="false" 205 category="com.android.ide.eclipse.wizards.category" 206 class="com.android.ide.eclipse.adt.internal.wizards.newxmlfile.NewXmlFileWizard$NewValuesWizard" 207 finalPerspective="org.eclipse.jdt.ui.JavaPerspective" 208 hasPages="true" 209 icon="icons/new_xml.png" 210 id="com.android.ide.eclipse.editors.wizards.NewXmlFileWizard.Values" 211 name="Android XML Values File" 212 preferredPerspectives="org.eclipse.jdt.ui.JavaPerspective" 213 project="false"> 214 </wizard> 215 <wizard 216 canFinishEarly="false" 217 category="com.android.ide.eclipse.wizards.category" 218 class="com.android.ide.eclipse.adt.internal.assetstudio.CreateAssetSetWizard" 219 finalPerspective="org.eclipse.jdt.ui.JavaPerspective" 220 hasPages="true" 221 icon="icons/new_asset_set.png" 222 id="com.android.ide.eclipse.adt.internal.assetstudio.CreateAssetSetWizard" 223 name="Android Icon Set" 224 preferredPerspectives="org.eclipse.jdt.ui.JavaPerspective" 225 project="false" /> 226 </extension> 227 <extension point="org.eclipse.debug.core.launchConfigurationTypes"> 228 <launchConfigurationType 229 delegate="com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate" 230 delegateDescription="The Android Application Launcher supports running and debugging remote Android applications on devices or emulators." 231 delegateName="Android Launcher" 232 id="com.android.ide.eclipse.adt.debug.LaunchConfigType" 233 modes="debug, run" 234 name="Android Application" 235 public="true" 236 sourceLocatorId="com.android.ide.eclipse.adt.internal.sourcelookup.AdtSourceLookupDirector" 237 sourcePathComputerId="org.eclipse.jdt.launching.sourceLookup.javaSourcePathComputer"> 238 </launchConfigurationType> 239 </extension> 240 <extension point="org.eclipse.debug.ui.launchConfigurationTypeImages"> 241 <launchConfigurationTypeImage 242 configTypeID="com.android.ide.eclipse.adt.debug.LaunchConfigType" 243 icon="icons/android_app.png" 244 id="com.android.ide.eclipse.adt.debug.LaunchConfigTypeImage" /> 245 </extension> 246 <extension point="org.eclipse.debug.ui.launchConfigurationTabGroups"> 247 <launchConfigurationTabGroup 248 class="com.android.ide.eclipse.adt.internal.launch.LaunchConfigTabGroup" 249 description="Android Application" 250 id="com.android.ide.eclipse.adt.debug.LaunchConfigTabGroup" 251 type="com.android.ide.eclipse.adt.debug.LaunchConfigType" /> 252 </extension> 253 <extension point="org.eclipse.debug.ui.launchShortcuts"> 254 <shortcut 255 class="com.android.ide.eclipse.adt.internal.launch.LaunchShortcut" 256 icon="icons/android_app.png" 257 id="com.android.ide.eclipse.adt.debug.launching.LaunchShortcut" 258 label="Android Application" 259 modes="run, debug"> 260 <contextualLaunch> 261 <enablement> 262 <with variable="selection"> 263 <count value="1" /> 264 <iterate> 265 <and> 266 <test property="org.eclipse.jdt.launching.isContainer" /> 267 <test 268 property="org.eclipse.jdt.launching.hasProjectNature" 269 args="com.android.ide.eclipse.adt.AndroidNature" /> 270 </and> 271 </iterate> 272 </with> 273 </enablement> 274 </contextualLaunch> 275 <perspective id="org.eclipse.jdt.ui.JavaPerspective" /> 276 <perspective id="org.eclipse.debug.ui.DebugPerspective" /> 277 <configurationType id="com.android.ide.eclipse.adt.debug.LaunchConfigType"> 278 </configurationType> 279 <description 280 description="Runs an Android Application" 281 mode="run"> 282 </description> 283 <description 284 description="Debugs an Android Application" 285 mode="debug"> 286 </description> 287 </shortcut> 288 </extension> 289 <extension point="org.eclipse.ui.popupMenus"> 290 <objectContribution 291 id="com.android.ide.eclipse.adt.contribution2" 292 nameFilter="*" 293 objectClass="org.eclipse.core.resources.IProject" 294 adaptable="true"> 295 <menu 296 id="com.android.ide.eclipse.adt.AndroidTools" 297 label="Android Tools" 298 path="additions"> 299 <separator name="group1" /> 300 <separator name="group2" /> 301 <separator name="group3" /> 302 <separator name="group4" /> 303 </menu> 304 <filter 305 name="projectNature" 306 value="com.android.ide.eclipse.adt.AndroidNature"> 307 </filter> 308 <action 309 class="com.android.ide.eclipse.adt.internal.wizards.actions.NewXmlFileAction" 310 enablesFor="1" 311 icon="icons/new_xml.png" 312 id="com.android.ide.eclipse.adt.wizards.actions.NewXmlFileAction" 313 label="New Resource File..." 314 menubarPath="com.android.ide.eclipse.adt.AndroidTools/group1" 315 tooltip="Opens a wizard to help create a new Android XML Resource file"> 316 </action> 317 <action 318 class="com.android.ide.eclipse.adt.internal.wizards.actions.NewTestProjectAction" 319 enablesFor="1" 320 icon="icons/androidjunit.png" 321 id="com.android.ide.eclipse.adt.wizards.actions.NewTestProjectAction" 322 label="New Test Project..." 323 menubarPath="com.android.ide.eclipse.adt.AndroidTools/group1" 324 tooltip="Opens a wizard to help create a new Android Test Project"> 325 </action> 326 <action 327 class="com.android.ide.eclipse.adt.internal.wizards.actions.ExportAction" 328 enablesFor="1" 329 id="com.android.ide.eclipse.adt.project.ExportAction" 330 label="Export Unsigned Application Package..." 331 menubarPath="com.android.ide.eclipse.adt.AndroidTools/group2" /> 332 <action 333 class="com.android.ide.eclipse.adt.internal.wizards.actions.ExportWizardAction" 334 enablesFor="1" 335 id="com.android.ide.eclipse.adt.project.ExportWizardAction" 336 label="Export Signed Application Package..." 337 menubarPath="com.android.ide.eclipse.adt.AndroidTools/group2" /> 338 <action 339 class="com.android.ide.eclipse.adt.internal.actions.FixProjectAction" 340 enablesFor="1" 341 id="com.android.ide.eclipse.adt.project.FixProjectAction" 342 label="Fix Project Properties" 343 menubarPath="com.android.ide.eclipse.adt.AndroidTools/group3" /> 344 <action 345 class="com.android.ide.eclipse.adt.internal.actions.AddCompatibilityJarAction" 346 enablesFor="1" 347 icon="icons/android.png" 348 id="com.android.ide.eclipse.adt.wizards.actions.AddCompatibilityJarAction" 349 label="Add Support Library..." 350 menubarPath="com.android.ide.eclipse.adt.AndroidTools/group3" 351 tooltip="Add the Compatibility Library to the project"> 352 </action> 353 <action 354 class="com.android.ide.eclipse.adt.internal.refactorings.renamepackage.RenamePackageAction" 355 enablesFor="1" 356 id="com.android.ide.eclipse.adt.project.RenamePackageAction" 357 label="Rename Application Package" 358 menubarPath="com.android.ide.eclipse.adt.AndroidTools/group3" /> 359 <action 360 class="com.android.ide.eclipse.adt.internal.actions.DexDumpAction" 361 enablesFor="1" 362 id="com.android.ide.eclipse.adt.DexDumpAction" 363 label="Display dex bytecode" 364 menubarPath="com.android.ide.eclipse.adt.AndroidTools/group3" /> 365 <action 366 class="com.android.ide.eclipse.adt.internal.lint.ClearLintMarkersAction" 367 enablesFor="1" 368 id="com.android.ide.eclipse.adt.internal.lint.ClearLintMarkersAction" 369 label="Clear Lint Markers" 370 menubarPath="com.android.ide.eclipse.adt.AndroidTools/group4" /> 371 <action 372 class="com.android.ide.eclipse.adt.internal.lint.RunLintAction" 373 enablesFor="1" 374 id="com.android.ide.eclipse.adt.internal.lint.RunLintAction" 375 label="Run Lint: Check for Common Errors" 376 icon="icons/lintrun.png" 377 menubarPath="com.android.ide.eclipse.adt.AndroidTools/group4" /> 378 </objectContribution> 379 </extension> 380 <extension point="org.eclipse.ui.preferencePages"> 381 <page 382 class="com.android.ide.eclipse.adt.internal.preferences.AndroidPreferencePage" 383 id="com.android.ide.eclipse.preferences.main" 384 name="Android" /> 385 <page 386 category="com.android.ide.eclipse.preferences.main" 387 class="com.android.ide.eclipse.adt.internal.preferences.BuildPreferencePage" 388 id="com.android.ide.eclipse.adt.preferences.BuildPreferencePage" 389 name="Build" /> 390 <page 391 category="com.android.ide.eclipse.preferences.main" 392 class="com.android.ide.eclipse.adt.internal.preferences.LaunchPreferencePage" 393 id="com.android.ide.eclipse.adt.preferences.LaunchPreferencePage" 394 name="Launch" /> 395 <page 396 category="com.android.ide.eclipse.preferences.main" 397 class="com.android.ide.eclipse.adt.internal.preferences.EditorsPage" 398 id="com.android.ide.eclipse.adt.preferences.EditorsPage" 399 name="Editors"> 400 </page> 401 <page 402 category="com.android.ide.eclipse.preferences.main" 403 class="com.android.ide.eclipse.adt.internal.preferences.LintPreferencePage" 404 id="com.android.ide.eclipse.common.preferences.LintPreferencePage" 405 name="Lint Error Checking"> 406 </page> 407 </extension> 408 <extension point="org.eclipse.core.runtime.preferences"> 409 <initializer class="com.android.ide.eclipse.adt.internal.preferences.AdtPrefs" /> 410 </extension> 411 <extension point="org.eclipse.ui.perspectiveExtensions"> 412 <perspectiveExtension targetID="org.eclipse.jdt.ui.JavaPerspective"> 413 <newWizardShortcut id="com.android.ide.eclipse.adt.project.NewProjectWizard" /> 414 <newWizardShortcut id="com.android.ide.eclipse.editors.wizards.NewXmlFileWizard"> 415 </newWizardShortcut> 416 </perspectiveExtension> 417 <perspectiveExtension targetID="org.eclipse.debug.ui.DebugPerspective"> 418 <viewShortcut id="com.android.ide.eclipse.ddms.views.LogCatView" /> 419 <viewShortcut id="com.android.ide.eclipse.ddms.views.DeviceView" /> 420 </perspectiveExtension> 421 </extension> 422 <extension point="org.eclipse.ui.ide.projectNatureImages"> 423 <image 424 icon="icons/android_project.png" 425 id="com.android.ide.eclipse.adt.AndroidNature.image" 426 natureId="com.android.ide.eclipse.adt.AndroidNature"> 427 </image> 428 </extension> 429 <extension point="org.eclipse.jdt.core.classpathContainerInitializer"> 430 <classpathContainerInitializer 431 class="com.android.ide.eclipse.adt.internal.project.AndroidClasspathContainerInitializer" 432 id="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"> 433 </classpathContainerInitializer> 434 <classpathContainerInitializer 435 class="com.android.ide.eclipse.adt.internal.project.LibraryClasspathContainerInitializer" 436 id="com.android.ide.eclipse.adt.LIBRARIES"> 437 </classpathContainerInitializer> 438 </extension> 439 <extension point="org.eclipse.jdt.ui.classpathContainerPage"> 440 <classpathContainerPage 441 name="Android Classpath Container" 442 class="com.android.ide.eclipse.adt.internal.project.AndroidClasspathContainerPage" 443 id="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"> 444 </classpathContainerPage> 445 </extension> 446 <extension point="org.eclipse.ui.exportWizards"> 447 <category 448 id="com.android.ide.eclipse.wizards.category" 449 name="Android"> 450 </category> 451 <wizard 452 category="com.android.ide.eclipse.wizards.category" 453 class="com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard" 454 icon="icons/android.png" 455 id="com.android.ide.eclipse.adt.project.ExportWizard" 456 name="Export Android Application"> 457 </wizard> 458 </extension> 459 <extension point="org.eclipse.ui.commands"> 460 <command 461 name="Debug Android Application" 462 description="Debug Android Application" 463 categoryId="org.eclipse.debug.ui.category.run" 464 id="com.android.ide.eclipse.adt.launch.LaunchShortcut.debug"> 465 </command> 466 <command 467 name="Run Android Application" 468 description="Run Android Application" 469 categoryId="org.eclipse.debug.ui.category.run" 470 id="com.android.ide.eclipse.adt.launch.LaunchShortcut.run"> 471 </command> 472 </extension> 473 <extension point="org.eclipse.ui.decorators"> 474 <decorator 475 adaptable="true" 476 class="com.android.ide.eclipse.adt.internal.project.FolderDecorator" 477 id="com.android.ide.eclipse.adt.project.FolderDecorator" 478 label="Android Decorator" 479 lightweight="true" 480 location="TOP_RIGHT" 481 objectClass="org.eclipse.core.resources.IFolder" 482 state="true"> 483 </decorator> 484 </extension> 485 <extension point="org.eclipse.ui.editors"> 486 <editor 487 class="com.android.ide.eclipse.adt.internal.editors.export.ExportEditor" 488 default="true" 489 filenames="export.properties" 490 icon="icons/android_file.png" 491 id="com.android.ide.eclipse.editors.export.ExportEditor" 492 name="Android Export Editor"> 493 </editor> 494 495 <editor 496 class="com.android.ide.eclipse.adt.internal.editors.manifest.ManifestEditor" 497 default="true" 498 filenames="AndroidManifest.xml" 499 icon="icons/android_file.png" 500 id="com.android.ide.eclipse.editors.manifest.ManifestEditor" 501 name="Android Manifest Editor"> 502 </editor> 503 504 <!-- 505 This is the new generic multi-purpose single XML editor used by ADT. 506 It is designed to replace all the other XML editors (layout, manifest, drawable, 507 animation, color, values, xml) and does so by using a single common Editor class 508 that defers to multiple delegate handlers. 509 --> 510 <editor 511 class="com.android.ide.eclipse.adt.internal.editors.common.CommonXmlEditor" 512 contributorClass="com.android.ide.eclipse.adt.internal.editors.common.CommonActionContributor" 513 default="true" 514 extensions="xml" 515 icon="icons/android_file.png" 516 id="com.android.ide.eclipse.editors.CommonXmlEditor" 517 matchingStrategy="com.android.ide.eclipse.adt.internal.editors.common.CommonMatchingStrategy" 518 name="Android Common XML Editor"> 519 </editor> 520 521 <!-- 522 For compatibilit with existing ADT installs, we still need to keep the editor 523 IDs of the previously defined editors. E.g. for the color editor note that the 524 id remains the same but class name changes to the new class. This will make 525 Eclipse not complain upon startup of an existing workspace. 526 --> 527 <editor 528 class="com.android.ide.eclipse.adt.internal.editors.common.CommonXmlEditor" 529 contributorClass="com.android.ide.eclipse.adt.internal.editors.common.CommonActionContributor" 530 default="false" 531 icon="icons/android_file.png" 532 id="com.android.ide.eclipse.editors.layout.LayoutEditor" 533 matchingStrategy="com.android.ide.eclipse.adt.internal.editors.common.CommonMatchingStrategy" 534 name="Legacy Android Layout Editor"> 535 </editor> 536 <editor 537 class="com.android.ide.eclipse.adt.internal.editors.common.CommonXmlEditor" 538 default="false" 539 icon="icons/android_file.png" 540 id="com.android.ide.eclipse.editors.resources.ResourcesEditor" 541 name="Legacy Android Resource Editor"> 542 </editor> 543 <editor 544 class="com.android.ide.eclipse.adt.internal.editors.common.CommonXmlEditor" 545 default="false" 546 icon="icons/android_file.png" 547 id="com.android.ide.eclipse.editors.menu.MenuEditor" 548 name="Legacy Android Menu Editor"> 549 </editor> 550 <editor 551 class="com.android.ide.eclipse.adt.internal.editors.common.CommonXmlEditor" 552 default="false" 553 icon="icons/android_file.png" 554 id="com.android.ide.eclipse.editors.xml.XmlEditor" 555 name="Legacy Android Xml Resources Editor"> 556 </editor> 557 <editor 558 class="com.android.ide.eclipse.adt.internal.editors.common.CommonXmlEditor" 559 default="false" 560 icon="icons/android_file.png" 561 id="com.android.ide.eclipse.editors.animator.AnimationEditor" 562 name="Legacy Android Animation Editor"> 563 </editor> 564 <editor 565 class="com.android.ide.eclipse.adt.internal.editors.common.CommonXmlEditor" 566 default="false" 567 icon="icons/android_file.png" 568 id="com.android.ide.eclipse.editors.drawable.DrawableEditor" 569 name="Legacy Android Drawable Editor"> 570 </editor> 571 <editor 572 class="com.android.ide.eclipse.adt.internal.editors.common.CommonXmlEditor" 573 default="false" 574 icon="icons/android_file.png" 575 id="com.android.ide.eclipse.editors.color.ColorEditor" 576 name="Legacy Android Color Editor"> 577 </editor> 578 579 <editor 580 class="com.android.ide.eclipse.adt.internal.editors.binaryxml.BinaryXMLMultiPageEditorPart" 581 contributorClass="org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorActionBarContributor" 582 icon="$nl$/icons/android_file.png" 583 id="com.android.ide.eclipse.adt.binedit.BinaryXMLMultiPageEditorPart" 584 name="Android Binary XML editor" 585 symbolicFontName="org.eclipse.wst.sse.ui.textfont"> 586 <contentTypeBinding contentTypeId="com.android.ide.eclipse.adt.binaryXml"> 587 </contentTypeBinding> 588 </editor> 589 </extension> 590 <extension point="org.eclipse.ui.views"> 591 <view 592 allowMultiple="false" 593 category="com.android.ide.eclipse.ddms.views.category" 594 class="com.android.ide.eclipse.adt.internal.ui.ResourceExplorerView" 595 icon="icons/draw9patch-16.png" 596 id="com.android.ide.eclipse.editors.resources.explorer.ResourceExplorerView" 597 name="Resource Explorer"> 598 </view> 599 <view 600 class="com.android.ide.eclipse.adt.internal.lint.LintViewPart" 601 category="com.android.ide.eclipse.ddms.views.category" 602 id="com.android.ide.eclipse.adt.internal.lint.LintViewPart" 603 icon="icons/lintview.png" 604 name="Lint Warnings"> 605 </view> 606 </extension> 607 <extension point="org.eclipse.wst.sse.ui.editorConfiguration"> 608 <sourceViewerConfiguration 609 class="com.android.ide.eclipse.adt.internal.editors.manifest.ManifestSourceViewerConfig" 610 target="com.android.ide.eclipse.editors.manifest.ManifestEditor"> 611 </sourceViewerConfiguration> 612 <sourceViewerConfiguration 613 class="com.android.ide.eclipse.adt.internal.editors.common.CommonSourceViewerConfig" 614 target="com.android.ide.eclipse.editors.CommonXmlEditor"> 615 </sourceViewerConfiguration> 616 617 <quickOutlineConfiguration 618 class="com.android.ide.eclipse.adt.internal.editors.AndroidQuickOutlineConfiguration" 619 target="org.eclipse.core.runtime.xml" /> 620 <contentOutlineConfiguration 621 class="com.android.ide.eclipse.adt.internal.editors.AndroidOutlineConfiguration" 622 target="org.eclipse.core.runtime.xml" /> 623 <provisionalConfiguration 624 type="org.eclipse.jface.text.quickassist.IQuickAssistProcessor" 625 class="com.android.ide.eclipse.adt.internal.editors.formatting.XmlQuickAssistManager" 626 target="org.eclipse.wst.xml.XML_DEFAULT" /> 627 <provisionalConfiguration 628 type="characterpairmatcher" 629 class="com.android.ide.eclipse.adt.internal.editors.AndroidXmlCharacterMatcher" 630 target="org.eclipse.core.runtime.xml" /> 631 </extension> 632 <extension point="org.eclipse.jdt.ui.quickAssistProcessors"> 633 <quickAssistProcessor 634 id="AndroidJavaAssistant" 635 name="Android Java Quick Assistant" 636 requiredSourceLevel="1.5" 637 class="com.android.ide.eclipse.adt.internal.editors.layout.refactoring.JavaQuickAssistant"> 638 </quickAssistProcessor> 639 </extension> 640 <extension 641 point="org.eclipse.jdt.ui.quickFixProcessors"> 642 <quickFixProcessor 643 name="Android Convert Switch Quickfix Processor" 644 class="com.android.ide.eclipse.adt.internal.build.ConvertSwitchQuickFixProcessor" 645 id="com.android.ide.eclipse.adt.internal.build.ConvertSwitchQuickFixProcessor"> 646 <handledMarkerTypes> 647 <markerType id="org.eclipse.jdt.core.problem"/> 648 </handledMarkerTypes> 649 </quickFixProcessor> 650 </extension> 651 <extension point="org.eclipse.ui.propertyPages"> 652 <page 653 adaptable="true" 654 class="com.android.ide.eclipse.adt.internal.properties.AndroidPropertyPage" 655 id="com.android.ide.eclipse.adt.project.properties.AndroidPropertyPage" 656 name="Android" 657 nameFilter="*" 658 objectClass="org.eclipse.core.resources.IProject"> 659 <enabledWhen> 660 <test 661 property="org.eclipse.jdt.launching.hasProjectNature" 662 args="com.android.ide.eclipse.adt.AndroidNature" /> 663 </enabledWhen> 664 </page> 665 <page 666 class="com.android.ide.eclipse.adt.internal.preferences.LintPreferencePage" 667 id="com.android.ide.eclipse.adt.internal.preferences.LintPreferencePage" 668 name="Android Lint Preferences"> 669 <filter 670 name="nature" 671 value="com.android.ide.eclipse.adt.AndroidNature"> 672 </filter> 673 <enabledWhen> 674 <adapt type="org.eclipse.core.resources.IProject" /> 675 </enabledWhen> 676 </page> 677 </extension> 678 <extension point="org.eclipse.ui.actionSets"> 679 <actionSet 680 description="Android Wizards" 681 id="adt.actionSet.wizards" 682 label="Android Wizards" 683 visible="true"> 684 <action 685 class="com.android.ide.eclipse.adt.internal.wizards.actions.NewXmlFileAction" 686 icon="icons/new_xml.png" 687 id="com.android.ide.eclipse.adt.wizards.actions.NewXmlFileAction" 688 label="New Android XML File" 689 style="push" 690 toolbarPath="android_project" 691 tooltip="Opens a wizard to help create a new Android XML file"> 692 </action> 693 <action 694 class="com.android.ide.eclipse.adt.internal.wizards.actions.NewTestProjectAction" 695 icon="icons/androidjunit.png" 696 id="com.android.ide.eclipse.adt.wizards.actions.NewTestProjectAction" 697 label="New Android Test Project" 698 style="push" 699 toolbarPath="android_project" 700 tooltip="Opens a wizard to help create a new Android Test Project"> 701 </action> 702 <action 703 class="com.android.ide.eclipse.adt.internal.wizards.actions.NewProjectAction" 704 icon="icons/new_adt_project.png" 705 id="com.android.ide.eclipse.adt.wizards.actions.NewProjectAction" 706 label="New Android Project" 707 style="push" 708 toolbarPath="android_project" 709 tooltip="Opens a wizard to help create a new Android project"> 710 </action> 711 </actionSet> 712 <actionSet 713 description="Refactorings for Android" 714 id="adt.actionSet.refactorings" 715 label="Android Refactorings" 716 visible="true"> 717 718 <!-- This duplicates the Refactoring Menu definition from the jdt.ui plugin.xml, 719 which allows us to insert our contribution even if the JDT is not loaded. 720 We overload the definition with our new group.--> 721 <menu 722 label="Refactor" 723 path="edit" 724 id="org.eclipse.jdt.ui.refactoring.menu"> 725 <separator name="undoRedoGroup" /> 726 <separator name="reorgGroup" /> 727 <separator name="androidGroup" /> 728 <separator name="codingGroup" /> 729 <separator name="reorgGroup2" /> 730 <separator name="typeGroup" /> 731 <separator name="typeGroup2" /> 732 <separator name="codingGroup2" /> 733 <separator name="typeGroup3" /> 734 <separator name="scriptGroup" /> 735 </menu> 736 <menu 737 label="Android" 738 path="org.eclipse.jdt.ui.refactoring.menu/androidGroup" 739 id="com.android.ide.eclipse.adt.refactoring.menu"> 740 <separator name="android" /> 741 </menu> 742 <action 743 class="com.android.ide.eclipse.adt.internal.refactorings.extractstring.ExtractStringAction" 744 definitionId="com.android.ide.eclipse.adt.refactoring.extract.string" 745 id="com.android.ide.eclipse.adt.actions.ExtractString" 746 label="Extract Android String..." 747 menubarPath="org.eclipse.jdt.ui.refactoring.menu/com.android.ide.eclipse.adt.refactoring.menu/android" 748 style="push" 749 tooltip="Extracts a string into Android resource string"> 750 </action> 751 <action 752 class="com.android.ide.eclipse.adt.internal.editors.layout.refactoring.ExtractIncludeAction" 753 definitionId="com.android.ide.eclipse.adt.refactoring.extract.include" 754 id="com.android.ide.eclipse.adt.actions.ExtractInclude" 755 label="Extract as Include..." 756 menubarPath="org.eclipse.jdt.ui.refactoring.menu/com.android.ide.eclipse.adt.refactoring.menu/android" 757 style="push" 758 tooltip="Extracts Views as Included Layout"> 759 </action> 760 <action 761 class="com.android.ide.eclipse.adt.internal.editors.layout.refactoring.ExtractStyleAction" 762 definitionId="com.android.ide.eclipse.adt.refactoring.extract.style" 763 id="com.android.ide.eclipse.adt.actions.ExtractStyle" 764 label="Extract Style..." 765 menubarPath="org.eclipse.jdt.ui.refactoring.menu/com.android.ide.eclipse.adt.refactoring.menu/android" 766 style="push" 767 tooltip="Extracts Styles"> 768 </action> 769 <action 770 class="com.android.ide.eclipse.adt.internal.editors.layout.refactoring.WrapInAction" 771 definitionId="com.android.ide.eclipse.adt.refactoring.wrapin" 772 id="com.android.ide.eclipse.adt.actions.WrapIn" 773 label="Wrap In Container..." 774 menubarPath="org.eclipse.jdt.ui.refactoring.menu/com.android.ide.eclipse.adt.refactoring.menu/android" 775 style="push" 776 tooltip="Wraps Views in a new container"> 777 </action> 778 <action 779 class="com.android.ide.eclipse.adt.internal.editors.layout.refactoring.UnwrapAction" 780 definitionId="com.android.ide.eclipse.adt.refactoring.unwrap" 781 id="com.android.ide.eclipse.adt.actions.Unwrap" 782 label="Remove Container..." 783 menubarPath="org.eclipse.jdt.ui.refactoring.menu/com.android.ide.eclipse.adt.refactoring.menu/android" 784 style="push" 785 tooltip="Unwraps Views by Removing their container"> 786 </action> 787 <action 788 class="com.android.ide.eclipse.adt.internal.editors.layout.refactoring.ChangeLayoutAction" 789 definitionId="com.android.ide.eclipse.adt.refactoring.convert" 790 id="com.android.ide.eclipse.adt.actions.ChangeLayout" 791 label="Change Layout..." 792 menubarPath="org.eclipse.jdt.ui.refactoring.menu/com.android.ide.eclipse.adt.refactoring.menu/android" 793 style="push" 794 tooltip="Changes layouts from one type to another"> 795 </action> 796 <action 797 class="com.android.ide.eclipse.adt.internal.editors.layout.refactoring.ChangeViewAction" 798 definitionId="com.android.ide.eclipse.adt.refactoring.changeview" 799 id="com.android.ide.eclipse.adt.actions.ChangeView" 800 label="Change Widget Type..." 801 menubarPath="org.eclipse.jdt.ui.refactoring.menu/com.android.ide.eclipse.adt.refactoring.menu/android" 802 style="push" 803 tooltip="Changes the type of the selected widgets"> 804 </action> 805 <menu 806 id="org.eclipse.jdt.ui.refactoring.menu" 807 label="Refactor"> 808 </menu> 809 </actionSet> 810 <actionSet 811 description="Android AVD and SDK Manager" 812 id="adt.actionSet.avdManager" 813 label="Android SDK and AVD Manager" 814 visible="true"> 815 <action 816 class="com.android.ide.eclipse.adt.internal.actions.AvdManagerAction" 817 icon="icons/avd_manager.png" 818 id="com.android.ide.eclipse.adt.ui.avdmanager" 819 label="AVD Manager" 820 menubarPath="Window/additions" 821 style="push" 822 toolbarPath="android_project" 823 tooltip="Opens the Android Virtual Device Manager"> 824 </action> 825 <action 826 class="com.android.ide.eclipse.adt.internal.actions.SdkManagerAction" 827 icon="icons/sdk_manager.png" 828 id="com.android.ide.eclipse.adt.ui.sdkmanager" 829 label="Android SDK Manager" 830 menubarPath="Window/additions" 831 style="push" 832 toolbarPath="android_project" 833 tooltip="Opens the Android SDK Manager"> 834 </action> 835 </actionSet> 836 <actionSet 837 description="Android Lint" 838 id="adt.actionSet.lint" 839 label="Android Lint" 840 visible="true"> 841 <action 842 class="com.android.ide.eclipse.adt.internal.lint.RunLintAction" 843 style="pulldown" 844 icon="icons/lintrun.png" 845 id="com.android.ide.eclipse.adt.ui.lintrunner" 846 label="Run Android Lint" 847 menubarPath="Window/additions" 848 toolbarPath="android_project" 849 tooltip="Runs Android Lint"> 850 </action> 851 </actionSet> 852 </extension> 853 <extension point="org.eclipse.debug.core.launchDelegates"> 854 <launchDelegate 855 delegate="com.android.ide.eclipse.adt.internal.launch.JUnitLaunchConfigDelegate" 856 delegateDescription="Removes the Android JAR from the Bootstrap Classpath" 857 id="com.android.ide.eclipse.adt.launch.JUnitLaunchConfigDelegate.launchAndroidJunit" 858 modes="run,debug" 859 name="Android JUnit Test" 860 type="org.eclipse.jdt.junit.launchconfig"> 861 </launchDelegate> 862 </extension> 863 <extension point="org.eclipse.debug.core.launchConfigurationTypes"> 864 <launchConfigurationType 865 delegate="com.android.ide.eclipse.adt.internal.launch.junit.AndroidJUnitLaunchConfigDelegate" 866 id="com.android.ide.eclipse.adt.junit.launchConfigurationType" 867 modes="run,debug" 868 name="Android JUnit Test" 869 public="true" 870 sourceLocatorId="com.android.ide.eclipse.adt.internal.sourcelookup.AdtSourceLookupDirector" 871 sourcePathComputerId="org.eclipse.jdt.launching.sourceLookup.javaSourcePathComputer"> 872 </launchConfigurationType> 873 </extension> 874 <extension point="org.eclipse.debug.core.sourceLocators"> 875 <sourceLocator 876 id="com.android.ide.eclipse.adt.internal.sourcelookup.AdtSourceLookupDirector" 877 class="com.android.ide.eclipse.adt.internal.sourcelookup.AdtSourceLookupDirector" 878 name="%sourceLocator.name"> 879 </sourceLocator> 880 </extension> 881 <extension point="org.eclipse.debug.ui.launchConfigurationTypeImages"> 882 <launchConfigurationTypeImage 883 configTypeID="com.android.ide.eclipse.adt.junit.launchConfigurationType" 884 icon="icons/androidjunit.png" 885 id="com.android.ide.eclipse.adt.junit.launchConfigurationTypeImage"> 886 </launchConfigurationTypeImage> 887 </extension> 888 <extension point="org.eclipse.debug.ui.launchConfigurationTabGroups"> 889 <launchConfigurationTabGroup 890 class="com.android.ide.eclipse.adt.internal.launch.junit.AndroidJUnitTabGroup" 891 description="Android JUnit Test" 892 id="com.android.ide.eclipse.adt.junit.AndroidJUnitLaunchConfigTabGroup" 893 type="com.android.ide.eclipse.adt.junit.launchConfigurationType" /> 894 </extension> 895 <extension point="org.eclipse.debug.ui.launchShortcuts"> 896 <shortcut 897 class="com.android.ide.eclipse.adt.internal.launch.junit.AndroidJUnitLaunchShortcut" 898 icon="icons/androidjunit.png" 899 id="com.android.ide.eclipse.adt.junit.launchShortcut" 900 label="Android JUnit Test" 901 modes="run,debug"> 902 <contextualLaunch> 903 <enablement> 904 <with variable="selection"> 905 <count value="1" /> 906 <iterate> 907 <adapt type="org.eclipse.jdt.core.IJavaElement"> 908 <test 909 property="org.eclipse.jdt.core.isInJavaProjectWithNature" 910 value="com.android.ide.eclipse.adt.AndroidNature" /> 911 <test 912 property="org.eclipse.jdt.core.hasTypeOnClasspath" 913 value="junit.framework.Test" /> 914 <test property="com.android.ide.eclipse.adt.canLaunchAsJUnit" /> 915 </adapt> 916 </iterate> 917 </with> 918 </enablement> 919 </contextualLaunch> 920 <configurationType id="com.android.ide.eclipse.adt.junit.launchConfigurationType"> 921 </configurationType> 922 </shortcut> 923 </extension> 924 <extension point="org.eclipse.ui.commands"> 925 <category 926 description="Refactorings for Android Projects" 927 id="com.android.ide.eclipse.adt.refactoring.category" 928 name="Android Refactorings"> 929 </category> 930 <command 931 categoryId="com.android.ide.eclipse.adt.refactoring.category" 932 description="Extract Strings into Android String Resources" 933 id="com.android.ide.eclipse.adt.refactoring.extract.string" 934 name="Extract Android String"> 935 </command> 936 <command 937 categoryId="com.android.ide.eclipse.adt.refactoring.category" 938 description="Extract Views as Included Layout" 939 id="com.android.ide.eclipse.adt.refactoring.extract.include" 940 name="Extract as Include"> 941 </command> 942 <command 943 categoryId="com.android.ide.eclipse.adt.refactoring.category" 944 description="Extract Styles" 945 id="com.android.ide.eclipse.adt.refactoring.extract.style" 946 name="Extract Styles"> 947 </command> 948 <command 949 categoryId="com.android.ide.eclipse.adt.refactoring.category" 950 description="Wraps Views in a New Container" 951 id="com.android.ide.eclipse.adt.refactoring.wrapin" 952 name="Wrap in Container"> 953 </command> 954 <command 955 categoryId="com.android.ide.eclipse.adt.refactoring.category" 956 description="Unwraps Views From Their Container" 957 id="com.android.ide.eclipse.adt.refactoring.unwrap" 958 name="Remove Container"> 959 </command> 960 <command 961 categoryId="com.android.ide.eclipse.adt.refactoring.category" 962 description="Converts Layouts from One Type to Another" 963 id="com.android.ide.eclipse.adt.refactoring.convert" 964 name="Change Layout"> 965 </command> 966 <command 967 categoryId="com.android.ide.eclipse.adt.refactoring.category" 968 description="Changes the widget type for the selection" 969 id="com.android.ide.eclipse.adt.refactoring.changeview" 970 name="Change Widget Type"> 971 </command> 972 </extension> 973 <extension point="org.eclipse.ltk.core.refactoring.refactoringContributions"> 974 <contribution 975 class="com.android.ide.eclipse.adt.internal.refactorings.extractstring.ExtractStringContribution" 976 id="com.android.ide.eclipse.adt.refactoring.extract.string"> 977 </contribution> 978 <contribution 979 class="com.android.ide.eclipse.adt.internal.editors.layout.refactoring.ExtractIncludeContribution" 980 id="com.android.ide.eclipse.adt.refactoring.extract.include"> 981 </contribution> 982 <contribution 983 class="com.android.ide.eclipse.adt.internal.editors.layout.refactoring.ExtractStyleContribution" 984 id="com.android.ide.eclipse.adt.refactoring.extract.style"> 985 </contribution> 986 <contribution 987 class="com.android.ide.eclipse.adt.internal.editors.layout.refactoring.WrapInContribution" 988 id="com.android.ide.eclipse.adt.refactoring.wrapin"> 989 </contribution> 990 <contribution 991 class="com.android.ide.eclipse.adt.internal.editors.layout.refactoring.UnwrapContribution" 992 id="com.android.ide.eclipse.adt.refactoring.unwrap"> 993 </contribution> 994 <contribution 995 class="com.android.ide.eclipse.adt.internal.editors.layout.refactoring.ChangeLayoutContribution" 996 id="com.android.ide.eclipse.adt.refactoring.convert"> 997 </contribution> 998 <contribution 999 class="com.android.ide.eclipse.adt.internal.editors.layout.refactoring.ChangeViewContribution" 1000 id="com.android.ide.eclipse.adt.refactoring.changeview"> 1001 </contribution> 1002 </extension> 1003 <extension point="org.eclipse.core.expressions.propertyTesters"> 1004 <propertyTester 1005 properties="isTest,canLaunchAsJUnit" 1006 namespace="com.android.ide.eclipse.adt" 1007 type="org.eclipse.core.runtime.IAdaptable" 1008 class="com.android.ide.eclipse.adt.internal.launch.junit.AndroidJUnitPropertyTester" 1009 id="com.android.ide.eclipse.adt.AndroidJUnitPropertyTester"> 1010 </propertyTester> 1011 </extension> 1012 <extension point="com.android.ide.eclipse.ddms.toolsLocator"> 1013 <locator class="com.android.ide.eclipse.adt.ToolsLocator"> 1014 </locator> 1015 </extension> 1016 <extension point="com.android.ide.eclipse.ddms.debuggerConnector"> 1017 <connector class="com.android.ide.eclipse.adt.DebuggerConnector"> 1018 </connector> 1019 </extension> 1020 <extension point="com.android.ide.eclipse.ddms.sourceRevealer"> 1021 <revealer class="com.android.ide.eclipse.adt.SourceRevealer"> 1022 </revealer> 1023 </extension> 1024 <extension point="org.eclipse.ltk.core.refactoring.renameParticipants"> 1025 <renameParticipant 1026 class="com.android.ide.eclipse.adt.internal.refactoring.core.AndroidTypeRenameParticipant" 1027 id="com.android.ide.eclipse.adt.internal.refactoring.core.AndroidTypeRenameParticipant" 1028 name="Android Rename Type Participant"> 1029 <enablement> 1030 <with variable="element"> 1031 <instanceof value="org.eclipse.jdt.core.IType"> 1032 </instanceof> 1033 </with> 1034 <with variable="affectedNatures"> 1035 <iterate operator="or"> 1036 <equals value="com.android.ide.eclipse.adt.AndroidNature" /> 1037 </iterate> 1038 </with> 1039 </enablement> 1040 </renameParticipant> 1041 <renameParticipant 1042 class="com.android.ide.eclipse.adt.internal.refactoring.core.AndroidPackageRenameParticipant" 1043 id="com.android.ide.eclipse.adt.internal.refactoring.core.AndroidPackageRenameParticipant" 1044 name="Android Rename Package Participant"> 1045 <enablement> 1046 <with variable="element"> 1047 <instanceof value="org.eclipse.jdt.core.IPackageFragment"> 1048 </instanceof> 1049 </with> 1050 <with variable="affectedNatures"> 1051 <iterate operator="or"> 1052 <equals value="com.android.ide.eclipse.adt.AndroidNature" /> 1053 </iterate> 1054 </with> 1055 </enablement> 1056 </renameParticipant> 1057 </extension> 1058 <extension point="org.eclipse.ltk.core.refactoring.moveParticipants"> 1059 <moveParticipant 1060 class="com.android.ide.eclipse.adt.internal.refactoring.core.AndroidTypeMoveParticipant" 1061 id="com.android.ide.eclipse.adt.internal.refactoring.core.androidTypeMoveParticipant" 1062 name="Android Move Type Participant"> 1063 <enablement> 1064 <with variable="element"> 1065 <instanceof value="org.eclipse.jdt.core.IType"> 1066 </instanceof> 1067 </with> 1068 <with variable="affectedNatures"> 1069 <iterate operator="or"> 1070 <equals value="com.android.ide.eclipse.adt.AndroidNature" /> 1071 </iterate> 1072 </with> 1073 </enablement> 1074 </moveParticipant> 1075 </extension> 1076 <extension point="org.eclipse.ui.workbench.texteditor.hyperlinkDetectorTargets"> 1077 <target 1078 id="com.android.ide.eclipse.xmlCode" 1079 name="XML Editor"> 1080 <context type="org.eclipse.ui.texteditor.ITextEditor" /> 1081 </target> 1082 </extension> 1083 <extension point="org.eclipse.ui.workbench.texteditor.hyperlinkDetectors"> 1084 <hyperlinkDetector 1085 class="com.android.ide.eclipse.adt.internal.editors.Hyperlinks$XmlResolver" 1086 id="com.android.ide.eclipse.xmlCodeResolver" 1087 name="Android XML Hyperlink Detector" 1088 targetId="com.android.ide.eclipse.xmlCode"> 1089 </hyperlinkDetector> 1090 <hyperlinkDetector 1091 class="com.android.ide.eclipse.adt.internal.editors.Hyperlinks$JavaResolver" 1092 id="com.android.ide.eclipse.javaCodeResolver" 1093 name="Android Java Hyperlink Detector" 1094 targetId="org.eclipse.jdt.ui.javaCode"> 1095 </hyperlinkDetector> 1096 <!-- 1097 Register this hyperlink provider TWICE, once without any modifier keys, and 1098 once with Modifier1+Modifier2. The one without (which will pick up the default 1099 of M1) will typically duel with the builtin Java hyperlink resolver, so the 1100 user gets a popup and must choose our resolver with the arrow key or mouse 1101 action. The second registration adds a quick bypass for that. 1102 --> 1103 <hyperlinkDetector 1104 class="com.android.ide.eclipse.adt.internal.editors.Hyperlinks$JavaResolver" 1105 id="com.android.ide.eclipse.javaCodeResolver2" 1106 modifierKeys="M1+M2+M3" 1107 name="Android Java Hyperlink Detector (Extra Modifier Key)" 1108 targetId="org.eclipse.jdt.ui.javaCode"> 1109 </hyperlinkDetector> 1110 </extension> 1111 <extension point="org.eclipse.ui.bindings"> 1112 <key 1113 sequence="M3+M2+A S" 1114 contextId="org.eclipse.ui.contexts.window" 1115 commandId="com.android.ide.eclipse.adt.refactoring.extract.string" 1116 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" /> 1117 <key 1118 sequence="M3+M2+A D" 1119 contextId="org.eclipse.ui.contexts.window" 1120 commandId="com.android.ide.eclipse.adt.launch.LaunchShortcut.debug" 1121 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" /> 1122 <key 1123 sequence="M3+M2+A R" 1124 contextId="org.eclipse.ui.contexts.window" 1125 commandId="com.android.ide.eclipse.adt.launch.LaunchShortcut.run" 1126 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" /> 1127 <!-- Rebind the select-enclosing actions from WTP's M2+M3 to M2+M4 to be 1128 consistent with Java files. The contextId is org.eclipse.core.runtime.xml 1129 instead of org.eclipse.wst.sse.ui.structuredTextEditorScope to avoid 1130 keyboard conflict warnings (and an action selection dialog.) 1131 --> 1132 <key 1133 platform="carbon" 1134 sequence="CTRL+SHIFT+ARROW_UP" 1135 contextId="org.eclipse.core.runtime.xml" 1136 commandId="org.eclipse.wst.sse.ui.structure.select.enclosing" 1137 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" /> 1138 <key 1139 platform="carbon" 1140 sequence="CTRL+SHIFT+ARROW_DOWN" 1141 contextId="org.eclipse.core.runtime.xml" 1142 commandId="org.eclipse.wst.sse.ui.structure.select.last" 1143 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" /> 1144 </extension> 1145 <extension point="org.eclipse.core.contenttype.contentTypes"> 1146 <content-type 1147 describer="com.android.ide.eclipse.adt.internal.editors.binaryxml.BinaryXMLDescriber" 1148 file-extensions="xml" 1149 id="com.android.ide.eclipse.adt.binaryXml" 1150 name="Android Binary XML" 1151 priority="high"> 1152 </content-type> 1153 </extension> 1154 <extension point="org.eclipse.ui.startup"> 1155 <startup class="com.android.ide.eclipse.adt.internal.welcome.AdtStartup"/> 1156 </extension> 1157 1158 <!-- workaround for bug 15003. --> 1159 <extension 1160 point="org.eclipse.core.filebuffers.documentCreation" 1161 id="binaryXmlfactories" 1162 name="Binary XML Document Factory Extension"> 1163 <factory 1164 contentTypeId="com.android.ide.eclipse.adt.binaryXml" 1165 class="org.eclipse.wst.sse.core.internal.filebuffers.BasicStructuredDocumentFactory" /> 1166 </extension> 1167 </plugin> 1168