You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable callees based on implementors search for JDT.UI by letting the
configurability to JDT.LS.
This fix also improve the callee hierarchy by adding support for showing
multiple implementations and expand on those. Also this fix add support
for triggering call hierarchies on method declarations on interface
methods and abstract methods.
Change-Id: I5eb1a309fdce1d93ff5486fce6bad046d5d091c1
Signed-off-by: Gayan Perera <[email protected]>
Reviewed-on: https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/189117
Tested-by: JDT Bot <[email protected]>
Tested-by: Jeff Johnston <[email protected]>
Reviewed-by: Jeff Johnston <[email protected]>
Copy file name to clipboardExpand all lines: org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/callhierarchy/CallSearchResultCollector.java
+7-5
Original file line number
Diff line number
Diff line change
@@ -43,21 +43,23 @@ public Map<String, MethodCall> getCallers() {
Copy file name to clipboardExpand all lines: org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/callhierarchy/CalleeAnalyzerVisitor.java
Copy file name to clipboardExpand all lines: org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/callhierarchy/CalleeMethodWrapper.java
Copy file name to clipboardExpand all lines: org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/callhierarchy/Implementors.java
Copy file name to clipboardExpand all lines: org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/callhierarchy/MethodCall.java
+25-1
Original file line number
Diff line number
Diff line change
@@ -23,14 +23,27 @@
23
23
publicclassMethodCall {
24
24
privateIMemberfMember;
25
25
privateList<CallLocation> fCallLocations;
26
+
privatebooleanpotential;
26
27
27
28
/**
28
29
* @param enclosingElement
29
30
*/
30
31
publicMethodCall(IMemberenclosingElement) {
31
-
this.fMember = enclosingElement;
32
+
this(enclosingElement, false);
32
33
}
33
34
35
+
/**
36
+
* @param enclosingElement enclosing member of this call object
37
+
* @param potential indicate whether this call object is a potential item in the hierarchy. A
38
+
* item is considered as potential when there is no direct reference, like methods on
39
+
* a implementation class which are referred through the interface in actual code.
0 commit comments