IEditorPart editor = UIUtil.getActiveEditor( true ); action.setEnabled( editor.getEditorInput( ) .getName( ) .endsWith( ".rpttemplate" ) );
action.setEnabled( isEnable());
	public void selectionChanged( IAction action, ISelection selection )	{		IEditorPart editor = UIUtil.getActiveEditor( true );		action.setEnabled( editor.getEditorInput( )				.getName( )				.endsWith( ".rpttemplate" ) ); //$NON-NLS-1$	}