if (!(this.getApplicationTaskPane().getLeftHandNavigationPane() == null)) {
this.getApplicationTaskPane().getLeftHandNavigationPane().addComponentOpenedListener(this);
this.getApplicationTaskPane().getLeftHandNavigationPane().addComponentClosedListener(this);
this.getApplicationTaskPane().getLeftHandNavigationPane().addSectionCompChangeListener(this);
} else {
AIFDesktop desktop = AIFUtility.getActiveDesktop();
if (desktop != null && desktop.getLeftHandNavigationPane() != null) {
desktop.getLeftHandNavigationPane().addComponentOpenedListener(this);
desktop.getLeftHandNavigationPane().addComponentClosedListener(this);
desktop.getLeftHandNavigationPane().addSectionCompChangeListener(this);
}
}
}