Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Ryall2008-02-17 02:17:03 +0000
committerKen Ryall2008-02-17 02:17:03 +0000
commit3c15d8a16923e3a32ddcb33f9f6944a8e59e8444 (patch)
treec4f94833906d7bf91fc6e2861fa0bd07c6a8b16a /debug/org.eclipse.cdt.debug.core
parent2a99774c720c6852f1c19c74e06d586cf4791fe8 (diff)
downloadorg.eclipse.cdt-3c15d8a16923e3a32ddcb33f9f6944a8e59e8444.tar.gz
org.eclipse.cdt-3c15d8a16923e3a32ddcb33f9f6944a8e59e8444.tar.xz
org.eclipse.cdt-3c15d8a16923e3a32ddcb33f9f6944a8e59e8444.zip
Bug 218219
Diffstat (limited to 'debug/org.eclipse.cdt.debug.core')
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/sourcelookup/AbsolutePathSourceContainer.java9
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/AbsolutePathSourceContainerType.java2
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLookupDirector.java1
3 files changed, 11 insertions, 1 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/sourcelookup/AbsolutePathSourceContainer.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/sourcelookup/AbsolutePathSourceContainer.java
index 860fb413043..4e99c16951f 100644
--- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/sourcelookup/AbsolutePathSourceContainer.java
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/sourcelookup/AbsolutePathSourceContainer.java
@@ -97,4 +97,13 @@ public class AbsolutePathSourceContainer extends AbstractSourceContainer {
return getSourceContainerType( TYPE_ID );
}
+ public int hashCode() {
+ return TYPE_ID.hashCode();
+ }
+
+ public boolean equals(Object obj) {
+ if (!(obj instanceof AbsolutePathSourceContainer))
+ return false;
+ return true;
+ }
}
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/AbsolutePathSourceContainerType.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/AbsolutePathSourceContainerType.java
index 2667b2868a3..27dd4ecbd1e 100644
--- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/AbsolutePathSourceContainerType.java
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/AbsolutePathSourceContainerType.java
@@ -23,7 +23,7 @@ public class AbsolutePathSourceContainerType extends AbstractSourceContainerType
}
public String getMemento(ISourceContainer container) throws CoreException {
- return ""; //$NON-NLS-1$
+ return "AbsolutePath"; //$NON-NLS-1$
}
}
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLookupDirector.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLookupDirector.java
index 87b58649e9d..e0e316b0c4d 100644
--- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLookupDirector.java
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceLookupDirector.java
@@ -48,6 +48,7 @@ public class CSourceLookupDirector extends AbstractSourceLookupDirector {
fSupportedTypes.add( FolderSourceContainer.TYPE_ID );
fSupportedTypes.add( DirectorySourceContainer.TYPE_ID );
fSupportedTypes.add( MappingSourceContainer.TYPE_ID );
+ fSupportedTypes.add( AbsolutePathSourceContainer.TYPE_ID );
}
/* (non-Javadoc)

Back to the top