Bug 191944 Extensible ExpressionProvider
Hi all, I'm developing a custom BIRT RCP Editor along with custom ODA extensions. The framework also exposes several helper methods that need to be used in the report expressions for parameter binding, dynamic text report elements or table column expressions. My intention is now to somehow be able to extend the ExpressionProvider used by BIRT to help the user build an expression. As I have seen in the code the ExpressionProvider used for the different contexts (parameter, dynamic text, etc.) is somewhat hardcoded. Additionally there is a default implementation that will be used when no provider is set. Would it be possible to extend this behaviour so RCP developers can control which IExpressionProvider will be used in a certain context? This could be done for example as extensions to a new extension-point (org.eclipse.birt.*.expressionProvider). These extensions could return an implementation of IExpressionProvider per context that would be used in addition to the entries already provided by the BIRT implementation. Best regards Alex
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ExpressionProvider.java
protected static final String DISPLAY_TEXT_ASSIGNMENT = Messages.getString( "ExpressionProvider.Operators.Assignment" ); 	
	protected static final String DISPLAY_TEXT_COMPARISON = Messages.getString( "ExpressionProvider.Operators.Comparison" ); 
	protected static final String DISPLAY_TEXT_COMPUTATIONAL = Messages.getString( "ExpressionProvider.Operators.Computational" ); 
	protected static final String DISPLAY_TEXT_LOGICAL = Messages.getString( "ExpressionProvider.Operators.Logical" ); 
	protected static final Image IMAGE_OPERATOR = getIconImage( IReportGraphicConstants.ICON_EXPRESSION_OPERATOR );
	protected static final Image IMAGE_COLUMN = getIconImage( IReportGraphicConstants.ICON_DATA_COLUMN );
	protected static final Image IMAGE_METHOD = getIconImage( IReportGraphicConstants.ICON_EXPRESSION_METHOD );
	protected static final Image IMAGE_STATIC_METHOD = getIconImage( IReportGraphicConstants.ICON_EXPRESSION_STATIC_METHOD );
	protected static final Image IMAGE_MEMBER = getIconImage( IReportGraphicConstants.ICON_EXPRESSION_MEMBER );
	protected static final Image IMAGE_STATIC_MEMBER = getIconImage( IReportGraphicConstants.ICON_EXPRESSION_STATIC_MEMBER );
	protected static final Image IMAGE_LEVEL_ATTRI = getIconImage( IReportGraphicConstants.ICON_LEVEL_ATTRI );
	public static final String OPERATORS = Messages.getString( "ExpressionProvider.Category.Operators" ); 
	public static final String COLUMN_BINDINGS = Messages.getString( "ExpressionProvider.Category.ColumnBinding" ); 
	public static final String CURRENT_CUBE = Messages.getString( "ExpressionProvider.Category.DataCubes" );
	
	
	public static final String PARAMETERS = Messages.getString( "ExpressionProvider.Category.Parameters" ); 
	public static final String NATIVE_OBJECTS = Messages.getString( "ExpressionProvider.Category.NativeObjects" );
	public static final String BIRT_OBJECTS = Messages.getString( "ExpressionProvider.Category.BirtObjects" );
	protected static final String ALL = Messages.getString( "ExpressionProvider.Label.All" ); 
	private static final String TOOLTIP_BINDING_PREFIX = Messages.getString( "ExpressionProvider.Tooltip.ColumnBinding" ); 
	protected DesignElementHandle elementHandle;
	private List filterList;
	private boolean includeSelf;
	/**
	 * Create a new expression provider with the current module
	 */
	public ExpressionProvider( )
	{
		this( null );