Bug 171501 When click the data set or data source, the focus is lost[0001]
Description: When click the data set or data source, the focus is lost[0001] Build number: 2.2.0.v20070124-0630 Steps to reproduce: 1, New a Sample datasource and data set 2, Click the data source or data set in Data Explorer 3, Press 'Delete' button on keyboard Expected result: The datasource or data set can be deleted successfully Actual result: The operation take no effect, and the datasource is gray. When choose the datasource again, the datasource is able to delete Error log:
UI/org.eclipse.birt.report.designer.ui.views/src/org/eclipse/birt/report/designer/ui/views/data/DataView.java
}
	/**
	 * Returns whether the given part should be added to this view.
	 * 
	 * @param part
	 *            the input part
	 * @return <code>true</code> if the part is relevant, and
	 *         <code>false</code> otherwise
	 */
	protected boolean isImportant( IWorkbenchPart part )
	{
		return ( part instanceof IEditorPart );
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ui.part.PageBookView#getAdapter(java.lang.Class)
	 */
	public Object getAdapter( Class key )
	{
		if ( key == IContributedContentsView.class )
			return new IContributedContentsView( ) {
				public IWorkbenchPart getContributingPart( )
				{
					return getCurrentContributingPart( );
				}
			};
		return super.getAdapter( key );
	}
}