Project: JDT
Bug 191757 [build path] Custom attributes set by IClasspathContainerPage implementations are discarded on save
Reported: 2007-06-08 14:46:31 | Status: resolved fixed

Custom attributes set by IClasspathContainerPage implementations are discarded on save. I wanted to add some configuration properties that need to be associated with my classpath container and thought of using custom attributes (IClasspathEntry.getExtraAttributes()) for that purpose. However, if I set those attributes in IClasspathContainerPage.finish() method and make IClasspathContainerPage.getSelection() to return IClasspathEntry with those attributes, they seem being discarded when JDT saving changes to container.

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/newsourcepage/AddLibraryToBuildpathAction.java