diff -r 3b865f4b7dff -r 0d1e35a10a0b eric6/Project/Project.py --- a/eric6/Project/Project.py Sun Jan 17 12:40:19 2021 +0100 +++ b/eric6/Project/Project.py Sun Jan 17 16:21:57 2021 +0100 @@ -2853,7 +2853,22 @@ dlg.transferData() self.setDirty(True) self.__reorganizeFiles() - + + def getFiletypeAssociations(self, associationType): + """ + Public method to get the list of file type associations for + the given association type. + + @param associationType type of the association (one of FORMS, + INTERFACES, OTHERS, PROTOCOLS, RESOURCES, SOURCES or + TRANSLATIONS) + @type str + @return list of file patterns for the given type + @rtype list of str + """ + return [assoc for assoc in self.pdata["FILETYPES"] + if self.pdata["FILETYPES"][assoc] == associationType] + def __showLexerAssociations(self): """ Private slot to display the lexer association dialog.