Search in sources :

Example 1 with AddTreeNodeButton

use of org.talend.repository.json.ui.wizards.buttons.AddTreeNodeButton in project tdi-studio-se by Talend.

the class JSONFileOutputStep2Form method initToolBar.

private void initToolBar(Composite parent) {
    // tool buttons
    Composite toolBarComp = new Composite(parent, SWT.BORDER);
    GridLayout layout = new GridLayout();
    layout.numColumns = 4;
    GridData data = new GridData(GridData.FILL_HORIZONTAL);
    toolBarComp.setLayout(layout);
    toolBarComp.setLayoutData(data);
    AddTreeNodeButton addTreeNodeBtn = new AddTreeNodeButton(toolBarComp, this);
    RemoveTreeNodeButton removeNodeBtn = new RemoveTreeNodeButton(toolBarComp, this);
    MoveUpTreeNodeButton moveUpBtn = new MoveUpTreeNodeButton(toolBarComp, this);
    MoveDownTreeNodeButton moveDown = new MoveDownTreeNodeButton(toolBarComp, this);
}
Also used : GridLayout(org.eclipse.swt.layout.GridLayout) MoveUpTreeNodeButton(org.talend.repository.json.ui.wizards.buttons.MoveUpTreeNodeButton) Composite(org.eclipse.swt.widgets.Composite) GridData(org.eclipse.swt.layout.GridData) RemoveTreeNodeButton(org.talend.repository.json.ui.wizards.buttons.RemoveTreeNodeButton) AddTreeNodeButton(org.talend.repository.json.ui.wizards.buttons.AddTreeNodeButton) MoveDownTreeNodeButton(org.talend.repository.json.ui.wizards.buttons.MoveDownTreeNodeButton)

Aggregations

GridData (org.eclipse.swt.layout.GridData)1 GridLayout (org.eclipse.swt.layout.GridLayout)1 Composite (org.eclipse.swt.widgets.Composite)1 AddTreeNodeButton (org.talend.repository.json.ui.wizards.buttons.AddTreeNodeButton)1 MoveDownTreeNodeButton (org.talend.repository.json.ui.wizards.buttons.MoveDownTreeNodeButton)1 MoveUpTreeNodeButton (org.talend.repository.json.ui.wizards.buttons.MoveUpTreeNodeButton)1 RemoveTreeNodeButton (org.talend.repository.json.ui.wizards.buttons.RemoveTreeNodeButton)1