Exemplo n.º 1
0
  /** Creates the view */
  public void createView() {
    myView = UIBindingsTestUtils.createUIBTestView(this);
    myBody = myView.getBody();

    myShopName = new Text(myBody, SWT.SINGLE | SWT.LEAD | SWT.BORDER);
    myShopName.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
    myShopName.setText("");
  }
  @Before
  public void before() {
    resetAll();
    IManager.Factory.getManager().setValidationDelay(VD);

    myView = UIBindingsTestUtils.createUIBTestView(this);

    myShop = ShopFactory.eINSTANCE.createShop();
    myShop.setName(myInitValue);

    myForm = myView.createFormCreator(myShop);
  }
Exemplo n.º 3
0
  /** Creates the view */
  public void createView() {
    myView = UIBindingsTestUtils.createUIBTestView(this);
    myBody = myView.getBody();
    myFilter = IFilteringTableAdapter.Factory.createFilter(myBody);
    myTable = new Table(myBody, SWT.FULL_SELECTION);
    myTable.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));

    myNameColumn = new TableColumn(myTable, SWT.NONE);
    myNameColumn.setWidth(100);

    myAbbreviationColumn = new TableColumn(myTable, SWT.NONE);
    myAbbreviationColumn.setWidth(100);
  }
  /** Creates the view */
  public void createView() {
    myView = UIBindingsTestUtils.createUIBTestView(this);
    myBody = myView.getBody();
    myBody.setLayout(new TableWrapLayout());

    myEmptyText = myView.getToolkit().createText(myBody, "");

    myTableViewer = new TableViewer(myBody, SWT.FULL_SELECTION | SWT.BORDER);
    myTable = myTableViewer.getTable();
    myTable.setLayoutData(new TableWrapData(TableWrapData.FILL));
    myTable.setHeaderVisible(true);

    myNameColumn = new TableViewerColumn(myTableViewer, SWT.NONE);
    myNameColumn.getColumn().setWidth(100);

    myCountryColumn = new TableViewerColumn(myTableViewer, SWT.NONE);
    myCountryColumn.getColumn().setWidth(100);

    myCountryNameColumn = new TableViewerColumn(myTableViewer, SWT.NONE);
    myCountryNameColumn.getColumn().setWidth(100);

    myNameText = myView.getToolkit().createText(myBody, "");
  }