}
protected void createSelectionListener() {
final TreeSelectionModel selModel = treePanel.getSelectionModel();
if (selModel instanceof DefaultSelectionModel) {
((DefaultSelectionModel) selModel).addSelectionModelListener(new DefaultSelectionModelListenerAdapter() {
@Override
public void onSelectionChange(final DefaultSelectionModel sm, final TreeNode node) {
notifySelectionListeners(new SelectionEvent(ClassTreePortlet.this));
}
});