Project: aptanastudio
Issue APSTUD-7253: Primary nature changes do not apply
# Create a project # Go to the project -> properties -> Project Natures page # Make sure you have at least two natures there. In case there is only one, add another and restart this test. # Change the primary nature and hit ok (note: only change, do not remove or add any new nature) # The Studio will direct you that the project will be reopened after you hit the OK. h5. Expected: The selected primary nature should be active (visually visible as the project's icon, and also visually marked when going back to the property page as before). h5. Actual: The previous primary nature is still selected. [Notes] I've traced this back all the way to the Eclipse NatureManager#configureNatures method (line 174). {code} HashSet oldNatures = new HashSet(Arrays.asList(oldDescription.getNatureIds(false))); HashSet newNatures = new HashSet(Arrays.asList(newDescription.getNatureIds(false))); if (oldNatures.equals(newNatures)) return; {code} Since the natures were never really changed, eclipse now probably skips the re-write of the natures into the .project file. Primary natures only differ in order. Primary should appear first in the .project.
Story points: 8