Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1282,24 +1282,24 @@ private void invokeMultiValueDialog(final TableItem item,
final int column,
final int row,
final int selectedType) {
@SuppressWarnings("unchecked")
Map<String, AttributeValue> dynamoDbItem = (Map<String, AttributeValue>) item.getData();
MultiValueAttributeEditorDialog multiValueEditorDialog = new MultiValueAttributeEditorDialog(Display
.getDefault().getActiveShell(), dynamoDbItem.get(attributeName), selectedType);

int returnValue = multiValueEditorDialog.open();
/* Save set */
if ( returnValue == 0 ) {
int dataType = editorComposite.getSelectedDataType(true);
markModified(item, editorComposite.editorText, row, column, multiValueEditorDialog.getValues(), dataType);
}
/* Save single value */
else if ( returnValue == 1 ) {
int dataType = editorComposite.getSelectedDataType(false);
markModified(item, editorComposite.editorText, row, column, multiValueEditorDialog.getValues(), dataType);
}
/* Don't do anything when the user pressed Cancel */
multiValueEditorDialog.close();
@SuppressWarnings("unchecked")
Map<String, AttributeValue> dynamoDbItem = (Map<String, AttributeValue>) item.getData();
MultiValueAttributeEditorDialog multiValueEditorDialog = new MultiValueAttributeEditorDialog(Display
.getDefault().getActiveShell(), dynamoDbItem.get(attributeName), selectedType);

int returnValue = multiValueEditorDialog.open();
/* Save set */
if ( returnValue == 0 ) {
int dataType = editorComposite.getSelectedDataType(true);
markModified(item, editorComposite.editorText, row, column, multiValueEditorDialog.getValues(), dataType);
}
/* Save single value */
else if ( returnValue == 1 ) {
int dataType = editorComposite.getSelectedDataType(false);
markModified(item, editorComposite.editorText, row, column, multiValueEditorDialog.getValues(), dataType);
}
/* Don't do anything when the user pressed Cancel */
multiValueEditorDialog.close();
}
}

Expand Down