From 1092355e7acc04e9f79e7dbf5c0a2b3f6b528828 Mon Sep 17 00:00:00 2001 From: gurudevtest Date: Tue, 6 Jul 2021 11:41:22 -0700 Subject: [PATCH] Update DynamoDBTableEditor.java --- .../dynamodb/editor/DynamoDBTableEditor.java | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/bundles/com.amazonaws.eclipse.dynamodb/src/com/amazonaws/eclipse/dynamodb/editor/DynamoDBTableEditor.java b/bundles/com.amazonaws.eclipse.dynamodb/src/com/amazonaws/eclipse/dynamodb/editor/DynamoDBTableEditor.java index 13ac8ed..b176989 100644 --- a/bundles/com.amazonaws.eclipse.dynamodb/src/com/amazonaws/eclipse/dynamodb/editor/DynamoDBTableEditor.java +++ b/bundles/com.amazonaws.eclipse.dynamodb/src/com/amazonaws/eclipse/dynamodb/editor/DynamoDBTableEditor.java @@ -1282,24 +1282,24 @@ private void invokeMultiValueDialog(final TableItem item, final int column, final int row, final int selectedType) { - @SuppressWarnings("unchecked") - Map dynamoDbItem = (Map) 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 dynamoDbItem = (Map) 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(); } }