Search in sources :

Example 1 with ADTFloatingToolbar

use of org.eclipse.wst.xsd.ui.internal.adt.design.ADTFloatingToolbar in project webtools.sourceediting by eclipse.

the class ADTMultiPageEditor method createGraphPageComposite.

protected Composite createGraphPageComposite() {
    Composite parent = new Composite(getContainer(), SWT.FLAT);
    parent.setBackground(ColorConstants.white);
    parent.setLayout(new InternalLayout());
    floatingToolbar = new ADTFloatingToolbar(getModel());
    floatingToolbar.createControl(parent);
    floatingToolbar.getControl().setVisible(true);
    EditPartFactory editPartFactory = getEditorModeManager().getCurrentMode().getEditPartFactory();
    floatingToolbar.setEditPartFactory(editPartFactory);
    createViewModeToolbar(parent);
    return parent;
}
Also used : Composite(org.eclipse.swt.widgets.Composite) EditPartFactory(org.eclipse.gef.EditPartFactory) ADTEditPartFactory(org.eclipse.wst.xsd.ui.internal.adt.design.editparts.ADTEditPartFactory) ADTFloatingToolbar(org.eclipse.wst.xsd.ui.internal.adt.design.ADTFloatingToolbar)

Aggregations

EditPartFactory (org.eclipse.gef.EditPartFactory)1 Composite (org.eclipse.swt.widgets.Composite)1 ADTFloatingToolbar (org.eclipse.wst.xsd.ui.internal.adt.design.ADTFloatingToolbar)1 ADTEditPartFactory (org.eclipse.wst.xsd.ui.internal.adt.design.editparts.ADTEditPartFactory)1