def setValueAt(self, value, row_index, column_index): property = self.getColumnName(column_index).lower() if self._column_model.is_array(column_index): value = InfrastructureHelpers.split(value) Application.get_instance().execute( self._create_set_object_property_application_command( self._objects[row_index].get_id(), property, value))
def itemStateChanged(self, event): for button in self._buttons: if button.isSelected(): Application.get_instance().execute( SetDomainDictValueCommand( SetDomainDictValueCommand.TYPE_VISIBLE_ITEMS, 'tags_operator', button.getLabel())) break
def _execute_select_objects_command(self): Application.get_instance().execute( SetDomainDictValueCommand( self._get_domain_dict_type(), 'object_ids', self._model.map_object_indexes_to_ids([ self.convertRowIndexToModel(i) for i in self.getSelectedRows() ])))
def itemStateChanged(self, event): for button in self._buttons: if button.isSelected(): Application.get_instance().execute( SetDomainDictValueCommand( SetDomainDictValueCommand.TYPE_PRE_ANALYZE_VALIDATOR, 'capturing', button.getLabel())) break
def itemStateChanged(self, event): statuses = [] for check_box in self._check_boxes: if check_box.isSelected(): statuses.append(check_box.getLabel()) Application.get_instance().execute( SetDomainDictValueCommand( SetDomainDictValueCommand.TYPE_VISIBLE_ITEMS, 'statuses', statuses))
def itemStateChanged(self, event): scope_tools = [] for check_box in self._check_boxes: if check_box.isSelected(): scope_tools.append(check_box.getLabel()) Application.get_instance().execute(SetDomainDictValueCommand( SetDomainDictValueCommand.TYPE_PRE_ANALYZE_VALIDATOR, 'scope_tools', scope_tools ))
def _execute_select_main_object_command(self): main_object_id = None main_object_index = self.getSelectedRow() if main_object_index != -1: main_object_id = self._model.map_object_indexes_to_ids( [self.convertRowIndexToModel(main_object_index)])[0] if main_object_id != self._prev_main_selected_object_id: Application.get_instance().execute( SetDomainDictValueCommand(self._get_domain_dict_type(), 'main_object_id', main_object_id)) self._prev_main_selected_object_id = main_object_id
def actionPerformed(self, event): database_path = UIHelpers.choose_file() if database_path: if Application.get_instance().execute( SetDomainDictValueCommand( SetDomainDictValueCommand.TYPE_PERSISTENCE, 'database_path', database_path)): self._text_field.setText(database_path)
def _is_pre_process_validation_pass(self, request_info, response_info): return Application.get_instance().execute( self._create_make_pre_process_validation_command( request_info, response_info))
def _is_pre_analyze_validation_pass(self, tool_flag): return Application.get_instance().execute( self._create_make_pre_analyze_validation_command(tool_flag))
def itemStateChanged(self, event): Application.get_instance().execute( SetDomainDictValueCommand(self._get_domain_dict_type(), self._get_domain_dict_key(), self._check_box.isSelected()))
def focusLost(self, event): Application.get_instance().execute( SetDomainDictValueCommand( self._get_domain_dict_type(), self._get_domain_dict_key(), InfrastructureHelpers.split(self._text_field.getText())))
def actionPerformed(self, event): Application.get_instance().execute(self._create_application_command( event.getActionCommand() ))
def run(self): Application.get_instance().execute(self.command)
def _update(self): Application.get_instance().execute(SetDomainDictValueCommand( SetDomainDictValueCommand.TYPE_VISIBLE_ITEMS, 'tags', InfrastructureHelpers.split(self._text_field.getText()) ))