mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-03 14:25:37 +02:00
Cosmetics.
This commit is contained in:
parent
29c0d80c92
commit
39344a13d2
4 changed files with 10 additions and 17 deletions
|
@ -106,7 +106,7 @@ class THGraph {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// check if edge is already there.
|
// Check if edge is already there.
|
||||||
List<THGraphEdge> out= from.getOutgoing();
|
List<THGraphEdge> out= from.getOutgoing();
|
||||||
for (THGraphEdge edge : out) {
|
for (THGraphEdge edge : out) {
|
||||||
if (edge.getEndNode() == to) {
|
if (edge.getEndNode() == to) {
|
||||||
|
@ -176,8 +176,7 @@ class THGraph {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} else if (binding instanceof ITypedef) {
|
||||||
else if (binding instanceof ITypedef) {
|
|
||||||
ITypedef ct= (ITypedef) binding;
|
ITypedef ct= (ITypedef) binding;
|
||||||
IType type= ct.getType();
|
IType type= ct.getType();
|
||||||
if (type instanceof IBinding) {
|
if (type instanceof IBinding) {
|
||||||
|
@ -257,24 +256,21 @@ class THGraph {
|
||||||
addMemberElements(index, members, memberList);
|
addMemberElements(index, members, memberList);
|
||||||
members= ct.getDeclaredMethods();
|
members= ct.getDeclaredMethods();
|
||||||
addMemberElements(index, members, memberList);
|
addMemberElements(index, members, memberList);
|
||||||
}
|
} else if (binding instanceof ICompositeType) {
|
||||||
else if (binding instanceof ICompositeType) {
|
|
||||||
ICompositeType ct= (ICompositeType) binding;
|
ICompositeType ct= (ICompositeType) binding;
|
||||||
IBinding[] members= ct.getFields();
|
IBinding[] members= ct.getFields();
|
||||||
addMemberElements(index, members, memberList);
|
addMemberElements(index, members, memberList);
|
||||||
}
|
} else if (binding instanceof IEnumeration) {
|
||||||
else if (binding instanceof IEnumeration) {
|
|
||||||
IEnumeration ct= (IEnumeration) binding;
|
IEnumeration ct= (IEnumeration) binding;
|
||||||
IBinding[] members= ct.getEnumerators();
|
IBinding[] members= ct.getEnumerators();
|
||||||
addMemberElements(index, members, memberList);
|
addMemberElements(index, members, memberList);
|
||||||
}
|
}
|
||||||
} catch (DOMException e) {
|
} catch (DOMException e) {
|
||||||
// problem bindings should not be reported to the log.
|
// Problem bindings should not be reported to the log.
|
||||||
}
|
}
|
||||||
if (memberList.isEmpty()) {
|
if (memberList.isEmpty()) {
|
||||||
graphNode.setMembers(NO_MEMBERS);
|
graphNode.setMembers(NO_MEMBERS);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
graphNode.setMembers(memberList.toArray(new ICElement[memberList.size()]));
|
graphNode.setMembers(memberList.toArray(new ICElement[memberList.size()]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Markus Schorn - initial API and implementation
|
* Markus Schorn - initial API and implementation
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.cdt.internal.ui.typehierarchy;
|
package org.eclipse.cdt.internal.ui.typehierarchy;
|
||||||
|
|
||||||
class THGraphEdge {
|
class THGraphEdge {
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Markus Schorn - initial API and implementation
|
* Markus Schorn - initial API and implementation
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.cdt.internal.ui.typehierarchy;
|
package org.eclipse.cdt.internal.ui.typehierarchy;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
|
@ -76,7 +76,6 @@ public class THNode implements IAdaptable {
|
||||||
return fParent;
|
return fParent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public ICElement getElement() {
|
public ICElement getElement() {
|
||||||
return fElement;
|
return fElement;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue