Bug 172817 NPE is thrown when press F2 in outline[00]
NPE is thrown when press F2 in outline[00] Build number: 2.2.0.v20070206 Steps to reproduce: 1.new a report 2.select the report in outline and press F2 Expected result: can't rename the report in outline Actual result: NPE is thrown Error log: N/A
UI/org.eclipse.birt.report.designer.ui.views/src/org/eclipse/birt/report/designer/internal/ui/views/RenameListener.java
*/
	private TreeItem selectedItem = null;
	private Timer timer;
	private boolean readyToRename;
	public RenameListener( TreeViewer sourceViewer )
	{
		this.sourceViewer = sourceViewer;
	}
	public void apply( )
	{
		sourceViewer.getTree( ).addSelectionListener( this );
		sourceViewer.getTree( ).addKeyListener( this );
		
        sourceViewer.addDoubleClickListener(this);
	}
	public void remove( )
	{
		sourceViewer.getTree( ).removeSelectionListener( this );
		sourceViewer.getTree( ).removeKeyListener( this );
		
        sourceViewer.removeDoubleClickListener(this);
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.swt.events.MouseListener#mouseDoubleClick(org.eclipse.swt.events.MouseEvent)
	 */
	public void mouseDoubleClick( MouseEvent e )
	{
	}