1 11 12 package org.eclipse.ui.internal.statushandlers; 13 14 import org.eclipse.core.runtime.IConfigurationElement; 15 import org.eclipse.ui.IPluginContribution; 16 import org.eclipse.ui.internal.registry.IWorkbenchRegistryConstants; 17 18 23 class StatusHandlerProductBindingDescriptor implements 24 IPluginContribution { 25 26 29 private static String ATT_HANDLER_ID = "handlerId"; 31 private String id; 32 33 private String pluginId; 34 35 private String productId; 36 37 private String handlerId; 38 39 42 public StatusHandlerProductBindingDescriptor( 43 IConfigurationElement configElement) { 44 super(); 45 id = configElement.getAttribute(IWorkbenchRegistryConstants.ATT_ID); 46 pluginId = configElement.getContributor().getName(); 47 productId = configElement.getAttribute(IWorkbenchRegistryConstants.ATT_PRODUCTID); 48 handlerId = configElement.getAttribute(ATT_HANDLER_ID); 49 } 50 51 56 public String getLocalId() { 57 return id; 58 } 59 60 65 public String getPluginId() { 66 return pluginId; 67 } 68 69 72 public String getProductId() { 73 return productId; 74 } 75 76 79 public String getHandlerId() { 80 return handlerId; 81 } 82 } 83 | Popular Tags |