예제 #1
0
  @Override
  public void updateTabsData(ImportEntityData importEntityData) {
    VM vm = ((ImportVmData) importEntityData).getVm();

    vmGeneralModel.setEntity(vm);
    generalView.setMainTabSelectedItem(vm);

    disksTable.setRowData((List) Arrays.asList(vm.getDiskMap().values().toArray()));
    nicsTable.setRowData((List) Arrays.asList(vm.getInterfaces().toArray()));
    appsTable.setRowData((List) Arrays.asList(vm.getAppList().split("[,]", -1))); // $NON-NLS-1$
  }
예제 #2
0
  @Override
  protected void init() {
    // Initialize Tables
    initGeneralForm();
    initDisksTable();
    initNicsTable();
    initAppsTable();

    // Add Tabs
    add(new ScrollPanel(generalView.asWidget()), constants.generalLabel());
    add(new ScrollPanel(disksTable), constants.disksLabel());
    add(new ScrollPanel(nicsTable), constants.nicsLabel());
    add(new ScrollPanel(appsTable), constants.applicationsLabel());
  }