Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338074 - [backport] NatureManager.isNatureEnabled() gives invalid result when called after project import.
Summary: [backport] NatureManager.isNatureEnabled() gives invalid result when called a...
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.4.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4.2+   Edit
Assignee: Malgorzata Janczarska CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 338055
Blocks:
  Show dependency tree
 
Reported: 2011-02-24 07:26 EST by Malgorzata Janczarska CLA
Modified: 2011-04-04 04:22 EDT (History)
1 user (show)

See Also:


Attachments
Ported fix (12.54 KB, patch)
2011-03-25 11:28 EDT, Malgorzata Janczarska CLA
no flags Details | Diff
'Ported fix' updated (14.17 KB, patch)
2011-03-29 08:01 EDT, Szymon Brandys CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Malgorzata Janczarska CLA 2011-02-24 07:26:50 EST
Backport of Bug 338055 to 3.4.2 stream.

NatureManager.isNatureEnabled() gives invalid result when called after project import. If NatureManager.isNatureEnabled() id called too early after project import it gives false result for new natures and the value is cached, so the invalid result is from not on returned until the project is reopened.
Comment 1 Malgorzata Janczarska CLA 2011-03-25 11:28:39 EDT
Created attachment 191911 [details]
Ported fix
Comment 2 Szymon Brandys CLA 2011-03-29 08:01:39 EDT
Created attachment 192081 [details]
'Ported fix' updated

Copyrights updated etc.
Comment 3 Szymon Brandys CLA 2011-03-29 08:14:06 EDT
'Ported fix updated' committed to R3_4_maintenance. Gosia, please verify.