Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 969 lines (953 sloc) 41.584 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?><!--
Copyright 2003-2009 the original author or authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<plugin>
   <extension-point id="syntaxHighlightingExtension" name="Groovy Editor Syntax Highlighting Extension" schema="schema/syntaxHighlightingExtension.exsd"/>
   <extension-point id="outlineExtension" name="Groovy Outline Extension" schema="schema/outlineExtension.exsd"/>

   <extension
         point="org.eclipse.debug.ui.launchConfigurationTypeImages">
      <launchConfigurationTypeImage
            configTypeID="org.codehaus.groovy.eclipse.groovyShellLaunchConfiguration"
            icon="icons/run_groovy_class.gif"
            id="org.codehaus.groovy.eclipse.groovyLaunchConfigurationImage.groovyShell">
      </launchConfigurationTypeImage>
      <launchConfigurationTypeImage
            configTypeID="org.codehaus.groovy.eclipse.groovyScriptLaunchConfiguration"
            icon="icons/run_groovy_class.gif"
            id="org.codehaus.groovy.eclipse.groovyLaunchConfigurationImage.groovyScript">
      </launchConfigurationTypeImage>
      <launchConfigurationTypeImage
            configTypeID="org.codehaus.groovy.eclipse.groovyConsoleLaunchConfiguration"
            icon="icons/run_groovy_class.gif"
            id="org.codehaus.groovy.eclipse.groovyLaunchConfigurationImage.groovyConsole">
      </launchConfigurationTypeImage>
   </extension>
   <extension
         point="org.eclipse.debug.ui.launchConfigurationTabGroups">
      <launchConfigurationTabGroup
            class="org.codehaus.groovy.eclipse.launchers.GroovyShellLaunchConfigurationTabGroup"
            description="Launch an interactive Groovy Shell for a given project"
            id="org.codehaus.groovy.eclipse.groovyShellLaunchConfiguration.tabGroup"
            type="org.codehaus.groovy.eclipse.groovyShellLaunchConfiguration">
      </launchConfigurationTabGroup>
      <launchConfigurationTabGroup
            class="org.codehaus.groovy.eclipse.launchers.GroovyScriptLaunchConfigurationTabGroup"
            description="Launch a Groovy Script"
            id="org.codehaus.groovy.eclipse.groovyScriptLaunchConfiguration.tabGroup"
            type="org.codehaus.groovy.eclipse.groovyScriptLaunchConfiguration">
      </launchConfigurationTabGroup>
      <launchConfigurationTabGroup
            class="org.codehaus.groovy.eclipse.launchers.GroovyScriptLaunchConfigurationTabGroup"
            description="Launch a Groovy Console"
            id="org.codehaus.groovy.eclipse.groovyConsoleLaunchConfiguration.tabGroup"
            type="org.codehaus.groovy.eclipse.groovyConsoleLaunchConfiguration">
      </launchConfigurationTabGroup>
   </extension>
   <extension
         point="org.eclipse.debug.ui.launchShortcuts">
      <shortcut
            class="org.codehaus.groovy.eclipse.launchers.GroovyShellLaunchShortcut"
            description="Launch an interactive Groovy Shell in the given project"
            icon="icons/run_groovy_class.gif"
            id="org.codehaus.groovy.eclipse.debug.ui.groovyShellLaunchShortcut"
            label="Groovy Shell"
            modes="run,debug">
         <contextualLaunch>
            <enablement>
               <with
                     variable="selection">
                  <count
                        value="1">
                  </count>
              <iterate>
                  <test
property="org.eclipse.debug.ui.projectNature"
                      value="org.eclipse.jdt.groovy.core.groovyNature">
                  </test>
               <adapt type="org.eclipse.core.resources.IProject"/>
              </iterate>
               </with>
            </enablement>
         </contextualLaunch>
         <description
               description="Run a Groovy shell for the current project"
               mode="run">
         </description>
         <description
               description="Debug a Groovy shell for the current project"
               mode="debug">
         </description>
      </shortcut>
      <shortcut
            class="org.codehaus.groovy.eclipse.launchers.GroovyScriptLaunchShortcut"
            description="Run a Groovy script"
            icon="icons/run_groovy_class.gif"
            id="org.codehaus.groovy.eclipse.groovyScriptLaunchShortcut"
            label="Groovy Script"
            modes="run,debug">
         <contextualLaunch>
            <enablement>
               <with
                     variable="selection">
                  <count
                        value="1">
                  </count>
                  <iterate>
                     <test
                           property="org.eclipse.debug.ui.projectNature"
                           value="org.eclipse.jdt.groovy.core.groovyNature">
                     </test>
                     <test property="org.codehaus.groovy.eclipse.ui.isScript"/>
                  </iterate>
               </with>
            </enablement>
         </contextualLaunch>
         <description
               description="Run a Groovy script"
               mode="run">
         </description>
         <description
               description="Debug a Groovy script"
               mode="debug">
         </description>
      </shortcut>
      <shortcut
            class="org.codehaus.groovy.eclipse.launchers.GroovyConsoleLaunchShortcut"
            description="Run a Groovy Console"
            icon="icons/run_groovy_class.gif"
            id="org.codehaus.groovy.eclipse.groovyConsoleLaunchShortcut"
            label="Groovy Console"
            modes="run,debug">
         <contextualLaunch>
            <enablement>
               <or>
                  <with
                        variable="selection">
                     <count
                           value="1">
                     </count>
                     <iterate>
                        <test
                              property="org.eclipse.debug.ui.projectNature"
                              value="org.eclipse.jdt.groovy.core.groovyNature">
                        </test>
                        <or>
                         <adapt type="org.eclipse.core.resources.IProject"/>
