mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-08 18:30:42 +00:00
Fix pipeline
This commit is contained in:
parent
43af68812e
commit
eb33ce11bf
@ -69,16 +69,8 @@ public class TypeAssumptionsArea extends Dialog implements LocaleChangeObserver
|
||||
|
||||
assumptionContainer = new VerticalLayout();
|
||||
assumptionContainer.setId(ASS_CONTAINER_ID);
|
||||
|
||||
for (Map.Entry<String, String> param : types.entrySet()) {
|
||||
TypeAssumptionField assumption = new TypeAssumptionField(value -> {
|
||||
assumptionContainer.remove(value);
|
||||
fields.remove(value);
|
||||
}, param.getKey(), param.getValue());
|
||||
assumptionContainer.add(assumption);
|
||||
fields.add(assumption);
|
||||
}
|
||||
|
||||
|
||||
initializeWithAssumptions(types);
|
||||
layout.add(heading, buttons, assumptionContainer);
|
||||
add(layout);
|
||||
setCloseOnOutsideClick(false);
|
||||
@ -90,6 +82,17 @@ public class TypeAssumptionsArea extends Dialog implements LocaleChangeObserver
|
||||
protected TypeAssumptionsArea() {
|
||||
this(new HashMap<>());
|
||||
}
|
||||
|
||||
private void initializeWithAssumptions(Map<String, String> types) {
|
||||
for (Map.Entry<String, String> param : types.entrySet()) {
|
||||
TypeAssumptionField assumption = new TypeAssumptionField(value -> {
|
||||
assumptionContainer.remove(value);
|
||||
fields.remove(value);
|
||||
}, param.getKey(), param.getValue());
|
||||
assumptionContainer.add(assumption);
|
||||
fields.add(assumption);
|
||||
}
|
||||
}
|
||||
|
||||
private void onAddAssumptionClicked() {
|
||||
TypeAssumptionField assumption = new TypeAssumptionField(value -> {
|
||||
|
Loading…
Reference in New Issue
Block a user