Package org.eclipse.help

Examples of org.eclipse.help.IContext


        if (contextId != null) {
            if (contextId.lastIndexOf(Constants.DOT) == -1) {
                contextId = Constants.DOCUMENTATION_PLUGIN_PREFIX + Constants.DOT + contextId;
            }

            IContext c = HelpSystem.getContext(contextId);
            if (c != null) {
                IHelpResource[] topics = c.getRelatedTopics();

                if (!Utils.isEmpty(topics)) {
                    return topics[0].getHref();
                }
            }
View Full Code Here


      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) {
View Full Code Here

  private void openInfopop(Widget widget) {
    if (item == null || item.getContextId() == null) {
      return;
    }

    IContext context = HelpSystem.getContext(item.getContextId());

    if (context != null) {
      // determine a location in the upper right corner of the widget
      Point point = widget.getDisplay().getCursorLocation();
      point = new Point(point.x + 15, point.y);
View Full Code Here

TOP

Related Classes of org.eclipse.help.IContext

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.