mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 01:36:01 +02:00
Bug 218219
This commit is contained in:
parent
2a99774c72
commit
3c15d8a169
3 changed files with 11 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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$
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue