/** handler for convert Selected Sql Button pressed */ void convertSelectedSqlPressed() { // Get the selected binding Binding binding = getSelectedBinding(); // accept the available Sql Conversion if (binding.canConvertSqlSymbol()) { binding.acceptSqlConversion(); } // Update the SqlConversion Panel updateSymbolConversionPanel(binding); // Refresh table and message area tableViewer.refresh(true); updateRowColors(); updateMessageArea(); selectBinding(binding); }
/** handler for convertAll Sql Button pressed */ void convertAllSqlPressed() { for (int i = 0; i < bindingList.size(); i++) { Binding binding = bindingList.get(i); // If there is a type conflict, and available conversion, use it if (binding.hasTypeConflict() && binding.canConvertSqlSymbol()) { // accept the available Sql Conversion binding.acceptSqlConversion(); } } // Refresh tableViewer.refresh(true); updateRowColors(); updateMessageArea(); selectFirstBinding(); }