3.10. Creating Delegate Methods

Problem

You want to create a delegate method for a field.

Solution

Select the field’s declaration, and then select Source Generate Delegate Methods.

Discussion

When you select Source Generate Delegate Methods, you’ll see a list of methods for which the field will create delegates, as shown in Figure 3-13. Selecting various methods and clicking OK creates delegates for those methods and inserts them in your code.

Creating delegate methods

Figure 3-13. Creating delegate methods

Get Eclipse Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.