java 代码
- try {
- IExtensionRegistry extensionRegistry = Platform
- .getExtensionRegistry();
- IExtensionPoint extensionPoint = extensionRegistry
- .getExtensionPoint("org.eclipse.ui", "actionSets");
- if (extensionPoint != null) {
- IConfigurationElement[] ic=extensionPoint.getConfigurationElements();
- if (ic != null) {
- for (int i = 0; i < ic.length; i++) {
- System.err.println("-----"+i+"-----");
- IConfigurationElement c=ic[i];
- System.err.println(c.getName());
- String[] a=c.getAttributeNames();
- for (int j = 0; j < a.length; j++) {
- System.err.println(" AttributeName "+j+" "+a[j]+"="+c.getAttribute(a[j]));
- }
- IConfigurationElement[] cc=c.getChildren();
- for (int j = 0; j < cc.length; j++) {
- System.err.println(" "+cc[j].getName());
- String[] aa=cc[j].getAttributeNames();
- for (int k = 0; k < aa.length; k++) {
- System.err.println(" AttributeName "+k+" "+aa[k]+"="+cc[j].getAttribute(aa[k]));
- }
- }
- }
- }
- }
- } catch (Exception e) {
- }