Bug 120918 Usability: Tabs above and below Layout Editor are confusing
In BIRT 2.0 (I'm using M3), the Layout Editor has tabs above and below the editor window to give the developer different views. Top: Normal, Master Page, Source Bottom: Layout, Preview, Script What is not clear initially from the UI is that the bottom choices are only available with the "Normal" top choice. In addition, the "Source" label is not clear -- implication is that this is (programatic) source code. The Usability team should look at this to determine what improvements could be made, but a suggestion would be to flatten this into a top set of tabs only: Report Layout, Master Page, Script, XML Report Design, Preview
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/parts/GraphicalEditorWithFlyoutPalette.java
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.MouseListener;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.ISelectionListener;
import org.eclipse.ui.IWorkbenchPart;
/**
 * This class serves as a quick starting point for clients who are new to GEF.
 * It will create an Editor with a flyout palette. The flyout palette will only
 * be visible when the palette view is not open.
 * <p>
 * <EM>IMPORTANT</EM> This class should only be used as a reference for
 * creating your own EditorPart implementation. This class will not suit
 * everyone's needs, and may change in the future. Clients may copy the
 * implementation.
 * 
 * @author Pratik Shah
 * @since 3.0
 * @version $Revision: 1.24 $ $Date: 2006/01/11 07:10:23 $
 */
public abstract class GraphicalEditorWithFlyoutPalette extends GraphicalEditor implements