1 11 package org.eclipse.pde.internal.ui.wizards.tools; 12 13 import java.util.HashMap ; 14 15 public class ExtensionPointMappings { 16 17 private static HashMap fMap = new HashMap (); 18 19 private static void initialize() { 20 fMap.put("org.eclipse.ui.markerImageProvider", "org.eclipse.ui.ide.markerImageProvider"); fMap.put("org.eclipse.ui.markerHelp", "org.eclipse.ui.ide.markerHelp"); fMap.put("org.eclipse.ui.markerImageProviders", "org.eclipse.ui.ide.markerImageProviders"); fMap.put("org.eclipse.ui.markerResolution", "org.eclipse.ui.ide.markerResolution"); fMap.put("org.eclipse.ui.projectNatureImages", "org.eclipse.ui.ide.projectNatureImages"); fMap.put("org.eclipse.ui.resourceFilters", "org.eclipse.ui.ide.resourceFilters"); fMap.put("org.eclipse.ui.markerUpdaters", "org.eclipse.ui.editors.markerUpdaters"); fMap.put("org.eclipse.ui.documentProviders", "org.eclipse.ui.editors.documentProviders"); fMap.put("org.eclipse.ui.workbench.texteditor.markerAnnotationSpecification", "org.eclipse.ui.editors.markerAnnotationSpecification"); fMap.put("org.eclipse.help.browser", "org.eclipse.help.base.browser"); fMap.put("org.eclipse.help.luceneAnalyzer", "org.eclipse.help.base.luceneAnalyzer"); fMap.put("org.eclipse.help.webapp", "org.eclipse.help.base.webapp"); fMap.put("org.eclipse.help.support", "org.eclipse.ui.helpSupport"); } 34 35 public static boolean isDeprecated(String id) { 36 if (fMap.isEmpty()) 37 initialize(); 38 return fMap.containsKey(id); 39 } 40 41 public static boolean hasMovedFromHelpToBase(String key) { 42 return key.equals("org.eclipse.help.browser") || key.equals("org.eclipse.help.luceneAnalyzer") || key.equals("org.eclipse.help.webapp"); } 46 47 public static boolean hasMovedFromHelpToUI(String key) { 48 return key.equals("org.eclipse.help.support"); } 50 51 public static String getNewId(String oldId) { 52 if (fMap.isEmpty()) 53 initialize(); 54 return fMap.containsKey(oldId) ? fMap.get(oldId).toString() : null; 55 } 56 57 } 58 | Popular Tags |