policyUseTokenCheck.setSelected(currentPolicy.isUseToken());
}
private void fillTree() {
PersonalTreeNode root = new PersonalTreeNode("root", true);
DefaultTreeModel tm = new DefaultTreeModel(root);
PolicyModel p1 = currentPolicy;
boolean parentexists = true;
while (parentexists) {
parentexists = false;
for (PolicyModel p2 : currentPolicies) {
if (p2.getFallback() == p1) {
p1 = p2;
parentexists = true;
}
}
}
PersonalTreeNode tn1 = null;
if (p1 == currentPolicy) {
tn1 = addNode(root, p1, true, tm);
} else {
tn1 = addNode(root, p1, false, tm);
}
PersonalTreeNode parent = tn1;
PolicyModel p2 = null;
PolicyModel fb = p1.getFallback();
if (fb != null) {
while (fb != null) {
for (PolicyModel temp : currentPolicies) {
if (temp == fb) {
p2 = temp;
}
}
PersonalTreeNode tn = null;
if (p2 == currentPolicy) {
tn = addNode(parent, p2, true, tm);
} else {
tn = addNode(parent, p2, false, tm);
}