<test property="org.codehaus.groovy.eclipse.ui.isScript"/>
                        </or>
                     </iterate>
                  </with>
               </or>
            </enablement>
         </contextualLaunch>
         <description
               description="Run a Groovy console"
               mode="run">
         </description>
         <description
               description="Debug a Groovy console"
               mode="debug">
         </description>
      </shortcut>
   </extension>
   <extension
         point="org.eclipse.ui.editors">
      <editor
            class="org.codehaus.groovy.eclipse.editor.GroovyEditor"
            contributorClass="org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditorActionContributor"
            default="true"
            extensions="groovy"
            icon="icons/groovy_file.gif"
            id="org.codehaus.groovy.eclipse.editor.GroovyEditor"
            name="Groovy Editor"
            symbolicFontName="org.eclipse.jdt.ui.editors.textfont">
         <contentTypeBinding
               contentTypeId="org.eclipse.jdt.groovy.core.groovySource">
         </contentTypeBinding>
      </editor>
   </extension>
   <extension
         id="org.codehaus.groovy.eclipse.editor.GroovyDocumentSetupParticipant"
         name="GroovyDocumentSetupParticipant"
         point="org.eclipse.core.filebuffers.documentSetup">
      <participant
            class="org.codehaus.groovy.eclipse.editor.GroovyDocumentSetupParticipant"
            contentTypeId="org.eclipse.jdt.groovy.core.groovySource">
      </participant>
   </extension>
   <extension
         point="org.eclipse.ui.newWizards">
      <category
            name="Groovy"
            id="org.codehaus.groovy.eclipse">
      </category>
      <wizard
            name="Groovy Class"
            icon="icons/newgroovyclass_wiz.gif"
            category="org.codehaus.groovy.eclipse"
            preferredPerspectives="org.eclipse.jdt.ui.JavaPerspective,com.springsource.sts.grails.perspective,org.grails.ide.eclipse.perspective"
            finalPerspective="org.eclipse.jdt.ui.JavaPerspective"
            id="org.codehaus.groovy.eclipse.ui.groovyClassWizard">
         <class class="org.codehaus.groovy.eclipse.wizards.NewClassWizard">
            <parameter
                name="javatype"
                value="true">
            </parameter>
         </class>
         <description>
            Create a new Groovy class
         </description>
      </wizard>
      <wizard
            name="Groovy Project"
            icon="icons/newgroovyprj_wiz.gif"
            category="org.codehaus.groovy.eclipse"
            class="org.codehaus.groovy.eclipse.wizards.GroovyProjectWizard"
            descriptionImage="icons/full/newgroovyprj_wiz.gif"
            preferredPerspectives="org.eclipse.jdt.ui.JavaPerspective,com.springsource.sts.grails.perspective,org.grails.ide.eclipse.perspective"
project="true"
            finalPerspective="org.eclipse.jdt.ui.JavaPerspective"
            id="org.codehaus.groovy.eclipse.ui.groovyProjectWizard">
         <description>
          Create a new Groovy project
         </description>
      </wizard>
      <wizard
            category="org.codehaus.groovy.eclipse"
            finalPerspective="org.eclipse.jdt.ui.JavaPerspective"
            icon="icons/newgroovytestsuite_wiz.gif"
            id="org.codehaus.groovy.eclipse.ui.groovyJUnitWizard"
            name="Groovy Test Case"
            preferredPerspectives="org.eclipse.jdt.ui.JavaPerspective,com.springsource.sts.grails.perspective,org.grails.ide.eclipse.perspective">
         <class class="org.codehaus.groovy.eclipse.wizards.NewGroovyTestCaseWizard">
            <parameter
                name="javatype"
                value="true">
            </parameter>
         </class>
         <description>
            Create a new Groovy JUnit test suite
         </description>
      </wizard>
      <primaryWizard
            id="org.codehaus.groovy.eclipse.ui.groovyClassWizard">
      </primaryWizard>
      <primaryWizard
            id="org.codehaus.groovy.eclipse.ui.groovyProjectWizard">
      </primaryWizard>
   </extension>
   <extension point="org.eclipse.ui.views">
      <category name="Groovy" id="org.codehaus.groovy.eclipse.Groovy" />
   </extension>
   
    <extension point="org.eclipse.ui.popupMenus">
   <objectContribution id="org.codehaus.groovy.eclipse.groovyProjectContributions"
    adaptable="true"
    objectClass="org.eclipse.core.resources.IProject">
