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

Bug 520239

Summary: Removing content-type doesn't remove editor associations
Product: [Eclipse Project] Platform Reporter: Mickael Istria <mistria>
Component: UIAssignee: Mickael Istria <mistria>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, kalyan_prasad
Version: 4.8   
Target Milestone: 4.8 M1   
Hardware: All   
OS: All   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=520205
https://git.eclipse.org/r/102062
https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=8721e8f2c0b9d45756b6434c28db32f9f71c2664
Whiteboard:
Bug Depends on:    
Bug Blocks: 519815    

Description Mickael Istria CLA 2017-07-27 04:33:11 EDT
Forked from Kalyan's discovery and analysis on bug 520205.

With ability to define content-type manually (bug 500892) and to associate editors with content-type (bug 519815), the following -new- workflow is broken:

1. Create a new content-type
2. Associate content-type with an unknown extension such as .lol
3. Associate this content-type with whatever editor (internal or external)
4. Create a new .lol file -> it opens with the specified editor: OK
5. Delete the content-type (directly, do *not* delete associations first)
6. Create a new .lol file: KO
   EXPECTED: it opens with the default system editor (or whatever editor specified by the unknownEditorStrategy)
   GOT: It opens with the previously defined editor

As noticed by Kalyan in bug 520205 comment 7
"""
Even after I delete the newly added content type, The association with the External Editor still exists. This association needs to be deleted once the content type is deleted
"""
Comment 1 Mickael Istria CLA 2017-07-27 04:41:59 EDT
I'll fix it ASAP for 4.8.M1
Comment 2 Eclipse Genie CLA 2017-07-27 06:24:01 EDT
New Gerrit change created: https://git.eclipse.org/r/102062
Comment 4 Kalyan Prasad Tatavarthi CLA 2017-08-03 02:15:14 EDT
Verified in the Integration Build I20170802-2000