1 19 20 package org.netbeans.modules.apisupport.beanbrowser; 21 22 import java.util.ArrayList ; 23 import java.util.List ; 24 import org.openide.ErrorManager; 25 26 30 public final class CookieClassList { 31 32 private static final String [] CLASS_NAMES = { 34 "javax.jmi.reflect.RefObject", "org.apache.tools.ant.module.api.AntProjectCookie", "org.apache.tools.ant.module.api.ElementCookie", "org.apache.tools.ant.module.api.IntrospectionCookie", "org.netbeans.api.project.Project", "org.netbeans.api.project.ProjectInformation", "org.netbeans.api.project.Sources", "org.netbeans.modules.xml.core.cookies.CookieManagerCookie", "org.netbeans.modules.xml.tax.cookies.TreeDocumentCookie", "org.netbeans.modules.xml.tax.cookies.TreeEditorCookie", "org.netbeans.spi.java.classpath.ClassPathProvider", "org.netbeans.spi.java.queries.AccessibilityQueryImplementation", "org.netbeans.spi.java.queries.JavadocForBinaryQueryImplementation", "org.netbeans.spi.java.queries.MultipleRootsUnitTestForSourceQueryImplementation", "org.netbeans.spi.java.queries.SourceForBinaryQueryImplementation", "org.netbeans.spi.java.queries.SourceLevelQueryImplementation", "org.netbeans.spi.java.queries.UnitTestForSourceQueryImplementation", "org.netbeans.spi.project.ActionProvider", "org.netbeans.spi.project.AuxiliaryConfiguration", "org.netbeans.spi.project.CacheDirectoryProvider", "org.netbeans.spi.project.SubprojectProvider", "org.netbeans.spi.project.ant.AntArtifactProvider", "org.netbeans.spi.project.support.ant.ProjectXmlSavedHook", "org.netbeans.spi.project.ui.CustomizerProvider", "org.netbeans.spi.project.ui.LogicalViewProvider", "org.netbeans.spi.project.ui.PrivilegedTemplates", "org.netbeans.spi.project.ui.ProjectOpenedHook", "org.netbeans.spi.project.ui.RecommendedTemplates", "org.netbeans.spi.queries.FileBuiltQueryImplementation", "org.netbeans.spi.queries.SharabilityQueryImplementation", "org.openide.cookies.CloseCookie", "org.openide.cookies.EditCookie", "org.openide.cookies.EditorCookie", "org.openide.cookies.EditorCookie$Observable", "org.openide.cookies.InstanceCookie", "org.openide.cookies.InstanceCookie$Of", "org.openide.cookies.LineCookie", "org.openide.cookies.OpenCookie", "org.openide.cookies.PrintCookie", "org.openide.cookies.SaveCookie", "org.openide.cookies.SourceCookie", "org.openide.cookies.SourceCookie$Editor", "org.openide.cookies.ViewCookie", "org.openide.loaders.DataFolder", "org.openide.loaders.DataObject", "org.openide.loaders.XMLDataObject$Processor", "org.openide.nodes.Index", "org.openide.src.ClassElement", "org.openide.src.ConstructorElement", "org.openide.src.FieldElement", "org.openide.src.InitializerElement", "org.openide.src.MethodElement", "org.openide.src.SourceElement", "org.openidex.search.SearchInfo", }; 89 90 private static Class [] clazzes; 91 92 public static synchronized Class [] getCookieClasses() { 93 if (clazzes == null) { 94 List _clazzes = new ArrayList (); 95 ClassLoader l = Thread.currentThread().getContextClassLoader(); 96 for (int i = 0; i < CLASS_NAMES.length; i++) { 97 try { 98 _clazzes.add(Class.forName(CLASS_NAMES[i], true, l)); 99 } catch (ClassNotFoundException e) { 100 } 102 } 103 clazzes = (Class []) _clazzes.toArray(new Class [_clazzes.size()]); 104 } 105 return clazzes; 106 } 107 108 } 109 | Popular Tags |