Package org.eclipse.help

Examples of org.eclipse.help.AbstractContextProvider


    int index = contextId.lastIndexOf('.');
    if (index != -1) {
      String pluginId = contextId.substring(0, index);
      Iterator iter = getContextProviders(pluginId).iterator();
      while (iter.hasNext()) {
        AbstractContextProvider provider = (AbstractContextProvider)iter.next();
        try {
          IContext context = provider.getContext(contextId, locale);
          if (context != null) {
            return new Context(context, contextId);
          }
        }
        catch (Throwable t) {
          // log and skip
          String msg = "Error querying context provider (" + provider.getClass().getName() + ") with context Id: " + contextId; //$NON-NLS-1$ //$NON-NLS-2$
          HelpPlugin.logError(msg, t);
        }
      }
    }
    return null;
View Full Code Here


    IConfigurationElement[] elements = registry.getConfigurationElementsFor(EXTENSION_POINT_ID_CONTEXT);
    for (int i=0;i<elements.length;++i) {
      IConfigurationElement elem = elements[i];
      if (elem.getName().equals(ELEMENT_NAME_CONTEXT_PROVIDER)) {
        try {
          AbstractContextProvider provider = (AbstractContextProvider)elem.createExecutableExtension(ATTRIBUTE_NAME_CLASS);
          String[] plugins = provider.getPlugins();
          if (plugins != null) {
            for (int j=0;j<plugins.length;++j) {
              List list = (List)providersByPluginId.get(plugins[j]);
              if (list == null) {
                list = new ArrayList();
View Full Code Here

TOP

Related Classes of org.eclipse.help.AbstractContextProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.