Community
Participate
Working Groups
Currently, getPath method in element API ties the model implementation to the local file system, as it can never return null according to its spec and the IPath cannot represent an external file in an arbitrary file system. A method like getLocationURI, similar to IResource#getLocationURI, would be a more flexible alternative. Notably, the getPath method has often been used for obtaining a string representation of the element for displaying to the user, e.g. in message dialogs. A better alternative would be a specialized toDisplayString method.
Pushed to master: http://git.eclipse.org/c/handly/org.eclipse.handly.git/commit/?id=7f498cbb5a983f8eadc9f48a5112e0b4cda31f11 Breaking changes: * Elements#getPath, IElementExtension#getPath, IElementImpl#hPath - removed New API: * Elements#getLocalationURI, IElementExtension#getLocationURI, IElementImpl#hLocationURI * Elements#toDisplayString, IElementImpl#hToDisplayString * Element#hDoesNotExistException (protected)