public interface IPersistableSourceLocator extends ISourceLocator
A source locator extension is defined in plugin.xml.
Following is an example definition of a source locator extension.
<extension point="org.eclipse.debug.core.sourceLocators">
<sourceLocator
id="com.example.ExampleIdentifier"
class="com.example.ExampleSourceLocator"
name="Example Source Locator">
</sourceLocator>
</extension>
The attributes are specified as follows:
id specifies a unique identifier for this source locator.class specifies the fully qualified name of the Java class
that implements IPersistableSourceLocator.name a human readable name, describing the type of
this source locator.Clients may implement this interface.
ILaunch,
IStackFrame,
IDebugModelPresentation| Modifier and Type | Method and Description |
|---|---|
String |
getMemento()
Returns a memento that can be used to reconstruct
this source locator
|
void |
initializeDefaults(ILaunchConfiguration configuration)
Initializes this source locator to perform default
source lookup for the given launch configuration.
|
void |
initializeFromMemento(String memento)
Initializes this source locator based on the given
memento.
|
getSourceElementString getMemento() throws CoreException
CoreException - if unable to construct a mementovoid initializeFromMemento(String memento) throws CoreException
memento - a memento to initialize this source locatorCoreException - on failure to initializevoid initializeDefaults(ILaunchConfiguration configuration) throws CoreException
configuration - launch configuration this source locator
will be performing source lookup forCoreException - on failure to initializeGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.