if ( IReportElementConstants.AUTOTEXT_PAGE.equalsIgnoreCase( type ) ) { text = AUTOTEXT_LABEL_PAGE + "<value-of>pageNumber</value-of>"; textItemHandle.setContentType( DesignChoiceConstants.TEXT_CONTENT_TYPE_HTML );  } else if ( IReportElementConstants.AUTOTEXT_DATE.equalsIgnoreCase( type ) )
if ( IReportElementConstants.AUTOTEXT_DATE.equalsIgnoreCase( type ) )
		public boolean preHandleMouseUp( )		{			String type = (String) getRequest( ).getNewObjectType( );			String text = null;			ModuleHandle reportHandle = SessionHandleAdapter.getInstance( )					.getReportDesignHandle( );			// TextItemHandle textItemHandle = SessionHandleAdapter.getInstance(			// )			// .getReportDesignHandle( )			// .getElementFactory( )			// .newTextItem( null );			TextItemHandle textItemHandle = DesignElementFactory.getInstance( )					.newTextItem( null );			try			{				if ( IReportElementConstants.AUTOTEXT_PAGE.equalsIgnoreCase( type ) )				{					text = AUTOTEXT_LABEL_PAGE							+ "<value-of>pageNumber</value-of>"; //$NON-NLS-1$					textItemHandle.setContentType( DesignChoiceConstants.TEXT_CONTENT_TYPE_HTML );				}				else if ( IReportElementConstants.AUTOTEXT_DATE.equalsIgnoreCase( type ) )				{					text = "<value-of>new Date()</value-of>"; //$NON-NLS-1$					textItemHandle.setContentType( DesignChoiceConstants.TEXT_CONTENT_TYPE_HTML );				}				else if ( IReportElementConstants.AUTOTEXT_CREATEDON.equalsIgnoreCase( type ) )				{					text = AUTOTEXT_LABEL_CREATE_ON							+ "<value-of>new Date()</value-of>"; //$NON-NLS-1$					textItemHandle.setContentType( DesignChoiceConstants.TEXT_CONTENT_TYPE_HTML );				}				else if ( IReportElementConstants.AUTOTEXT_CREATEDBY.equalsIgnoreCase( type ) )				{					text = AUTOTEXT_LABEL_CREATE_BY;					String author = reportHandle.getAuthor( );					if ( author != null )					{						text += author;					}					else					{						String pluginVersion = (String) ReportPlugin.getDefault( )								.getBundle( )								.getHeaders( )								.get( org.osgi.framework.Constants.BUNDLE_VERSION );						text += DEFAULT_AUTHOR + " " //$NON-NLS-1$								+ pluginVersion;					}				}				else if ( IReportElementConstants.AUTOTEXT_FILENAME.equalsIgnoreCase( type ) )				{					text = AUTOTEXT_LABEL_FILENAME + reportHandle.getFileName( );				}				else if ( IReportElementConstants.AUTOTEXT_LASTPRINTED.equalsIgnoreCase( type ) )				{					text = AUTOTEXT_LABEL_LAST_PRINTED							+ "<value-of>new Date()</value-of>"; //$NON-NLS-1$					textItemHandle.setContentType( DesignChoiceConstants.TEXT_CONTENT_TYPE_HTML );				}				else if ( IReportElementConstants.AUTOTEXT_PAGEXOFY.equalsIgnoreCase( type ) )				{					text = AUTOTEXT_LABEL_PAGE_X_OF_Y;				}				else if ( !IReportElementConstants.REPORT_ELEMENT_TEXT.equalsIgnoreCase( type ) )				{					return false;				}				if ( text != null )				{					textItemHandle.setContent( text );				}			}			catch ( SemanticException e )			{				ExceptionHandler.handle( e );			}			setModel( textItemHandle );			return super.preHandleMouseUp( );		} /*