Example usage for org.eclipse.jface.action MenuManager fill

List of usage examples for org.eclipse.jface.action MenuManager fill

Introduction

In this page you can find the example usage for org.eclipse.jface.action MenuManager fill.

Prototype

@Override
    public void fill(Composite parent) 

Source Link

Usage

From source file:com.sap.dirigible.ide.ui.rap.presentation.fancy.FancyWindowComposer.java

License:Open Source License

void createMenuBar(final Composite menuBarComp) {
    MenuManager manager = window.getMenuBarManager();
    RowLayout layout = new RowLayout();
    layout.marginLeft = 30;// w  w  w .j av  a  2  s  .  com
    layout.marginRight = 0;
    layout.marginTop = 2;
    menuBarComp.setLayout(layout);
    manager.fill(menuBarComp);
}

From source file:org.eclipse.rap.internal.design.example.business.BusinessWindowComposer.java

License:Open Source License

void createMenuBar(final Composite menuBarComp) {
    MenuManager manager = window.getMenuBarManager();
    RowLayout layout = new RowLayout();
    layout.marginLeft = 0;//  w w  w  .  j  a v a 2s  .  co  m
    layout.marginRight = 0;
    layout.marginTop = 3;
    menuBarComp.setLayout(layout);
    manager.fill(menuBarComp);
}

From source file:org.eclipse.rap.internal.design.example.fancy.FancyWindowComposer.java

License:Open Source License

void createMenuBar(final Composite menuBarComp) {
    MenuManager manager = window.getMenuBarManager();
    RowLayout layout = new RowLayout();
    layout.marginLeft = 30;/*w  w  w .j  a  va  2s.c o  m*/
    layout.marginRight = 0;
    layout.marginTop = 3;
    menuBarComp.setLayout(layout);
    manager.fill(menuBarComp);
}

From source file:org.netxms.ui.eclipse.console.themes.material.MaterialWindowComposer.java

License:Open Source License

/**
 * Create menu bar//w  w w. j  a  v  a2  s  . c  o  m
 */
private void createMenuBar() {
    menuBar = new Composite(shell, SWT.NONE);
    menuBar.setData(RWT.CUSTOM_VARIANT, "menuBar"); //$NON-NLS-1$
    FormData fd = new FormData();
    fd.top = new FormAttachment(header, 0, SWT.BOTTOM);
    fd.left = new FormAttachment(logo, 0, SWT.RIGHT);
    fd.right = new FormAttachment(100, 0);
    fd.bottom = new FormAttachment(logo, 0, SWT.BOTTOM);
    menuBar.setLayoutData(fd);

    RowLayout layout = new RowLayout();
    layout.marginLeft = 30;
    layout.marginRight = 0;
    layout.marginTop = 3;
    menuBar.setLayout(layout);

    MenuManager manager = window.getMenuBarManager();
    manager.fill(menuBar);
}