-
Notifications
You must be signed in to change notification settings - Fork 69
/
ref-dialog-override-method.htm
150 lines (148 loc) · 4.22 KB
/
ref-dialog-override-method.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2008. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>
Override Methods
</title>
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
</head>
<body>
<h1>
Override Methods
</h1>
<p>
This dialog lets you define methods to override.
</p>
<p>
Use <strong>Override/Implement Methods</strong> from the <a href="ref-menu-source.htm">Source menu</a> or the context menu on a selected type or on a text selection in a type.
</p>
<p>
The dialog presents all methods that can be overridden from supertypes or implemented from interfaces. Abstract methods or unimplemented methods are selected by default.
</p>
<p>
The tree view groups methods by the type declaring the method. If more than one type in the hierarchy declare the same method, the method is only shown once, grouped to the
first type in the list of supertypes that implements or defines this method.
</p>
<p>
The flat view shows only methods, sorted alphabetically.
</p>
<p>
When pressing <strong>OK</strong>, method stubs for all selected methods are created.
</p>
<table border="1" cellspacing="0" cellpadding="5" width="100%" summary="Override methods settings">
<tr>
<th>
<p>
Option
</p>
</th>
<th>
<p>
Description
</p>
</th>
<th>
<p>
Default
</p>
</th>
</tr>
<tr>
<td valign="top">
<p>
Select methods to override or implement
</p>
</td>
<td valign="top">
Select methods to override or implement
</td>
<td valign="top">
Abstract methods from superclasses and unimplemented methods from interfaces are selected
</td>
</tr>
<tr>
<td valign="top">
<p>
Group methods by types
</p>
</td>
<td valign="top">
<p>
Shows methods grouped by a list of the super types in which they are declared.
</p>
</td>
<td valign="top">
<p>
selected
</p>
</td>
</tr>
<tr>
<td valign="top">
<p>
Select All
</p>
</td>
<td valign="top">
<p>
Select all methods
</p>
</td>
<td valign="top">
<p>n/a</p>
</td>
</tr>
<tr>
<td valign="top">
<p>
Deselect All
</p>
</td>
<td valign="top">
<p>
Deselect all methods
</p>
</td>
<td valign="top">
<p>n/a</p>
</td>
</tr>
<tr>
<td valign="top">
<p>
Insertion point
</p>
</td>
<td valign="top">
<p>
Defines where in the type body the new methods are inserted
</p>
</td>
<td valign="top">
<p>Last member or location of the cursor position if invoked from editor</p>
</td>
</tr>
<tr>
<td valign="top">
<p>
Generate method comments
</p>
</td>
<td valign="top">
<p>
Controls whether Javadoc comments are added to the created methods.
The comment templates are defined on the <a href="preferences/java/codestyle/ref-preferences-code-templates.htm">Code Templates</a> preference page.
</p>
</td>
<td valign="top">
<p>off</p>
</td>
</tr>
</table>
<h3 class="related">Related references</h3>
<a href="../reference/ref-menu-source.htm">Source actions</a>
</body>
</html>