<action
class="org.codehaus.groovy.eclipse.actions.RemoveGroovyNatureAction"
enablesFor="1"
id="org.codehaus.groovy.eclipse.removenature.action"
label="Remove Groovy nature"
menubarPath="groovy/nature">
</action>
<action
             class="org.codehaus.groovy.eclipse.actions.AddGroovyClasspathContainerAction"
             enablesFor="1"
             id="org.codehaus.groovy.eclipse.importlibs.action"
             label="Add Groovy libs to classpath"
             menubarPath="groovy/libs"
             tooltip="Add or remove the Groovy classpath container to this project">
</action>
<visibility>
<objectState
name="nature"
value="org.eclipse.jdt.groovy.core.groovyNature">
</objectState>
</visibility>
</objectContribution>

<objectContribution id="org.codehaus.groovy.eclipse.groovyFileContributions"
  adaptable="true"
  objectClass="org.eclipse.core.resources.IFile">
<action
            class="org.codehaus.groovy.eclipse.editor.actions.RenameToGroovyAction"
            definitionId="org.codehaus.groovy.eclipse.ui.convertToGroovy"
            enablesFor="*"
            id="org.codehaus.groovy.eclipse.convertToGroovy.action"
            label="Convert file extension to Groovy"
            menubarPath="groovyfile/defaultGroup">
         <enablement>
            <objectState
                  name="extension"
                  value="java"/>
         </enablement>
</action>
<action
            class="org.codehaus.groovy.eclipse.editor.actions.RenameToJavaAction"
            definitionId="org.codehaus.groovy.eclipse.ui.convertToJava"
            enablesFor="*"
            id="org.codehaus.groovy.eclipse.convertToJava.action"
            label="Convert file extension to Java"
            menubarPath="groovyfile/defaultGroup"
            tooltip="Convert file to having a *.java extension">
          <enablement>
            <objectState
                  name="extension"
                  value="groovy">
            </objectState>
         </enablement>
</action>
<menu
            id="groovyfile"
            label="Groovy"
            path="additions">
         <separator
               name="defaultGroup">
         </separator>
      </menu>
      <visibility>
         <objectState
            name="projectNature"
            value="org.eclipse.jdt.groovy.core.groovyNature"/>
      </visibility>
</objectContribution>

<!--
Restrict selection to be a project with a Groovy nature.
Specifying an "IJavaProject" objectClass would mean that
this contribution would become unavailable for web and EJB
projects in IBM Rational 6.x tools.
-->
    <objectContribution id="org.codehaus.groovy.eclipse.groovymenu"
    adaptable="true"
    objectClass="org.eclipse.core.resources.IProject">
<menu
id="groovy"
label="Groovy"
path="additions">
<separator name="defaultGroup"/>
             <separator
                  name="libs">
            </separator>
        </menu>
        <visibility>
           <objectState
                 name="nature"
                 value="org.eclipse.jdt.groovy.core.groovyNature">
           </objectState>
        </visibility>
</objectContribution>

<!-- In "Configure" sub-menu -->
    <objectContribution
           adaptable="true"
           id="org.codehaus.groovy.eclipse.nonGroovyContributions"
           objectClass="org.eclipse.core.resources.IProject">
        <action
              class="org.codehaus.groovy.eclipse.actions.AddGroovyNatureAction"
              enablesFor="1"
              id="org.codehaus.groovy.eclipse.addnature.action"
              label="Convert to Groovy Project"
              menubarPath="org.eclipse.ui.projectConfigure/additions">
        </action>
        <visibility>
          <and>
