Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse Platform
Release 3.5
Interface IContext2

All Superinterfaces:
All Known Subinterfaces:

public interface IContext2
extends IContext

Extends IContext to provide support for styled text and topic categorization.


Method Summary
  String getCategory ( IHelpResource topic)
          Returns the category of the provided topic.
  String getStyledText ()
          Returns the text description for this context with bold markers.
  String getTitle ()
          Returns the optional title for this context.
Methods inherited from interface IContext
getRelatedTopics, getText

Method Detail


String getTitle()
Returns the optional title for this context. If the title is specified, it will be used for the presentation of this context. Otherwise, a default title will be used.

the title to use for this context or null to use the default title.


String getStyledText()
Returns the text description for this context with bold markers. The markers are used to allow the UI to distinguish between bold markup and bold tags that are intended to remain part of the original text.

String with <@#$b>and to mark bold range (as IContext.getText() used to in 2.x)


String getCategory(
IHelpResource topic)
Returns the category of the provided topic. The category will be used in the UI to render all the topics that belong to the same category grouped together. The category string is expected to be NL-ready i.e. presentable in all NL locales.

topic - the topic to be categorized
the presentable name of the category that the topic belongs to, or null if the topic belongs to the default category.

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire