2183 Public method to get the string for the project environment. |
2183 Public method to get the string for the project environment. |
2184 |
2184 |
2185 @return string for the project environment |
2185 @return string for the project environment |
2186 @rtype str |
2186 @rtype str |
2187 """ |
2187 """ |
2188 if ericApp().getObject("Project").isOpen(): |
2188 try: |
2189 return self.tr("<project>") |
2189 if ericApp().getObject("Project").isOpen(): |
2190 else: |
2190 return self.tr("<project>") |
|
2191 else: |
|
2192 return "" |
|
2193 except KeyError: |
|
2194 # The project object is not present |
2191 return "" |
2195 return "" |