<objectState name="nature" value="org.eclipse.jdt.core.javanature"/>
<not>
<objectState name="nature" value="org.eclipse.jdt.groovy.core.groovyNature"/>
</not>
<objectState name="open" value="true"/>
</and>
        </visibility>
     </objectContribution>
     <objectContribution
           adaptable="true"
           id="org.codehaus.groovy.eclipse.legacyContributions"
           objectClass="org.eclipse.core.resources.IProject">
        <action
              class="org.codehaus.groovy.eclipse.actions.ConvertLegacyProjectAction"
              enablesFor="1"
              id="org.codehaus.groovy.eclipse.convert.action"
              label="Convert Legacy Groovy Project"
              menubarPath="org.eclipse.ui.projectConfigure/additions">
        </action>
        <visibility>
           <objectState
                 name="nature"
                 value="org.codehaus.groovy.eclipse.groovyNature">
           </objectState>
        </visibility>
     </objectContribution>
     
   <!--Our Toggle breakpoint action and JDT's other breakpoint actions-->
     <viewerContribution
            targetID="#GroovyCompilationUnitRulerContext"
            id="org.codehaus.groovy.eclipse.ui.CompilationUnitRulerPopupActions">
         <action
               label="Breakpoint P&amp;roperties..."
               helpContextId="breakpoint_properties_action_context"
               class="org.eclipse.jdt.debug.ui.actions.JavaBreakpointPropertiesRulerActionDelegate"
               menubarPath="group.properties"
               id="org.eclipse.jdt.debug.ui.actions.JavaBreakpointPropertiesRulerActionDelegate">
         </action>
         <action
               label="(Groovy) &amp;Toggle Breakpoint Enabled"
               helpContextId="enable_disable_breakpoint_action_context"
               class="org.eclipse.debug.ui.actions.RulerEnableDisableBreakpointActionDelegate"
               menubarPath="debug"
               id="org.eclipse.jdt.debug.ui.actions.EnableDisableBreakpointRulerActionDelegate">
         </action>
         <action
               helpContextId="manage_breakpoint_action_context"
               label="(Groovy) Toggle Breakpoint"
               class="org.codehaus.groovy.eclipse.debug.ui.GroovyBreakpointRulerActionDelegate"
               menubarPath="debug"
               id="org.codehaus.groovy.eclipse.debug.ui.GroovyBreakpointRulerActionDelegate">
         </action>
         <action
               label="Add Task..."
               helpContextId="org.eclipse.ui.AddTask_action_context"
               tooltip="%AddTask.tooltip"
               class="org.eclipse.ui.texteditor.TaskRulerAction"
               menubarPath="add"
               id="org.eclipse.ui.texteditor.TaskRulerAction">
         </action>
         <action
               label="Add Bookmark..."
               helpContextId="org.eclipse.ui.bookmark_action_context"
               class="org.eclipse.ui.texteditor.BookmarkRulerAction"
               menubarPath="add"
               id="org.eclipse.ui.texteditor.BookmarkRulerAction">
         </action>
         
         <!-- This adds "Quick Fix" action to the Groovy editor ruler context menu -->
<action
               label="Select Annotation ruler"
               helpContextId="org.eclipse.ui.bookmark_action_context"
               class="org.eclipse.jdt.internal.ui.javaeditor.JavaSelectRulerAction"
               menubarPath="add"
               id="org.eclipse.jdt.internal.ui.javaeditor.JavaSelectRulerAction">
         </action>
     </viewerContribution>
     
     <!-- Groovy Refactorings -->
     <viewerContribution
               id="org.codehaus.groovy.viewer.refactorings"
               targetID="#GroovyCompilationUnitEditorContext">
        <menu id="org.codehaus.groovy.refactoring.menu"
              label="Groovy Refac&amp;tor">
           <separator name="refactoring"/>
      </menu>
<action
class="org.codehaus.groovy.eclipse.refactoring.actions.ConvertToMethodAction"
id="org.groovy.codehaus.eclipse.ui.actions.convertToMethodContribution"
label="Convert closure to method"
definitionId="org.codehaus.groovy.eclipse.ui.convertToMethod"
menubarPath="org.codehaus.groovy.refactoring.menu/refactoring"
style="push">
</action>
<action
class="org.codehaus.groovy.eclipse.refactoring.actions.ConvertToClosureAction"
id="org.groovy.codehaus.eclipse.ui.actions.convertToClosureContribution"
label="Convert method to closure"
definitionId="org.codehaus.groovy.eclipse.ui.convertToClosure"
menubarPath="org.codehaus.groovy.refactoring.menu/refactoring"
style="push">
</action>
    </viewerContribution>
   </extension>
   <extension
         point="org.eclipse.ui.actionSets">
       <actionSet
            label="Groovy Element Creation"
            visible="true"
            id="org.codehaus.groovy.eclipse.ui.groovyElementCreation">
         <action
               class="org.codehaus.groovy.eclipse.wizards.OpenGroovyProjectWizardAction"
               icon="icons/newgroovyprj_wiz.gif"
               id="opengroovyprojectwizard"
               label="Groovy Project..."
               toolbarPath="org.eclipse.jdt.ui.JavaElementCreationActionSet/JavaWizards"
               tooltip="New Groovy Project">
         </action>
        </actionSet>
       <actionSet
             description="Converts between groovy and java file extensions"
             id="org.codehaus.groovy.eclipse.conversion"
             label="Convert to or from groovy file extension"
             visible="false">
          <action
                class="org.codehaus.groovy.eclipse.editor.actions.RenameToGroovyAction"
                definitionId="org.codehaus.groovy.eclipse.ui.convertToGroovy"
                enablesFor="*"
                id="org.codehaus.groovy.eclipse.convertToGroovy.action"
                label="Convert file extension to Groovy">
             <enablement>
                <objectState
                      name="extension"
                      value="java">
                </objectState>
             </enablement>
          </action>
          <action
                class="org.codehaus.groovy.eclipse.editor.actions.RenameToJavaAction"
                definitionId="org.codehaus.groovy.eclipse.ui.convertToJava"
                enablesFor="*"
                id="org.codehaus.groovy.eclipse.convertToJava.action"
                label="Convert file extension to Java"
                tooltip="Convert file to having a *.java extension">
             <enablement>
                <objectState
                      name="extension"
                      value="groovy">
                </objectState>
             </enablement>
          </action>
       </actionSet>
   </extension>
   <extension point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.eclipse.jdt.ui.JavaPerspective">
