Bug 126658 [CommonNavigator] [DND] Complete definition of DND API
bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/actions/ResourceOpenListener.java
OpenFileAction openFileAction ;
	private CommonNavigator commonNavigator;
	private INavigatorContentService contentService;
	
	public void initialize(CommonNavigator aCommonNavigator, INavigatorContentService aContentService) {
		commonNavigator = aCommonNavigator;
		contentService = aContentService;
		openFileAction = new OpenFileAction(commonNavigator.getSite().getPage());
		
	}
	/* (non-Javadoc)
	 * @see org.eclipse.jface.viewers.IOpenListener#open(org.eclipse.jface.viewers.OpenEvent)
	 */
	public void open(OpenEvent event) {
		ISelection selection = event.getSelection();
		if (selection != null && selection instanceof IStructuredSelection) {
			if (openFileAction != null ) {
				IStructuredSelection structureSelection = (IStructuredSelection) selection;
				Object element = structureSelection.getFirstElement();
		        if (element instanceof IFile) {
		            openFileAction.selectionChanged(structureSelection);
		            openFileAction.run();
		        }
			}
		}
	}
}