Skip to content

Commit 46a28a2

Browse files
authored
Update Eclipse4_RCP_Contexts.md
1 parent 458182a commit 46a28a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/Eclipse4_RCP_Contexts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,13 @@ There are many active branches in a context tree, but there is only ever a singl
7777
A node can be made active in two ways.
7878
Calling _#activate()_ makes the receiver the active child of its parent node, but does not otherwise disturb the rest of the tree.
7979
Calling _#activateBranch()_ on the other hand effectively the same as:
80+
```java
8081

8182
void activateBranch() {
8283
activate();
8384
if(getParent() != null) getParent().activateBranch();
8485
}
86+
```
8587

8688
It makes the receiver the active child of its parent, and then recursively calls _#activateBranch()_ on its parent.
8789

0 commit comments

Comments
 (0)