Index: api/src/org/netbeans/spi/debugger/jpda/SourcePathProvider.java =================================================================== RCS file: /cvs/debuggerjpda/api/src/org/netbeans/spi/debugger/jpda/SourcePathProvider.java,v retrieving revision 1.2 diff -u -r1.2 SourcePathProvider.java --- api/src/org/netbeans/spi/debugger/jpda/SourcePathProvider.java 18 Oct 2004 14:57:49 -0000 1.2 +++ api/src/org/netbeans/spi/debugger/jpda/SourcePathProvider.java 3 May 2006 16:27:02 -0000 @@ -7,7 +7,7 @@ * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original - * Code is Sun Micro//S ystems, Inc. Portions Copyright 1997-2001 Sun + * Code is Sun Micro//S ystems, Inc. Portions Copyright 1997-2006 Sun * Micro//S ystems, Inc. All Rights Reserved. */ package org.netbeans.spi.debugger.jpda; @@ -60,6 +60,18 @@ */ public abstract String getURL (String relativePath, boolean global); + /** + * Returns the source root (if any) for given url. + * + * @param url a url of resource file + * + * @return the source root or null when no source root was found. + * @since 2.6 + */ + public String getSourceRoot(String url) { + return null; + } + /** * Returns array of source roots. */ Index: api/apichanges.xml =================================================================== RCS file: /cvs/debuggerjpda/api/apichanges.xml,v retrieving revision 1.12 diff -u -r1.12 apichanges.xml --- api/apichanges.xml 3 Nov 2005 11:34:45 -0000 1.12 +++ api/apichanges.xml 3 May 2006 16:27:03 -0000 @@ -365,6 +365,23 @@ + + + Added getSourceRoot() method to SourcePathProvider class + + + + + +

+ Retrieves a source root for a given URL. This is necessary to + match breakpoint locations with the sources selected fopr debugging. + It returns null by default. +

+
+ + +
Index: api/manifest.mf =================================================================== RCS file: /cvs/debuggerjpda/api/manifest.mf,v retrieving revision 1.16 diff -u -r1.16 manifest.mf --- api/manifest.mf 12 Dec 2005 15:37:49 -0000 1.16 +++ api/manifest.mf 3 May 2006 16:27:03 -0000 @@ -1,6 +1,6 @@ Manifest-Version: 1.0 OpenIDE-Module: org.netbeans.api.debugger.jpda/2 OpenIDE-Module-Localizing-Bundle: org/netbeans/api/debugger/jpda/Bundle.properties -OpenIDE-Module-Specification-Version: 2.5 +OpenIDE-Module-Specification-Version: 2.6 OpenIDE-Module-Package-Dependencies: com.sun.jdi[VirtualMachineManager]