Difference: DpHipeViews (7 vs. 8)

Revision 82009-02-05 - JaimeSaiz

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

Creating a View

Line: 36 to 36
 
  • The implementation requires a default, but light-weight constructor. Actual construction of a popup menu, a view menu, or a tool bar or contributions to the main tool bar or main menu (or combinations of them) should be done in the init(ViewPart part) method.
  • In principle only one instance of a view should exist.
  • The ID returned by your implementation must be unique
Deleted:
<
<

 
Line: 60 to 59
  makeActions(); }
Changed:
<
<
// private stuff private ViewPart getPart() { return _part; }
>
>
public ViewPart getPart() { return _part; }
  private void makeActions() { // create tool bars, menus and other stuff } }
Deleted:
<
<

 

Registry

Line: 82 to 77
  "site.view.myview", "resides.in.java.package.MyView", "My View",
Changed:
<
<
"resides/in/java/package/myview.gif" ));
>
>
"resides/in/java/package/myview.gif"))
 

See also the Extension Registry documentation for more details.

Line: 99 to 93
 
Your viewable may want to trigger site events which might be interesting to other views. The ViewPart interface that is passed on through the init method gives you the means of triggering site events:

Changed:
<
<
private void somemethod() {
>
>
private void someMethod() {
  : getPart().getEventHandler().trigger(aSiteEvent) :
Line: 130 to 124
 
Changed:
<
<

Menus and toolbars

>
>

Menus, toolbars and other features

 
Changed:
<
<
TODO
>
>
You can learn about adding actions to your view, and more, following this link.
 

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