private void moveItemUp() {
   int index = menuItemsTable.getSelectedRow();
   // Return if nothing was selected.
   if (index == -1) return;
   // Return if the first item is selected.
   if (index == 0) return;
   nodeAttributesDialog.moveParameterItemUp(parameter, index);
   // TODO: Changing the selection doesn't have any effect on Mac.
   menuItemsTable.changeSelection(index - 1, 1, false, false);
 }