Bug 145909 [regression] the layout of new map rule dialog is not well organized
steps to reproduce: - create a report - add a table/list - add a new map rule - notice new map rule dialog expected behavior: - the layout should be user friendly actual behavior: - it was simply not
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/HighlightRuleBuilder.java
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
/**
 * Dialog for adding or editing highlight Rule.
 */
public class HighlightRuleBuilder extends BaseDialog
{
	/**
	 * Usable operators for building highlight rule conditions.
	 */
	public static final String[][] OPERATOR;
	static
	{
		IChoiceSet chset = ChoiceSetFactory.getStructChoiceSet(
				HighlightRule.STRUCTURE_NAME, HighlightRule.OPERATOR_MEMBER );
		IChoice[] chs = chset.getChoices( );
		OPERATOR = new String[chs.length][2];
		for ( int i = 0; i < chs.length; i++ )
		{
			OPERATOR[i][0] = chs[i].getDisplayName( );
			OPERATOR[i][1] = chs[i].getName( );
		}
	}
	/**
	 * Returns the operator value by its display name.