congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
IToc.getLabel
Code IndexAdd Tabnine to your IDE (free)

How to use
getLabel
method
in
org.eclipse.help.IToc

Best Java code snippets using org.eclipse.help.IToc.getLabel (Showing top 5 results out of 315)

origin: org.eclipse.platform/org.eclipse.help

private Map<String, String> createNameIdMap(Map<String, Object> categorized) {
  Map<String, String> map = new HashMap<>();
  for (Iterator<String> iter = categorized.keySet().iterator(); iter.hasNext();) {
    String key = iter.next();
    Object value = categorized.get(key);
    ITocContribution toc;
    if (value instanceof TocCategory) {
      TocCategory category = (TocCategory)value;
      toc = category.get(0);
    } else {
      toc = (ITocContribution)value;
    }
    map.put(key, toc.getToc().getLabel());
  }
  return map;
}
origin: org.eclipse/org.eclipse.help.ui

private String getTopicCategory(String href, String locale) {
  IToc[] tocs = HelpPlugin.getTocManager().getTocs(locale);
  for (int i = 0; i < tocs.length; i++) {
    ITopic topic = tocs[i].getTopic(href);
    if (topic != null)
      return tocs[i].getLabel();
  }
  return null;
}
origin: org.eclipse.platform/org.eclipse.help

} else {
  String tocLabel = toc.getToc().getLabel();
  boolean done = false;
  for (int next = 0; next < category.size() && !done; next++ ) {
    String nextName = category.get(next).getToc().getLabel();
    if (tocLabel.compareToIgnoreCase(nextName) < 0) {
      done = true;
origin: org.eclipse/org.eclipse.help.ui

if (hit.getToc()!=null && !Platform.getWS().equals(Platform.WS_GTK)) {
  buff.append(" alt=\""); //$NON-NLS-1$
  buff.append(parent.escapeSpecialChars(hit.getToc().getLabel()));
  buff.append("\""); //$NON-NLS-1$
origin: org.eclipse.platform/org.eclipse.help

public Toc(IToc src) {
  super(NAME, src);
  setHref(src.getHref());
  setLabel(src.getLabel());
  ITopic topic = src.getTopic(null);
  if (topic != null) {
    setTopic(topic.getHref());
  }
  appendChildren(src.getChildren());
}
org.eclipse.helpITocgetLabel

Popular methods of IToc

  • getHref
  • getTopic
    Returns a topic with the specified href defined by this TOC. If the TOC contains multiple topics wi
  • getChildren
  • getTopics
    Obtains the topics directly contained by a toc.

Popular in Java

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onRequestPermissionsResult (Fragment)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now