[Eclipse]get rid of the menus of eclipse platform

When you develop a rich client application base on eclipse framework, and your application require eclipse platform feature, you would find that your application has some menu items contributed by eclipse platform. Those menu items are defined by several plug-ins' implementation of actionSet extention point. In fact Eclipse provides an activity mechanism to suppress the extension points which you don't want to use. However, you must know the identification name of extension points which you want to suppress. It's a hard work to find out all of them from dozens of plugins. so, I wrote a utility function to list all the extension points of specified name.

    IExtensionRegistry registry = Platform.getExtensionRegistry();  

  IExtensionPoint extensionPoint = registry.getExtensionPoint("org.eclipse.ui.actionSets");  

  IExtension\[\] extensions = extensionPoint.getExtensions();  

  for(int i = 0; i < extensions.length; i++){  

      IConfigurationElement elements\[\] = extensions\[i \].getConfigurationElements();  

      for(int j = 0; j < elements.length; j++){  

          String pluginId = elements\[j\].getNamespaceIdentifier();  

          if(pluginId.indexOf("org.eclipse") > -1){ //$NON-NLS-1$  

              IConfigurationElement\[\] subElements = elements\[j\].getChildren("action");                   

              for(int m = 0; m < subElements.length; m++){  

                  System.out.println("Plugin: " + pluginId + "  Id: " +  






and the follow snippet is about the activities of menus of eclipse platform: