6720 from CodeFormatting.BlackFormattingDialog import BlackFormattingDialog |
6720 from CodeFormatting.BlackFormattingDialog import BlackFormattingDialog |
6721 |
6721 |
6722 if ericApp().getObject("ViewManager").checkAllDirty(): |
6722 if ericApp().getObject("ViewManager").checkAllDirty(): |
6723 dlg = BlackConfigurationDialog(withProject=True) |
6723 dlg = BlackConfigurationDialog(withProject=True) |
6724 if dlg.exec() == QDialog.DialogCode.Accepted: |
6724 if dlg.exec() == QDialog.DialogCode.Accepted: |
6725 config = dlg.getConfiguration() |
6725 config = dlg.getConfiguration(saveToProject=True) |
6726 |
6726 |
6727 formattingDialog = BlackFormattingDialog( |
6727 formattingDialog = BlackFormattingDialog( |
6728 config, |
6728 config, |
6729 self.getProjectFiles("SOURCES", normalized=True), |
6729 self.getProjectFiles("SOURCES", normalized=True), |
6730 project=self, |
6730 project=self, |
6740 """ |
6740 """ |
6741 from CodeFormatting.BlackConfigurationDialog import BlackConfigurationDialog |
6741 from CodeFormatting.BlackConfigurationDialog import BlackConfigurationDialog |
6742 |
6742 |
6743 dlg = BlackConfigurationDialog(withProject=True, onlyProject=True) |
6743 dlg = BlackConfigurationDialog(withProject=True, onlyProject=True) |
6744 if dlg.exec() == QDialog.DialogCode.Accepted: |
6744 if dlg.exec() == QDialog.DialogCode.Accepted: |
6745 dlg.getConfiguration() |
6745 dlg.getConfiguration(saveToProject=True) |
6746 # The data is saved to the project as a side effect. |
6746 # The data is saved to the project as a side effect. |
6747 |
6747 |
6748 ######################################################################### |
6748 ######################################################################### |
6749 ## Below are methods implementing the 'Embedded Environment' support |
6749 ## Below are methods implementing the 'Embedded Environment' support |
6750 ######################################################################### |
6750 ######################################################################### |