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