target = new StructuredSelection(cdf);
}
//select and reveal the cdf in the navigator
// CommonViewer viewer = toolNavigator.getCommonViewer();
// viewer.expandToLevel(target, 1);
toolNavigator.selectReveal(target);
if (cdf!=null){
//now open it in the cdf editor
IEditorInput editorInput = new FileEditorInput(cdf);
//invoke the editor
page.openEditor(editorInput, ClassEditor.ID);