code: private ITextEditor getEditor(IWorkbenchPart part)
  	{
  		if (part instanceof ITextEditor)
  		{
  			ITextEditor editorPart = (ITextEditor) part;
  			IResource resource = (IResource) editorPart.getEditorInput().getAdapter(IResource.class);
  			if (resource != null && resource instanceof IFile)
  			{
  				return editorPart;
  				// IFile file = (IFile) resource;
  				// try
  				// {
  				// String contentTypeId = file.getContentDescription().getContentType().getId();
  				// if (SourceViewerEditorManager.getInstance().getContentTypeIds().contains(contentTypeId))
  				// {
  				// return editorPart;
  				// }
  				// } catch (CoreException e)
  				// {
  				// // TODO Auto-generated catch block
  				// e.printStackTrace();
  				// }
  			}
  		}
  		return null;
  	}
docs: Returns the editor being used to edit a PDA file, associated with the given part, or <code>null</code> if none.
  
  @param part
  workbench part
  @return the editor being used to edit a PDA file, associated with the given part, or <code>null</code> if none