Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [imp-dev] A useful addition to ISourceLocation

Right, why not? I think I'll try that. Will also add a method to the factory that takes a URI directly.

Cheers,

Jurgen

On Mon, Mar 2, 2009 at 6:31 PM, Robert M. Fuhrer <rfuhrer@xxxxxxxxxxxxxx> wrote:
Hi Jurgen,

I like the idea of supporting more than just file-type locations.

Instead of just adding the URI protocol component, though,
why not just make getPath() return a URI?


On Mar 2, 2009, at 11:41 AM, Jurgen Vinju wrote:

Hi imps,

I'm planning to add the following feature to ISourceLocation's: the ability to store a protocol string.

The idea of source locations is that they encapsulate a file's path and a source range within a file.

By adding a protocol string (by default "file"), we can distinguish among different sources of locations, such
as from the local file system, from a jar, from svn, from cvs, etc.

This protocol string is not interpreted in any way by pdb.values, instead clients of the API can interpret the protocol
string as they see fit, adding their own protocols if necessary (like "bundle" for example...).

Currently I already print and parse sourceLocations with a URL-like syntax, for easy of integration with other tools,
so this is a simple extension.

Comments are welcome.

Cheers,
 - Bob

_______________________________________________
imp-dev mailing list
imp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/imp-dev


Back to the top