1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

215960: Apply fix contributed by Mark Espiritu (VaST Systems)

This commit is contained in:
Andrew Ferguson 2008-02-04 10:30:59 +00:00
parent 1c7064167a
commit fd1c9d4e28

View file

@ -6,7 +6,8 @@
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Bala Torati (Symbian) - Initial API and implementation
* Bala Torati (Symbian) - Initial API and implementation
* Mark Espiritu (VaST Systems) - bug 215960
*******************************************************************************/
package org.eclipse.cdt.core.templateengine;
@ -209,14 +210,14 @@ public class TemplateEngine {
String projectType = null;
String filterPattern = null;
boolean isCategory = false;
Object /*IPagesAfterTemplateSelectionProvider*/ extraPagesProvider = null;
IExtension[] extensions = Platform.getExtensionRegistry().getExtensionPoint(TEMPLATES_EXTENSION_ID).getExtensions();
for(int i=0; i<extensions.length; i++) {
IExtension extension = extensions[i];
IConfigurationElement[] configElements = extension.getConfigurationElements();
pluginId = extension.getNamespaceIdentifier(); // Plug-in id of the extending plug-in.
for(int j=0; j<configElements.length; j++) {
Object /*IPagesAfterTemplateSelectionProvider*/ extraPagesProvider = null;
IConfigurationElement config = configElements[j];
templateId = config.getAttribute(TemplateEngineHelper.ID);
location = config.getAttribute(TemplateEngineHelper.LOCATION);