Exemplo n.º 1
0
 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
Exemplo n.º 3
0
 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
Exemplo n.º 5
0
 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))
Exemplo n.º 6
0
 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
     ))
Exemplo n.º 7
0
 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
Exemplo n.º 8
0
 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)
Exemplo n.º 9
0
 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))
Exemplo n.º 10
0
 def _is_pre_analyze_validation_pass(self, tool_flag):
     return Application.get_instance().execute(
         self._create_make_pre_analyze_validation_command(tool_flag))
Exemplo n.º 11
0
 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)
Exemplo n.º 15
0
 def _update(self):
     Application.get_instance().execute(SetDomainDictValueCommand(
         SetDomainDictValueCommand.TYPE_VISIBLE_ITEMS,
         'tags',
         InfrastructureHelpers.split(self._text_field.getText())
     ))