Menu

Commit [r2904]  Maximize  Restore  History

Removed some depricated API

hotzst 2010-01-14

changed /trunk/ch.sahits.codegen.java/src/ch/sahits/codegen/java/extensions/JavaGenerator.java
changed /trunk/ch.sahits.codegen.ui/src/ch/sahits/codegen/ui/internal/wizards/JavaClassGenerationDefinitionPage.java
changed /trunk/ch.sahits.codegen.ui/src/ch/sahits/codegen/ui/internal/wizards/JavaCodegenWizard.java
/trunk/ch.sahits.codegen.java/src/ch/sahits/codegen/java/extensions/JavaGenerator.java Diff Switch to side-by-side view
--- a/trunk/ch.sahits.codegen.java/src/ch/sahits/codegen/java/extensions/JavaGenerator.java
+++ b/trunk/ch.sahits.codegen.java/src/ch/sahits/codegen/java/extensions/JavaGenerator.java
@@ -111,34 +111,6 @@
 		return null;
 	}
 	/**
-	 * Retrieve a list of all generators registered as extension
-	 * points
-	 * @return	Array of the class names
-	 * @deprecated Use the method {@link #getGenerator4DisplaySelection()} instead. This method  will be removed in 3.0
-	 */
-	@Deprecated
-	public static String[] getGenerators(){
-		Vector<String> gens = new Vector<String>();
-		IExtensionRegistry reg = Platform.getExtensionRegistry();
-		IConfigurationElement[] extensions = reg
-				.getConfigurationElementsFor(EXTENSION_POINT);
-		for (int i = 0; i < extensions.length; i++) {
-			IConfigurationElement element = extensions[i];
-			try {
-				IBaseGenerator gen = (IBaseGenerator) element.createExecutableExtension(ATTR_GENERATOR_CLASS);
-					String className = gen.getClass().getName();
-					if (!gens.contains(className)){
-						gens.add(className);
-					}
-			} catch (CoreException e) {
-				logger.logWarning(e);
-			}
-		}
-		String[] result = new String[gens.size()];
-		gens.copyInto(result);
-		return result;
-	}
-	/**
 	 * This methods retrieves the map of generates in the form <bundle@generator,display name>.
 	 * If the generator is a JET it is the location of the file else the class name.
 	 * Each display name is unique. Should two generators have the same display name
@@ -193,27 +165,5 @@
 		}
 		return null;
 	}
-	/**
-	 * Get the plugin id of the plugin that holds the template
-	 * @param generatorClass name of the template to be looked up in the
-	 * contributing extension points
-	 * @return plugin id or null
-	 * @deprecated with the use of {@link JavaGenerator#getGenerator4DisplaySelection()} this method is obsolete. This method will be removed with 3.0
-	 */
-	@Deprecated
-	public static String getPluginIdOfContibutingPlugin(String generatorClass){
-		IExtensionRegistry reg = Platform.getExtensionRegistry();
-		IConfigurationElement[] extensions = reg
-				.getConfigurationElementsFor(EXTENSION_POINT);
-		for (int i = 0; i < extensions.length; i++) {
-			String name = extensions[i].getAttribute(ATTR_GENERATOR_CLASS);
-			if (generatorClass.equals(name)){
-				String pluginID = extensions[i].getContributor().getName();
-				return pluginID;
-			}
-		}
-		return null;
-
-	}
 
 }
/trunk/ch.sahits.codegen.ui/src/ch/sahits/codegen/ui/internal/wizards/JavaClassGenerationDefinitionPage.java Diff Switch to side-by-side view
Loading...
/trunk/ch.sahits.codegen.ui/src/ch/sahits/codegen/ui/internal/wizards/JavaCodegenWizard.java Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.