Révision 776
| tmp/org.txm.chartsengine.core/src/org/txm/chartsengine/core/ChartsEngine.java (revision 776) | ||
|---|---|---|
| 8 | 8 |
|
| 9 | 9 |
import org.eclipse.core.runtime.CoreException; |
| 10 | 10 |
import org.eclipse.core.runtime.IConfigurationElement; |
| 11 |
import org.eclipse.core.runtime.IExtension; |
|
| 12 |
import org.eclipse.core.runtime.IExtensionPoint; |
|
| 11 | 13 |
import org.eclipse.core.runtime.Platform; |
| 12 | 14 |
import org.eclipse.core.runtime.RegistryFactory; |
| 13 | 15 |
import org.txm.chartsengine.core.messages.ChartsEngineCoreMessages; |
| ... | ... | |
| 229 | 231 |
*/ |
| 230 | 232 |
public static void createChartsEngines() {
|
| 231 | 233 |
|
| 232 |
Log.info("Looking for charts engines with extension id " + ChartsEngine.extensionPointId + ".");
|
|
| 234 |
Log.info("Looking for charts engines contributions with extension point id " + ChartsEngine.extensionPointId + ".");
|
|
| 233 | 235 |
|
| 234 | 236 |
ChartsEngine.chartsEngines = new ArrayList<ChartsEngine>(); |
| 235 | 237 |
ChartsEngine.currentChartsEngineIndex = 0; |
| 238 |
|
|
| 239 |
// FIXME: Debug: dump all installed extensions for each extension point id starting with "org.txm" |
|
| 240 |
IExtensionPoint[] points = RegistryFactory.getRegistry().getExtensionPoints(); |
|
| 241 |
for (int i = 0; i < points.length; i++) {
|
|
| 242 |
if(points[i].getUniqueIdentifier().startsWith("org.txm")) {
|
|
| 243 |
System.out.println("*********************ChartsEngine.createChartsEngines(): point id = " + points[i].getUniqueIdentifier());
|
|
| 244 |
IExtension[] extensions = points[i].getExtensions(); |
|
| 245 |
for (int j = 0; j < extensions.length; j++) {
|
|
| 246 |
System.out.println("----------------ChartsEngine.createChartsEngines(): " + extensions[j].getExtensionPointUniqueIdentifier());
|
|
| 247 |
System.out.println("ChartsEngine.createChartsEngines(): " + extensions[j].getLabel());
|
|
| 248 |
System.out.println("ChartsEngine.createChartsEngines(): " + extensions[j].getContributor().getName());
|
|
| 249 |
} |
|
| 250 |
} |
|
| 251 |
} |
|
| 236 | 252 |
|
| 237 | 253 |
IConfigurationElement[] contributions = RegistryFactory.getRegistry().getConfigurationElementsFor(ChartsEngine.extensionPointId); |
| 238 | 254 |
|
Formats disponibles : Unified diff