Difference: DpHipePerspectives (6 vs. 7)

Revision 72008-02-08 - JorgoBakker

Line: 1 to 1
 
META TOPICPARENT name="DpHipe"

Creating a Perspective

Line: 12 to 12
 
Added:
>
>
<--
   Some short-cuts  

-->
 

Basic Steps

HIPE Perspective menu
The aim is that your contribution is automatically picked up by the infrastructure, such that your perspective is added to the perspective menu, as shown in the picture on the right.

To make this happen, you will have to:

Changed:
<
<
  • Implement the herschel.ia.kernel.parts.Perspective interface.
  • Register your implementation to the herschel.ia.kernel.ExtensionRegistry in the __init__.py
>
>
  • Implement the Perspective interface.
  • Register your implementation to the Extension Registry in the init.py.
 
Changed:
<
<
For you convenience an abstract implementation exists (herschel.ia.kernel.parts.AbstractPerspective); it allows you to concentrate on implementing one method only:
>
>
For you convenience an abstract implementation exists (AbstractPerspective); it allows you to concentrate on implementing one method only:
 
    public abstract class AbstractPerspective implements Perspective {

Line: 36 to 60
 

Construction items

Changed:
<
<
SiteParts are the building blocks of a perspective. We distinct the following flavors:
>
>
SiteParts are the building blocks of a perspective. We distinct the following flavors:
 
  • ViewPart - normal views
  • EditorArea - the editor area
  • SplitPart - two windows with a movable split
  • TabPart - n windows organized into tabs
Changed:
<
<
Access to the views, editor area or creation of the tab and split layout containers are all through the SitePartBuilder:
>
>
Access to the views, editor area or creation of the tab and split layout containers are all through the SitePartBuilder:
 
public interface SitePartBuilder {
    ViewPartManager getViewManager();    

 
This site is powered by the TWiki collaboration platform Powered by Perl