Bug 387472

Summary: Provide way to invalidate/flush contentType cached in ContentDescriptionManager
Product: [Eclipse Project] Platform Reporter: Heiko Böttger <heiko.boettger>
Component: ResourcesAssignee: Platform-Resources-Inbox <platform-resources-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: mistria
Version: 4.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Heiko Böttger CLA 2012-08-17 08:06:49 EDT
In our plugin we calculate the ContentType based on metadata. Since metadata may change without changing the file pointing to the metadata, the contenttype is never recalculated. There is a public method "invalidateCache" but no way to reach it. It seems like there is no support for a ContentDescription/ContentType Change Notification.
Comment 1 Mickael Istria CLA 2017-07-12 05:38:24 EDT
Renaming as a feature request as this is not exactly a bug.

In general, it seems to me that what you're doing is wrong regarding the concept of a content-type. A content-type should be only related to file name and file content. If you need some other things to sort out a content-type, then it means what you're dealing with isn't really a content-type but another concept which is specific of yours.
Let's keep this bug open for some time, but given that the user-story behind it seems to not be a "clean" one, we'll probably end up marking this one as WONTFIX.