* a buffer. The size of the buffer is limited by BUFFERED_COMPONENTS.
*/
public void setActivePath(TreePath path) {
this.treeViewer.setSelectedPath(path);
DataModel viewer_model = null;
DataModel active_model = null;
if (path == null) {
active_model = model;
viewer_model = model;
} else {
Object c = path.getLastPathComponent();
Assert.assertion(c instanceof TreeHook, "Navigator node is instance of TreeHook");
// Apply the mode to the command set according to the node selected
active_model = ((TreeHook) c).getDataModel();
viewer_model = active_model;
DataModel parent_model = active_model.getParentDataModel();
while (parent_model != getDataModel() && parent_model.isChildEditor()) {
viewer_model = parent_model;
parent_model = viewer_model.getParentDataModel();
}
}