1 11 package org.eclipse.core.runtime.model; 12 13 22 public class ExtensionModel extends PluginModelObject { 23 24 private String extensionPoint = null; 26 private String id = null; 27 private ConfigurationElementModel[] elements = null; 28 29 private PluginModel plugin = null; 32 35 public ExtensionModel() { 36 super(); 37 } 38 39 45 public String getExtensionPoint() { 46 return extensionPoint; 47 } 48 49 59 public String getId() { 60 return id; 61 } 62 63 69 public PluginModel getParent() { 70 return plugin; 71 } 72 73 79 public PluginDescriptorModel getParentPluginDescriptor() { 80 return (PluginDescriptorModel) plugin; 81 } 82 83 88 public ConfigurationElementModel[] getSubElements() { 89 return elements; 90 } 91 92 98 public void markReadOnly() { 99 super.markReadOnly(); 100 if (elements != null) 101 for (int i = 0; i < elements.length; i++) 102 elements[i].markReadOnly(); 103 } 104 105 112 public void setExtensionPoint(String value) { 113 assertIsWriteable(); 114 extensionPoint = value; 115 } 116 117 128 public void setId(String value) { 129 assertIsWriteable(); 130 id = value; 131 } 132 133 141 public void setParent(PluginModel value) { 142 assertIsWriteable(); 143 plugin = value; 144 } 145 146 154 public void setParentPluginDescriptor(PluginDescriptorModel value) { 155 assertIsWriteable(); 156 plugin = value; 157 } 158 159 166 public void setSubElements(ConfigurationElementModel[] value) { 167 assertIsWriteable(); 168 elements = value; 169 } 170 } 171 | Popular Tags |