eric7/Project/Project.py

branch
eric7
changeset 8383
c090300126df
parent 8366
2a9f5153c438
child 8466
bb21fd901f49
equal deleted inserted replaced
8382:28f7ef365d1b 8383:c090300126df
2856 """ 2856 """
2857 Public method to get the list of file type associations for 2857 Public method to get the list of file type associations for
2858 the given association type. 2858 the given association type.
2859 2859
2860 @param associationType type of the association (one of FORMS, 2860 @param associationType type of the association (one of FORMS,
2861 INTERFACES, OTHERS, PROTOCOLS, RESOURCES, SOURCES or 2861 INTERFACES, OTHERS, PROTOCOLS, RESOURCES, SOURCES,
2862 TRANSLATIONS) 2862 TRANSLATIONS or __IGNORE__)
2863 @type str 2863 @type str
2864 @return list of file patterns for the given type 2864 @return list of file patterns for the given type
2865 @rtype list of str 2865 @rtype list of str
2866 """ 2866 """
2867 return [assoc for assoc in self.pdata["FILETYPES"] 2867 return [assoc for assoc in self.pdata["FILETYPES"]
2897 if self.__lexerAssociationCallbacks[projectType] is not None: 2897 if self.__lexerAssociationCallbacks[projectType] is not None:
2898 return self.__lexerAssociationCallbacks[projectType](filename) 2898 return self.__lexerAssociationCallbacks[projectType](filename)
2899 2899
2900 # return empty string to signal to use the global setting 2900 # return empty string to signal to use the global setting
2901 return "" 2901 return ""
2902 2902
2903 def getIgnorePatterns(self):
2904 """
2905 Public method to get the list of file name patterns for files to be
2906 ignored.
2907
2908 @return list of ignore file name patterns
2909 @rtype list of str
2910 """
2911 return self.getFiletypeAssociations("__IGNORE__")
2912
2903 @pyqtSlot() 2913 @pyqtSlot()
2904 @pyqtSlot(str) 2914 @pyqtSlot(str)
2905 def openProject(self, fn=None, restoreSession=True, reopen=False): 2915 def openProject(self, fn=None, restoreSession=True, reopen=False):
2906 """ 2916 """
2907 Public slot to open a project. 2917 Public slot to open a project.

eric ide

mercurial