diff options
Diffstat (limited to 'sandbox/org.eclipse.papyrus.properties.generation/src/org/eclipse/papyrus/properties/generation/extensionpoint/GeneratorExtensionPoint.java')
-rw-r--r-- | sandbox/org.eclipse.papyrus.properties.generation/src/org/eclipse/papyrus/properties/generation/extensionpoint/GeneratorExtensionPoint.java | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/sandbox/org.eclipse.papyrus.properties.generation/src/org/eclipse/papyrus/properties/generation/extensionpoint/GeneratorExtensionPoint.java b/sandbox/org.eclipse.papyrus.properties.generation/src/org/eclipse/papyrus/properties/generation/extensionpoint/GeneratorExtensionPoint.java deleted file mode 100644 index 7b86ddf6942..00000000000 --- a/sandbox/org.eclipse.papyrus.properties.generation/src/org/eclipse/papyrus/properties/generation/extensionpoint/GeneratorExtensionPoint.java +++ /dev/null @@ -1,48 +0,0 @@ -/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.generation.extensionpoint;
-
-import org.eclipse.core.runtime.IConfigurationElement;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.papyrus.properties.Activator;
-import org.eclipse.papyrus.properties.generation.generators.IGenerator;
-import org.eclipse.papyrus.properties.generation.wizard.CreateContextWizard;
-
-/**
- * Handles the extension point org.eclipse.papyrus.properties.generation.generator
- * Registers the given Generator to the Property view generation wizard
- *
- * @author Camille Letavernier
- */
-public class GeneratorExtensionPoint {
-
- private final String EXTENSION_ID = "org.eclipse.papyrus.properties.generation.generator"; //$NON-NLS-1$
-
- /**
- * Constructor.
- */
- public GeneratorExtensionPoint() {
-
- IConfigurationElement[] config = Platform.getExtensionRegistry().getConfigurationElementsFor(EXTENSION_ID);
-
- for(IConfigurationElement e : config) {
- String generatorClassName = e.getAttribute("generator"); //$NON-NLS-1$
- try {
- Class<? extends IGenerator> generatorClass = Class.forName(generatorClassName).asSubclass(IGenerator.class);
- IGenerator generator = generatorClass.newInstance();
- CreateContextWizard.addGenerator(generator);
- } catch (Exception ex) {
- Activator.log.error("Cannot instantiate the generator : " + generatorClassName, ex); //$NON-NLS-1$
- }
- }
- }
-}
|