public interface ISourceLookupParticipant
ISourceContainer
), to search for source elements. Source containers
are generally debug model independent, whereas source lookup participants are
debug model specific.
Clients may implement this interface. An abstract implementation is
provided by AbstractSourceLookupParticipant
, which clients
should subclass.
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes this source lookup participant.
|
Object[] |
findSourceElements(Object object)
Returns a collection of source elements corresponding to the given debug
artifact (for example, a stack frame or breakpoint).
|
String |
getSourceName(Object object)
Returns the source file name associated with the given debug artifact that
source needs to be found for, or
null if none. |
void |
init(ISourceLookupDirector director)
Notification this participant has been added to the specified
source lookup director.
|
void |
sourceContainersChanged(ISourceLookupDirector director)
Notification that the source lookup containers in the given source
lookup director have changed.
|
void init(ISourceLookupDirector director)
director
- the source lookup director that this participant
has been added toObject[] findSourceElements(Object object) throws CoreException
isFindDuplicates()
.
When false
the returned collection should contain at most one
source element.
If the given debug artifact is not recognized by this participant, an empty collection is returned. Otherwise, this participant generates a source name from the given artifact and performs a search for associated source elements in its source containers.
object
- the debug artifact for which source needs to be found (e.g., stack frame)CoreException
- if an exception occurs while searching for sourceString getSourceName(Object object) throws CoreException
null
if none.object
- the debug artifact for which source needs to be found (e.g., stack frame)null
if none.CoreException
- if unable to determine a source file namevoid dispose()
void sourceContainersChanged(ISourceLookupDirector director)
director
- source lookup director that is directing this
participant
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.