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
/*******************************************************************************
 * Copyright (c) 2004 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/
package org.eclipse.birt.report.designer.ui.dialogs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import org.eclipse.birt.report.designer.core.model.SessionHandleAdapter;
import org.eclipse.birt.report.designer.core.model.views.data.DataSetItemModel;
import org.eclipse.birt.report.designer.data.ui.aggregation.AggregationUtil;
import org.eclipse.birt.report.designer.internal.ui.dialogs.ExpressionFilter;
import org.eclipse.birt.report.designer.nls.Messages;
import org.eclipse.birt.report.designer.ui.IReportGraphicConstants;