--- a/src/eric7/UI/BrowserModel.py Mon Apr 08 17:02:11 2024 +0200 +++ b/src/eric7/UI/BrowserModel.py Tue Apr 09 14:27:03 2024 +0200 @@ -1147,6 +1147,24 @@ """ return self.symlink + def lineno(self): + """ + Public method to return the line number of the item. + + @return line number defining the object + @rtype int + """ + return 0 # just a placeholder implementation + + def colOffset(self): + """ + Public method to return the column offset of the item definition. + + @return column offset defining the object + @rtype int + """ + return 0 # default value + class BrowserSimpleDirectoryItem(BrowserItem): """ @@ -1787,6 +1805,15 @@ """ return (self._classObject.lineno, self._classObject.endlineno) + def colOffset(self): + """ + Public method to return the column offset of the item definition. + + @return column offset defining the object + @rtype int + """ + return self._classObject.coloffset + def lessThan(self, other, column, order): """ Public method to check, if the item is less than the other one. @@ -1918,6 +1945,15 @@ """ return (self._functionObject.lineno, self._functionObject.endlineno) + def colOffset(self): + """ + Public method to return the column offset of the item definition. + + @return column offset defining the object + @rtype int + """ + return self._functionObject.coloffset + def lessThan(self, other, column, order): """ Public method to check, if the item is less than the other one. @@ -2110,6 +2146,15 @@ """ return self._attributeObject.linenos[:] + def colOffset(self): + """ + Public method to return the column offset of the item definition. + + @return column offset defining the object + @rtype int + """ + return self._attributeObject.coloffset + def lessThan(self, other, column, order): """ Public method to check, if the item is less than the other one.