| Summary: | OpenResourceDialog showing identical favorites names. | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | libing wang <libingw> |
| Component: | Client | Assignee: | libing wang <libingw> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | susan |
| Version: | 0.4 | ||
| Target Milestone: | 0.4 RC1 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
libing wang
I am fixing this by not trimming the "path" property from a favorite. The reason is that the trimming assumes that "path" always contains "name" in it. In file name search, it is true because the path and name pair is always something like "foo/bar.coo" and "bar.coo". In favorites you can't really rely on this assumption because the "path" can be any URL. Even if it is a resource path, the favorite name can be changed that is not contained by "path" anymore. Unless we will have a readable parent name for a resource favorite, we should just show the "path" property as it is. Plus, this is really an extreme case. You can not really make two favorites with same name unless you rename it later. http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=0d8c608fa7eb44e5cf6496db1ae8e3f988043769 done. |