1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| public class SectionViewer extends AbstractViewer
{
SectionExtension section;
public SectionViewer(Composite parent, SectionExtension section)
{
super(parent);
this.section = section;
}
@Override
public void createControls(Composite parent)
{
System.out.println("test");
ScrolledComposite scrolledComposite = new ScrolledComposite(parent, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
scrolledComposite.setLocation(149, 0);
scrolledComposite.setExpandHorizontal(true);
scrolledComposite.setExpandVertical(true);
Composite composite = new Composite(scrolledComposite, SWT.NONE);
composite.setLayout(new GridLayout(8, false));
new Label(composite, SWT.NONE);
new Label(composite, SWT.NONE);
new Label(composite, SWT.NONE);
new Label(composite, SWT.NONE);
new Label(composite, SWT.NONE);
new Label(composite, SWT.NONE);
Label lblWall = new Label(composite, SWT.NONE);
lblWall.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));
lblWall.setText("Wall :");
new Label(composite, SWT.NONE);
}
} |
Partager