<actionSet id="org.codehaus.groovy.eclipse.ui.groovyElementCreation"/>
<newWizardShortcut id="org.codehaus.groovy.eclipse.ui.groovyClassWizard"/>
<newWizardShortcut id="org.codehaus.groovy.eclipse.ui.groovyProjectWizard"/>
<newWizardShortcut id="org.codehaus.groovy.eclipse.ui.groovyJUnitWizard"/>
      <actionSet
            id="org.codehaus.groovy.eclipse.conversion">
      </actionSet>
</perspectiveExtension>
<perspectiveExtension
targetID="org.eclipse.jdt.ui.JavaBrowsingPerspective">
<actionSet id="org.codehaus.groovy.eclipse.ui.groovyElementCreation"/>
<newWizardShortcut id="org.codehaus.groovy.eclipse.ui.groovyClassWizard"/>
<newWizardShortcut id="org.codehaus.groovy.eclipse.ui.groovyProjectWizard"/>
<newWizardShortcut id="org.codehaus.groovy.eclipse.ui.groovyJUnitWizard"/>
      <actionSet
            id="org.codehaus.groovy.eclipse.conversion">
      </actionSet>
</perspectiveExtension>
<perspectiveExtension
targetID="org.eclipse.jdt.ui.JavaHierarchyPerspective">
<actionSet id="org.codehaus.groovy.eclipse.ui.groovyElementCreation"/>
<newWizardShortcut id="org.codehaus.groovy.eclipse.ui.groovyClassWizard"/>
<newWizardShortcut id="org.codehaus.groovy.eclipse.ui.groovyProjectWizard"/>
<newWizardShortcut id="org.codehaus.groovy.eclipse.ui.groovyJUnitWizard"/>
      <actionSet
            id="org.codehaus.groovy.eclipse.conversion">
      </actionSet>
</perspectiveExtension>
     <perspectiveExtension
  targetID="org.eclipse.jst.j2ee.J2EEPerspective">
<actionSet id="org.codehaus.groovy.eclipse.ui.groovyElementCreation"/>
<newWizardShortcut id="org.codehaus.groovy.eclipse.ui.groovyClassWizard"/>
<newWizardShortcut id="org.codehaus.groovy.eclipse.ui.groovyProjectWizard"/>
<newWizardShortcut id="org.codehaus.groovy.eclipse.ui.groovyJUnitWizard"/>
      <actionSet
            id="org.codehaus.groovy.eclipse.conversion">
      </actionSet>
     </perspectiveExtension>
<perspectiveExtension
targetID="org.eclipse.pde.ui.PDEPerspective">
<actionSet id="org.codehaus.groovy.eclipse.ui.groovyElementCreation"/>
      <actionSet
            id="org.codehaus.groovy.eclipse.conversion">
      </actionSet>
