Examples of IHelpResource


Examples of org.eclipse.help.IHelpResource

    if (BaseHelpSystem.getMode() != BaseHelpSystem.MODE_INFOCENTER) {
      BookmarkManager manager = BaseHelpSystem.getBookmarkManager();
      IHelpResource [] bookmarks = manager.getBookmarks();
      Topic [] topics = new Topic[bookmarks.length];
      for (int i=0; i<bookmarks.length; i++) {
        IHelpResource bookmark = bookmarks[i];
        topics[i] = new Topic(bookmark.getLabel(), bookmark.getHref());
      }
      return topics;
    }
    return new Topic[0];
  }
View Full Code Here

Examples of org.eclipse.help.IHelpResource

                ElementList<ISapphireDocumentationTopicDef> topics = def.getTopics();
                final int length = topics.size();
                this.topics = new IHelpResource[length];
                for( int i = 0, n = length; i < n; i++ ) {
                    final ISapphireDocumentationTopicDef topic = topics.get(i);
                    this.topics[i] = new IHelpResource() {
                        public String getHref() {
                            return topic.getHref().text();
                        }
       
                        public String getLabel() {
View Full Code Here

Examples of org.eclipse.help.IHelpResource

       
        this.topics = new ArrayList<IHelpResource>( topics.size() );
       
        for( final DocumentationService.Topic topic : topics )
        {
            final IHelpResource hres = new IHelpResource()
            {
                public String getLabel()
                {
                    return topic.label();
                }
View Full Code Here

Examples of org.eclipse.help.IHelpResource

          "Could not find context: " + contextName);
      return false;
    }
    IHelpResource[] relatedTopics = context.getRelatedTopics();
    if (relatedTopics != null && relatedTopics.length > 0) {
      IHelpResource resource = relatedTopics[0];
      if (resource != null) {
        String helpUrl = resource.getHref();
        IWorkbenchHelpSystem helpSystem = PlatformUI.getWorkbench()
            .getHelpSystem();
        URL url = helpSystem.resolve(helpUrl, true);
        return browser.setUrl(url.toExternalForm());
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.