예제 #1
0
 @Override
 public Argument getArgument(String name) {
   for (Argument argument : getArguments()) {
     Var variable = argument.getVariable();
     if (variable != null && variable.getName().equals(name)) {
       return argument;
     }
   }
   return null;
 }
  @Override
  protected void readValuesFromModels() {
    final Instance instance = (Instance) getSelectedBusinessObject();
    final ExpressionPrinter exprPrinter = new ExpressionPrinter();

    table.removeAll();

    for (final Argument arg : instance.getArguments()) {
      final String[] itemValues = {
        arg.getVariable().getName(), exprPrinter.doSwitch(arg.getValue())
      };
      final TableItem item = new TableItem(table, SWT.NONE);
      item.setText(itemValues);
    }
  }