Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Activity with specified local id does not work
Activity with specified local id does not work [message #955754] Wed, 24 October 2012 02:05 Go to next message
Jeeeyul Lee is currently offline Jeeeyul LeeFriend
Messages: 117
Registered: July 2009
Location: Seoul
Senior Member

This is my contribution in plugin.xml
   <extension
         id="shell-menu"
         point="org.eclipse.ui.menus">
      <menuContribution
            allPopups="false"
            locationURI="menu:org.eclipse.jdt.ui.PackageExplorer">
         <command
               commandId="net.jeeeyul.pdetools.command.showInShell"
               style="push">
            <visibleWhen
                  checkEnabled="true">
               <and>
                  <count
                        value="1">
                  </count>
                  <iterate
                        ifEmpty="false"
                        operator="and">
                     <adapt
                           type="org.eclipse.core.resources.IResource">
                        <instanceof
                              value="org.eclipse.core.resources.IResource">
                        </instanceof>
                     </adapt>
                  </iterate>
               </and>
            </visibleWhen>
         </command>
      </menuContribution>
   </extension>


and this is activity in other plugin:
   <extension
         point="org.eclipse.ui.activities">
               <activity
            id="net.jeeeyul.pdetools.capability.activity.shell"
            name="Shell Integration">
      </activity>
      <activityPatternBinding
            activityId="net.jeeeyul.pdetools.capability.activity.shell"
            isEqualityPattern="true"
            pattern="net.jeeeyul.pdetools/shell-menu">
      </activityPatternBinding>
      <categoryActivityBinding
            activityId="net.jeeeyul.pdetools.capability.activity.shell"
            categoryId="net.jeeeyul.pdetools.capability.category">
      </categoryActivityBinding>
      <defaultEnablement
            id="net.jeeeyul.pdetools.capability.activity.shell">
      </defaultEnablement>
   </extension>


When I turn off this activity in Genera Preference Page > Capabilities, It doesn't effect.

When I used regular expression likes "net\.jeeeyul\.pdetools/.*" with false value in "isEqualPattern" attribute, It did work well except contribution for "org.eclupse.ui.popup.any" menu contribution.

"net\.jeeeyul\.pdetools/shell.*" was also not work.

1. Why do I can't use local identifier for Activity pattern binding?
2. Why can I filter popup.any menuContribution?

[Updated on: Wed, 24 October 2012 02:06]

Report message to a moderator

Re: Activity with specified local id does not work [message #957579 is a reply to message #955754] Thu, 25 October 2012 10:24 Go to previous message
Eclipse UserFriend
Activities aren't fully supported on the 4.x stream yet:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=381765
https://bugs.eclipse.org/bugs/show_bug.cgi?id=359778
Previous Topic:Eclipse RCP Synchronyze getImageDescriptor
Next Topic:Incorrect Intro/Welcome behavior after move to 4.2
Goto Forum:
  


Current Time: Thu Apr 25 12:09:42 GMT 2024

Powered by FUDForum. Page generated in 0.04002 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top