KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > core > sourcelookup > IPersistableSourceLocator2


1 /*******************************************************************************
2  * Copyright (c) 2004, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.debug.core.sourcelookup;
13
14 import org.eclipse.core.runtime.CoreException;
15 import org.eclipse.debug.core.ILaunchConfiguration;
16 import org.eclipse.debug.core.model.IPersistableSourceLocator;
17
18 /**
19  * Extensions to the <code>IPersistableSourceLocator</code> interface.
20  * <p>
21  * Clients may optionally implement this interface when implementing an
22  * {@link org.eclipse.debug.core.model.IPersistableSourceLocator}.
23  * </p>
24  * @see org.eclipse.debug.core.model.IPersistableSourceLocator
25  * @since 3.0
26  */

27 public interface IPersistableSourceLocator2 extends IPersistableSourceLocator {
28
29     /**
30      * Initializes this source locator based on the given
31      * memento, for the given launch configuration. This method
32      * is called instead of <code>initializeFrom(String memento)</code>
33      * defined in <code>IPersistableSourceLocator</code> when a source
34      * locator implements this interface.
35      *
36      * @param memento a memento to initialize this source locator
37      * @param configuration the launch configuration this source locator is
38      * being created for
39      * @exception CoreException on failure to initialize
40      */

41     public void initializeFromMemento(String JavaDoc memento, ILaunchConfiguration configuration) throws CoreException;
42     
43     /**
44      * Disposes this source locator. This method is called when a source
45      * locator's associated launch is removed from the launch manager.
46      */

47     public void dispose();
48 }
49
Popular Tags