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

Corona HowTo: Add a new page to Project Container View

UNDER CONSTRUCTION

The Project Container View (PCV) can be easily extended to contain new pages. Even the default pages are added by extension mechanism.

First thing to note is that there are two kinds of pages:

  • per project container
  • per repository

The per project container pages displays information that are not connected with any repository, but rather with project container itself. This pages are displayed for every project container, no matter what it contains. The per repository pages in contrast show information defined in a repository. This kind of page is displayed only if the page matches a repository defined in the project container.

The later sections shows step-by-step how to add your own PCV page.

Define extension

Firstly you need to provide an extension to Corona PCV page extension point. This step is required no matter if you provide a per project container or per repository page. To achieve it, do fallowing:

  1. Open plugin.xml editor.
  2. Switch to Dependencies tab.
  3. Add org.eclipse.corona.container.project.ui to required plug-ins.
  4. Switch to Extensions tab.
  5. Click the Add button and select org.eclipse.corona.container.project.ui.page and click Finish

Save changes to the plugin.xml. This point will be taken as start point for both adding per project container and per repository page.

Per project container page

You have plugin.xml editor opened on Extensions tab. Now, we need to create the page. So do fallowing:

  1. Right-click org.eclipse.corona.container.project.ui.page in All Extensions list.
  2. From the pop-up menu select New -> projectPage.

Back to the top