Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Basic steps | ||||||||
Line: 38 to 39 | ||||||||
The aim is that your contribution is automatically picked up by the infrastructure, such that your view is added to the view menu, as shown in the picture on the right. To make this happen, you will have to: | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < | The Viewable interface is a light-weight interface that provides the contents of a View. Your implementation should take the following into account: | |||||||
> > | The Viewable interface is a light-weight interface that provides the contents of a View. Your implementation should take the following into account: | |||||||
| ||||||||
Line: 101 to 102 | ||||||||
Triggering events | ||||||||
Changed: | ||||||||
< < | 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: | |||||||
> > | 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: | |||||||
private void someMethod() { : | ||||||||
Line: 113 to 114 | ||||||||
Receiving events | ||||||||
Changed: | ||||||||
< < | Your viewable may want to listen to site events produced by other views. For that you have to implement the SiteEventListener interface and inform the event handler that you are interested in one or more event types, e.g.: | |||||||
> > | Your viewable may want to listen to site events produced by other views. For that you have to implement the SiteEventListener interface and inform the event handler that you are interested in one or more event types, for instance: | |||||||
public class MyView extends SomeSwingComponent implements Viewable, SiteEventListener { | ||||||||
Line: 168 to 169 | ||||||||
<-- END OF COMMENT BOX CODE --> | ||||||||
Deleted: | ||||||||
< < |
| |||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
|