Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-team-dev] Using commads instead of action in team popup menu

Hi,

 

I want to use commands instead of actions for my contributions to the team popup menu, but I wasn’t able to get this done. I tried this:

 

<extension

        point="org.eclipse.ui.menus">

     <menuContribution

           locationURI="popup:team.main?after=group3">

        <command

              commandId="com.foo.bar.team.commands.addpackages"

              icon="icons/package_native.gif"

              id="com.foo.bar.team.menu.addpackages"

              label="1"

              style="push"

           <visibleWhen

                 checkEnabled="false">

              <and>

                 <test

                       args="org.eclipse.team.core.repository"

                       property="org.eclipse.core.resources.projectPersistentProperty"

                       value="com.foo.bar.team.TeamProvider">

                 </test>

              </and>

           </visibleWhen>

        </command>

     </menuContribution>

  </extension>

       <extension

              id="com.foo.bar.team.commands"

              name="Team Commands"

              point="org.eclipse.ui.commands">

      <category

            id="com.foo.bar.team.category"

            name="Team">

      </category>

       <command

             categoryId="com.foo.bar.team.category"

             id="com.foo.bar.team.commands.addpackages"

             name="Add Packages ...">

       </command>

</extension>

 

A handler was defined as well.

Could anyone help?

 

Cheers,

Daniel


Back to the top