</perspectiveExtension>
   </extension>
   <extension
         point="org.eclipse.ui.preferencePages">
      <page
            class="org.codehaus.groovy.eclipse.preferences.GroovyPreferencePage"
            id="org.codehaus.groovy.eclipse.preferences"
            name="Groovy"/>
      <page
            category="org.codehaus.groovy.eclipse.preferences"
            class="org.codehaus.groovy.eclipse.preferences.GroovyEditorPreferencesPage"
            id="org.codehaus.groovy.eclipse.preferences.editor"
            name="Editor"/>
       <page
             category="org.codehaus.groovy.eclipse.preferences"
             class="org.codehaus.groovy.eclipse.preferences.FormatterPreferencesPage"
             id="org.codehaus.groovy.eclipse.preferences.formatter"
             name="Formatter">
       </page>
       <page
             category="org.codehaus.groovy.eclipse.preferences"
             class="org.codehaus.groovy.eclipse.preferences.CompilerPreferencesPage"
             id="org.codehaus.groovy.eclipse.preferences.compiler"
             name="Compiler">
       </page>
       <page
             category="org.codehaus.groovy.eclipse.preferences"
             class="org.codehaus.groovy.eclipse.preferences.DebuggerPreferencesPage"
             id="org.codehaus.groovy.eclipse.preferences.debugger"
             name="Debugger">
       </page>
       <page
             category="org.codehaus.groovy.eclipse.preferences"
             class="org.codehaus.groovy.eclipse.preferences.SaveActionsPreferencePage"
             id="org.codehaus.groovy.eclipse.ui.preferences.SaveActionsPreferencePage"
             name="Save Actions">
       </page>
   </extension>
   
   <extension
         point="org.eclipse.ui.commands">
      <command
            categoryId="org.eclipse.debug.ui.category.run"
            description="Run Groovy Shell"
            id="org.codehaus.groovy.eclipse.debug.ui.groovyShellLaunchShortcut.run"
            name="Run Groovy Shell"/>
      <command
            categoryId="org.eclipse.debug.ui.category.run"
            description="Debug Groovy Shell"
            id="org.codehaus.groovy.eclipse.debug.ui.groovyShellLaunchShortcut.debug"
            name="Debug Groovy Shell"/>
      <command
            categoryId="org.eclipse.debug.ui.category.run"
            description="Run Groovy Console"
            id="org.codehaus.groovy.eclipse.groovyConsoleLaunchShortcut.run"
            name="Run Groovy Console"/>
      <command
            categoryId="org.eclipse.debug.ui.category.run"
            description="Debug Groovy Console"
            id="org.codehaus.groovy.eclipse.groovyConsoleLaunchShortcut.debug"
            name="Debug Groovy Console"/>
      <command
            categoryId="org.eclipse.debug.ui.category.run"
            description="Run Groovy Script"
            id="org.codehaus.groovy.eclipse.groovyScriptLaunchShortcut.run"
            name="Run Groovy Script"/>
      <command
            categoryId="org.eclipse.debug.ui.category.run"
            description="Debug Groovy Script"
            id="org.codehaus.groovy.eclipse.groovyScriptLaunchShortcut.debug"
            name="Debug Groovy Script"/>
      <command
            categoryId="org.codehaus.groovy.eclipse.refactoring.commands.refactoring"
            description="Converts a file with a groovy extension to a file with a java extension"
            id="org.codehaus.groovy.eclipse.ui.convertToJava"
            name="Convert to Java">
      </command>
      <command
            categoryId="org.codehaus.groovy.eclipse.refactoring.commands.refactoring"
            description="Converts a file with a java extension to a file with a groovy extension"
            id="org.codehaus.groovy.eclipse.ui.convertToGroovy"
            name="Convert to Groovy"/>
      <command
            categoryId="org.codehaus.groovy.eclipse.editor.category.source"
            description="Populates the search view with all occurrecnes of currently selected token in the file"
            id="org.codehaus.groovy.eclipse.ui.findOccurrences"
            name="Find occurrences in current file">
      </command>
      <command
            categoryId="org.codehaus.groovy.eclipse.refactoring.commands.refactoring"
            description="Convert a method declaration to a closure"
            id="org.codehaus.groovy.eclipse.ui.convertToClosure"
            name="Convert to closure">
      </command>
      <command
            categoryId="org.codehaus.groovy.eclipse.refactoring.commands.refactoring"
            description="Convert a closure declaration to a method"
            id="org.codehaus.groovy.eclipse.ui.convertToMethod"
            name="Convert to method">
      </command>
   </extension>
   <extension
         point="org.eclipse.ui.contexts">
      <context
            description="Editing Groovy Source Context"
            id="org.codehaus.groovy.eclipse.editor.groovyEditorScope"
            name="Editing Groovy Source"
            parentId="org.eclipse.jdt.ui.javaEditorScope"/>
   </extension>
   <extension
         point="org.eclipse.ui.bindings">
      <key
            commandId="org.codehaus.groovy.eclipse.groovyScriptLaunchShortcut.run"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="M2+M3+X G"/>
      <key
            commandId="org.codehaus.groovy.eclipse.groovyScriptLaunchShortcut.debug"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="M2+M3+D G"/>
      <key
            commandId="org.codehaus.groovy.eclipse.ui.convertToJava"
            contextId="org.eclipse.ui.contexts.window"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="M3+G J"/>
      <key
            commandId="org.codehaus.groovy.eclipse.ui.convertToGroovy"
            contextId="org.eclipse.ui.contexts.window"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="M3+J G"/>
            
      <key
            commandId="org.codehaus.groovy.eclipse.ui.convertToMethod"
            contextId="org.codehaus.groovy.eclipse.editor.groovyEditorScope"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="M3+G M"/>
      <key
            commandId="org.codehaus.groovy.eclipse.ui.convertToClosure"
            contextId="org.codehaus.groovy.eclipse.editor.groovyEditorScope"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="M3+G F"/>
      <!-- Now disable all of the M3+G commands for Swiss German since that conflicts with '@' -->
      <key
            contextId="org.eclipse.ui.contexts.window"
            locale="de_CH"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="M3+G J"/>
      <!-- Reenable commands using M1+M3+G for Swiss German -->
      <key
            commandId="org.codehaus.groovy.eclipse.ui.convertToJava"
            contextId="org.eclipse.ui.contexts.window"
            locale="de_CH"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="M1+M3+G J"/>
            
      <!-- Use our Find occurrences command instead -->
      <key
            commandId="org.codehaus.groovy.eclipse.ui.findOccurrences"
            contextId="org.codehaus.groovy.eclipse.editor.groovyEditorScope"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="M1+M2+U"/>
   </extension>
   <extension point="org.eclipse.debug.ui.consoleLineTrackers">
<consoleLineTracker
class="org.codehaus.groovy.eclipse.launchers.GroovyConsoleLineTracker"
processType="java"
id="org.codehaus.groovy.eclipse.launchers.GroovyConsoleLineTrackerForJava"/>
<consoleLineTracker
class="org.codehaus.groovy.eclipse.launchers.GroovyConsoleLineTracker"
processType="groovy"
id="org.codehaus.groovy.eclipse.launchers.GroovyConsoleLineTrackerForGroovy"/>
</extension>
<extension
point="org.eclipse.core.expressions.propertyTesters">
<propertyTester
          class="org.codehaus.groovy.eclipse.ui.GroovyResourcePropertyTester"
          id="org.codehaus.groovy.eclipse.ui.groovyResourcePropertyTester"
          namespace="org.codehaus.groovy.eclipse.ui"
          properties="isTest,hasMain,isScript"
          type="org.eclipse.core.runtime.IAdaptable"/>
</extension>
<extension
       point="org.eclipse.core.runtime.preferences">
     <initializer class="org.codehaus.groovy.eclipse.preferences.PreferenceInitializer"/>
         <initializer
               class="org.codehaus.groovy.eclipse.preferences.FormatterPreferenceInitializer">
         </initializer>
         <initializer
               class="org.codehaus.groovy.eclipse.preferences.SaveActionsPreferenceInitializer">
         </initializer>
</extension>
<extension
        point="org.eclipse.jdt.ui.classpathContainerPage">
    <classpathContainerPage
          class="org.codehaus.groovy.eclipse.ui.cpcontainer.GroovyClasspathContainerPage"
          id="GROOVY_SUPPORT"
          name="Groovy Runtime Libraries">
    </classpathContainerPage>
 </extension>
 <extension
       point="org.eclipse.ui.ide.projectNatureImages">
    <image
          icon="icons/groovy-project-overlay.gif"
          id="org.codehaus.groovy.eclipse.groovyNatureImage"
          natureId="org.eclipse.jdt.groovy.core.groovyNature">
    </image>
 </extension>
 <extension
       point="org.eclipse.ui.decorators">
    <decorator
          class="org.codehaus.groovy.eclipse.ui.decorators.GroovyImageDecorator"
          id="org.codehaus.groovy.eclipse.ui.decorator"
          label="Groovy Source File"
          lightweight="false"
          state="true">
       <description>
          Shows an image for Groovy Source files.
       </description>
    </decorator>
<!-- Shows overlay for groovy elements, but only in package explorer and outline view
<decorator
adaptable="true"
class="org.codehaus.groovy.eclipse.ui.decorators.GroovyElementDecorator"
id="org.codehaus.groovy.eclipse.ui.decorators.GroovyElementDecorator"
label="Groovy Element Decorator"
lightweight="true"
state="true">
<enablement>
<objectClass
name="org.eclipse.jdt.core.IMember">
</objectClass>
</enablement>
</decorator>
-->
 </extension>
<extension point="org.eclipse.core.runtime.adapters">
         <factory
            class="org.codehaus.groovy.eclipse.debug.ui.GroovyRetargettableActionAdapterFactory"
            adaptableType="org.codehaus.groovy.eclipse.editor.GroovyEditor">
            <adapter type="org.eclipse.debug.ui.actions.IToggleBreakpointsTarget"/>
         </factory>
   <factory adaptableType="org.eclipse.ui.IFileEditorInput"
         class="org.codehaus.groovy.eclipse.adapters.GroovyIFileEditorInputAdapterFactory">
      <adapter type="org.codehaus.groovy.ast.ClassNode"/>
</factory>
    <factory
          adaptableType="org.codehaus.groovy.eclipse.editor.GroovyEditor"
          class="org.codehaus.groovy.eclipse.adapters.GroovyEditorAdapterFactory">
       <adapter
             type="org.codehaus.groovy.ast.ModuleNode">
       </adapter>
    </factory>
    </extension>
 <extension
       point="org.eclipse.ui.editorActions">
      <editorContribution
            targetID="org.codehaus.groovy.eclipse.editor.GroovyEditor"
            id="org.codehaus.groovy.editor.actions">
