From 0ff106c599d00352070c14ef9913f4ba15627d45 Mon Sep 17 00:00:00 2001 From: Pawel Piech Date: Wed, 3 Oct 2007 17:42:31 +0000 Subject: [PATCH] [205325] Initial source lookup service from Ottawa coding camp. --- .../dd/dsf/debug/service/ISourceLookup.java | 29 ++++++------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/plugins/org.eclipse.dd.dsf.debug/src/org/eclipse/dd/dsf/debug/service/ISourceLookup.java b/plugins/org.eclipse.dd.dsf.debug/src/org/eclipse/dd/dsf/debug/service/ISourceLookup.java index 9f48bd058c3..066f620ae25 100644 --- a/plugins/org.eclipse.dd.dsf.debug/src/org/eclipse/dd/dsf/debug/service/ISourceLookup.java +++ b/plugins/org.eclipse.dd.dsf.debug/src/org/eclipse/dd/dsf/debug/service/ISourceLookup.java @@ -12,8 +12,9 @@ package org.eclipse.dd.dsf.debug.service; import org.eclipse.dd.dsf.concurrent.DataRequestMonitor; import org.eclipse.dd.dsf.datamodel.IDMContext; +import org.eclipse.dd.dsf.datamodel.IDMData; +import org.eclipse.dd.dsf.datamodel.IDMEvent; import org.eclipse.dd.dsf.service.IDsfService; -import org.eclipse.debug.core.sourcelookup.ISourceContainer; /** * Service for mapping debugger paths to host paths. This service is needed @@ -22,30 +23,18 @@ import org.eclipse.debug.core.sourcelookup.ISourceContainer; * interfaces could be sufficient. */ public interface ISourceLookup extends IDsfService { - - public interface ISourceLookupResult { - Object getSourceObject(); - ISourceContainer getMatchingContainer(); - } - - public interface IDebuggerPathLookupResult { - String getDebuggerPath(); - ISourceContainer getMatchingContainer(); - } - - /** - * Initializes the given context with the given list of source lookup - * containers. - */ - void initializeSourceContainers(IDMContext ctx, ISourceContainer[] containers); + + public interface ISourceLookupDMContext extends IDMContext {} + + public interface ISourceLookupChangedDMEvent extends IDMEvent {} /** * Retrieves the host source object for given debugger path string. */ - void getSource(IDMContext ctx, String debuggerPath, boolean searchDuplicates, DataRequestMonitor rm); + void getSource(IDMContext ctx, String debuggerPath, DataRequestMonitor rm); /** - * Retrieves the debugger path string(s) for given host source object. + * Retrieves the debugger path string for given host source object. */ - void getDebuggerPath(IDMContext ctx, Object source, boolean searchDuplicates, DataRequestMonitor rm); + void getDebuggerPath(IDMContext ctx, Object source, DataRequestMonitor rm); }