Class EclipseRSSViewer
java.lang.Object
org.eclipse.ui.intro.contentproviders.EclipseRSSViewer
- All Implemented Interfaces:
- IIntroContentProvider
A content provider which allows a news reader to be included in dynamic intro content.
 
 
 
 For example:
 
The id for the contentProvider tag must consist of the following attributes. Each of these attributes must be separated by '##'.
| Attribute | Description | 
|---|---|
| url | RSS news feed url | 
| welcome_items | Number of news feed to be displayed | 
| no_news_url | Alternative url for news feed | 
| no_news_text | Text for the alternative url | 
 <contentProvider
 id="url=https://www.eclipse.org/home/eclipsenews.rss##welcome_items=5##no_news_url=http://www.eclipse.org/community/##no_news_text=Welcome to the Eclipse Community Page"
 pluginId="org.eclipse.ui.intro"
 class="org.eclipse.ui.intro.contentproviders.EclipseRSSViewer">
 </contentProvider>
 - Since:
- 3.4
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidcreateContent(String id, PrintWriter out) Create the html content for this newsreadervoidcreateContent(String id, Composite parent, FormToolkit toolkit) Create widgets to display the newsreader when using the SWT presentationvoiddispose()Dispose of the ContentProvider.voidInitialize the content provider
- 
Constructor Details- 
EclipseRSSViewerpublic EclipseRSSViewer()
 
- 
- 
Method Details- 
initInitialize the content provider- Specified by:
- initin interface- IIntroContentProvider
- Parameters:
- site- an object which allows rcontainer reflows to be requested
 
- 
createContentCreate the html content for this newsreader- Specified by:
- createContentin interface- IIntroContentProvider
- Parameters:
- id- the unique identifier of the content element. The same content provider class can be reused for several elements and the id can be used to tell them apart.
- out- a writer where the html will be written
 
- 
createContentCreate widgets to display the newsreader when using the SWT presentation- Specified by:
- createContentin interface- IIntroContentProvider
- Parameters:
- id- the unique identifier of the content element
- parent- the parent composite that should be used when creating SWT widgets
- toolkit- the form toolkit that should be used when creating new widgets
 
- 
disposepublic void dispose()Description copied from interface:IIntroContentProviderDispose of the ContentProvider. This will only be called when the Intro view is closed. In other words, the content provider will not be disposed of until the last possible minute. This gives the implementor the chance to cache content and avoid regenerating content on every page switch.- Specified by:
- disposein interface- IIntroContentProvider
 
 
-