use of com.centurylink.mdw.plugin.variables.VariableValuesTableContainer in project mdw-designer by CenturyLinkCloud.
the class ProcessVariablesTab method createProcessVariablesSection.
private void createProcessVariablesSection(Composite parent) {
tableContainer = new VariableValuesTableContainer();
tableContainer.getColumnSpecs().get(0).label = "Input Variable";
tableContainer.create(parent);
tableContainer.addDirtyStateListener(this);
}
use of com.centurylink.mdw.plugin.variables.VariableValuesTableContainer in project mdw-designer by CenturyLinkCloud.
the class ProcessInstanceFilterDialog method createVariablesTabItem.
private TabItem createVariablesTabItem(TabFolder tabFolder) {
TabItem variablesTabItem = new TabItem(tabFolder, SWT.NULL);
variablesTabItem.setText("Variables");
Composite composite = new Composite(tabFolder, SWT.NONE);
composite.setLayout(new GridLayout());
composite.setLayoutData(new GridData(GridData.FILL_BOTH));
// variables table
tableContainer = new VariableValuesTableContainer();
tableContainer.create(composite);
tableContainer.addDirtyStateListener(new DirtyStateListener() {
public void dirtyStateChanged(boolean dirty) {
filter.getVariableValues().clear();
if (variableValues != null) {
for (VariableValue variableValue : variableValues) filter.getVariableValues().put(variableValue.getName(), variableValue.getValue());
}
}
});
variablesTabItem.setControl(composite);
variableValues = new ArrayList<>();
tableContainer.setInput(variableValues);
return variablesTabItem;
}
Aggregations