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

Difference between revisions of "Corona HowTo: Add a new page to Project Container View"

(obsolete)
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''UNDER CONSTRUCTION'''
 
  
The [[Corona Project Container View|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:
 
# Open plugin.xml editor.
 
# Switch to ''Dependencies'' tab.
 
# Add ''org.eclipse.corona.container.project.ui'' to ''required plug-ins''.
 
# Switch to ''Extensions'' tab.
 
# 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:
 
# Right-click ''org.eclipse.corona.container.project.ui.page'' in ''All Extensions'' list.
 
# From the pop-up menu select ''New -> projectPage''.
 

Latest revision as of 10:49, 27 February 2008

Back to the top