<!-- Ruler actions -->
         <action
               label="Toggle Breakpoint"
               class="org.codehaus.groovy.eclipse.debug.ui.GroovyBreakpointRulerActionDelegate"
               actionID="RulerDoubleClick"
               id="org.groovy.codehaus.eclipse.ui.actions.ManageBreakpointRulerAction">
         </action>
         <action
               label="Select Annotation ruler"
               class="org.eclipse.jdt.internal.ui.javaeditor.JavaSelectRulerAction"
               actionID="RulerClick"
               id="org.eclipse.jdt.internal.ui.javaeditor.JavaSelectRulerAction">
         </action>
       <action
             class="org.codehaus.groovy.eclipse.editor.actions.FindOccurrencesAction"
             definitionId="org.codehaus.groovy.eclipse.ui.findOccurrences"
             id="org.codehaus.groovy.eclipse.ui.action.findOccurrences"
             label="Find Occurrences in file"
             style="push">
       </action>
      </editorContribution>
 </extension>
 <extension
       point="org.eclipse.ui.editors.markerUpdaters">
    <updater
          class="org.codehaus.groovy.eclipse.debug.ui.BreakpointUpdater"
          id="org.codehaus.groovy.eclipse.breakpointUpdater"
          markerType="org.eclipse.debug.core.breakpointMarker">
    </updater>
 </extension>
 <extension
       point="org.eclipse.ui.actionSetPartAssociations">
    <actionSetPartAssociation
          targetID="org.eclipse.jdt.ui.CodingActionSet">
       <part
             id="org.codehaus.groovy.eclipse.editor.GroovyEditor">
       </part>
    </actionSetPartAssociation>
    <actionSetPartAssociation
          targetID="org.eclipse.jdt.ui.SearchActionSet">
       <part
             id="org.codehaus.groovy.eclipse.editor.GroovyEditor">
       </part>
    </actionSetPartAssociation>
    <actionSetPartAssociation
          targetID="org.eclipse.jdt.ui.JavaActionSet">
       <part
             id="org.codehaus.groovy.eclipse.editor.GroovyEditor">
       </part>
    </actionSetPartAssociation>
 </extension>
 <extension
       point="org.eclipse.jdt.debug.javaLogicalStructures">
    <javaLogicalStructure
          description="Groovy Reference Objects, used within Groovy closures"
          subtypes="true"
          type="groovy.lang.Reference"
          value="return get();">
    </javaLogicalStructure>
 </extension>
 <extension
       point="org.eclipse.ui.perspectiveExtensions">
    <perspectiveExtension
          targetID="org.eclipse.jdt.ui.JavaPerspective">
       <newWizardShortcut
             id="org.codehaus.groovy.eclipse.ui.groovyClassWizard">
       </newWizardShortcut>
       <newWizardShortcut
             id="org.codehaus.groovy.eclipse.ui.groovyProjectWizard">
       </newWizardShortcut>
    </perspectiveExtension>
 </extension>
 <extension
       point="org.eclipse.ui.console.consoleFactories">
    <consoleFactory
          class="org.codehaus.groovy.eclipse.ui.console.GroovyConsoleFactory"
          icon="icons/run_groovy_class.gif"
          label="Groovy Event Console">
    </consoleFactory>
 </extension>
 
    <extension
         point="org.eclipse.jdt.ui.javaEditorTextHovers">
      <hover
            activate="true"
            class="org.codehaus.groovy.eclipse.editor.GroovyExtraInformationHover"
            description="Used JavaDoc supplied by Groovy DSL"
            id="org.codehaus.groovy.eclipse.dsl.gdslhover"
            label="Groovy Information Hover">
      </hover>
   </extension>
    <extension
          point="org.eclipse.core.variables.dynamicVariables">
       <variable
             description="The absolute file system location of the Groovy home used in this instance of Eclipse."
             name="groovy_home"
             resolver="org.codehaus.groovy.eclipse.launchers.GroovyHomeVariableResolver"
             supportsArgument="false">
       </variable>
    </extension>
    <extension
          point="org.eclipse.ui.workbench.texteditor.hyperlinkDetectorTargets">
       <target
             description="Hyperlink target for URL Mappings"
             id="org.codehaus.groovy.eclipse.groovyCode"
             name="Hyperlink target for URL Mappings">
          <context
                type="org.codehaus.groovy.eclipse.editor.GroovyEditor">
          </context>
       </target>
    </extension>
    <extension
          point="org.eclipse.jdt.ui.queryParticipants">
       <queryParticipant
             class="org.codehaus.groovy.eclipse.search.SyntheticAccessorQueryParticipant"
             id="org.codehaus.groovy.eclipse.ui.syntheticAccessorQueryParticipant"
             name="Groovy synthetic getter and setter references"
             nature="org.eclipse.jdt.groovy.core.groovyNature">
       </queryParticipant>
    </extension>
    <extension
          point="org.eclipse.ui.propertyPages">
       <page
             adaptable="true"
             class="org.codehaus.groovy.eclipse.preferences.CompilerPreferencesPage"
             id="org.codehaus.groovy.eclipse.preferences.compiler.project"
             name="Groovy Compiler"
             objectClass="org.eclipse.core.resources.IProject">
          <filter
                name="nature"
                value="org.eclipse.jdt.groovy.core.groovyNature">
          </filter>
       </page>
    </extension>
    <extension
          point="org.eclipse.ui.ide.markerResolution">
       <markerResolutionGenerator
             class="org.codehaus.groovy.eclipse.actions.CompilerMismatchMarkerResolutionGenerator"
             markerType="org.codehaus.groovy.eclipse.core.compilerMismatch">
       </markerResolutionGenerator>
    </extension>
</plugin>
Something went wrong with that request. Please try again.