Search in sources :

Example 96 with SashForm

use of org.eclipse.swt.custom.SashForm in project yamcs-studio by yamcs.

the class AlphaNumericEditor method createPartControl.

@Override
public void createPartControl(Composite parent) {
    FillLayout fl = new FillLayout();
    fl.marginHeight = 0;
    fl.marginWidth = 0;
    parent.setLayout(fl);
    SashForm sash = new SashForm(parent, SWT.VERTICAL);
    Composite tableWrapper = new Composite(sash, SWT.NONE);
    tableWrapper.setLayoutData(new GridData(GridData.FILL_BOTH));
    parameterTable = new ParameterTableViewer(tableWrapper);
    ParameterContentProvider provider = (ParameterContentProvider) parameterTable.getContentProvider();
    provider.load(loadData());
    for (ParameterInfo info : loadData()) parameterTable.addParameter(info);
    parameterTable.refresh();
}
Also used : SashForm(org.eclipse.swt.custom.SashForm) Composite(org.eclipse.swt.widgets.Composite) GridData(org.eclipse.swt.layout.GridData) FillLayout(org.eclipse.swt.layout.FillLayout) ParameterInfo(org.yamcs.protobuf.Mdb.ParameterInfo)

Aggregations

SashForm (org.eclipse.swt.custom.SashForm)96 GridData (org.eclipse.swt.layout.GridData)65 GridLayout (org.eclipse.swt.layout.GridLayout)57 Composite (org.eclipse.swt.widgets.Composite)56 SelectionEvent (org.eclipse.swt.events.SelectionEvent)31 FillLayout (org.eclipse.swt.layout.FillLayout)30 Label (org.eclipse.swt.widgets.Label)26 SelectionAdapter (org.eclipse.swt.events.SelectionAdapter)25 CTabItem (org.eclipse.swt.custom.CTabItem)14 Button (org.eclipse.swt.widgets.Button)13 StyledText (org.eclipse.swt.custom.StyledText)12 ToolBar (org.eclipse.swt.widgets.ToolBar)12 ArrayList (java.util.ArrayList)11 Point (org.eclipse.swt.graphics.Point)11 Table (org.eclipse.swt.widgets.Table)11 ToolItem (org.eclipse.swt.widgets.ToolItem)11 TableViewer (org.eclipse.jface.viewers.TableViewer)10 Event (org.eclipse.swt.widgets.Event)10 Listener (org.eclipse.swt.widgets.Listener)9 Tree (org.eclipse.swt.widgets.Tree)9