Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Newsreader/Tutorials/How to hook your eclipse project newsgroup to salvo

< Newsreader
Revision as of 16:04, 18 August 2011 by Isudana.gmail.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

How to hook your eclipse project newsgroup to salvo

1.Introduction

This tutorial explains how you can hook your eclipse project/product newsgroup to salvo.
By hooking your project newsgroup with Salvo, Salvo will able to automatically figure out and suggests newsgroups to your project/product users where they can post their questions.


2.Procedure

2.1 First add an org.eclipse.ecf.salvo.newsgroupProvider extension to your plug-in.

Salvo-tutorial1-1.png

2.2 Now right click the added extension and add a newsgroup.


Salvo-tutorial1-2.png
Depending on your requirement you may add multiple newsgroups.

2.3 Define the newsgroup name and the description.
Salvo-tutorial1-3.png

2.4 Create a class which provides newsgroup information.
A newsgroup provider must implement the org.eclipse.ecf.salvo.ui.external.provider.INewsgroupProvider interface.
To create a new class which implements the INewsgroupProvider interface, click on the “class” link.
The following dialog will appear when you click on the “class” link.
Salvo-tutorial1-4.png
Set class name and the package and then click finish.
When you click finish, you will see the generated class which implements the INewsgroupProvider interface.

Salvo-tutorial1-5.png


2.5 Define newsgroup information.

In here you have to define the information of your newsgroup.
Please see the org.eclipse.ecf.salvo.ui.external.provider.INewsgroupProvider interface for more information.
Now first part of the process is completed.


2.6 Define when to enable your newsgroup.

Under the enablement section, using eclipse core expressions you can define the conditions that should satisfy to enable your newsgroup.
Following is a sample enablement definition.


Salvo-tutorial1-6.png
Here the newsgroup is enabled when,
org.eclipse.ecf.salvo.application.perspective perspective is active or org.eclipse.ecf.salvo.ui.internal.views.messageView part is active or org.eclipse.ecf.salvo.ui.articlepanel editor is active.
Salvo-tutorial1-7.png


Following is the plugin.xml configuration for the above extension.
Salvo-tutorial1-8.png

Now the extension point definition is completed.


3.Test your extension point

When the user executes the Ask a question wizard, Salvo will automatically suggest your newsgroup to him/her, if the predefined conditions are satisfied at that moment.

Salvo-tutorial1-9.png

Back to the top