Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 326355

Summary: Imported Content Type doesn't show in preferences until restart
Product: [Eclipse Project] Platform Reporter: Tim Mok <timothym>
Component: ResourcesAssignee: Platform-Resources-Inbox <platform-resources-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: john.camelon, sptaszkiewicz, Szymon.Brandys
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
test preference export none

Description Tim Mok CLA 2010-09-27 17:04:01 EDT
Build Identifier: 3.6 Helios

In the preferences, General -> Content Types, I add a new content type under the Text/XML node. I then export my preferences and can confirm the preference is saved in the file.

When I remove the content type I added or start a new workspace, I attempt to import the preferences. After import, I check if the content type is there and it is not. After a client restart, the preference is there. It seems that the preference dialog needs a refresh.

I ran a breakpoint on ContentTypeManager() and it creates the instance scope on client startup. My guess is it needs a refresh after the preference import.

Reproducible: Always
Comment 1 Tim Mok CLA 2010-09-27 17:06:14 EDT
Created attachment 179691 [details]
test preference export

added Content Type
*.sxml under Text/XML in Content Types preferences
Comment 2 Szymon Brandys CLA 2011-04-05 11:51:56 EDT
I can reproduce the issue.
Comment 3 Szymon Ptaszkiewicz CLA 2014-01-17 07:06:34 EST

*** This bug has been marked as a duplicate of bug 122217 ***