Project: appceleratorstudio
Issue TISTUD-1139: Should check and load the existing .project file before setting our required natures/builders when creating or importing a project we support
Currently in our project creation or import wizards, we always create a new project description using IWorkspace.newProjectDescription() and then set nature ids and builders on it, but there is a possibility that the directory we're creating the project in or importing from already has a .project file. The correct way would be: 1. Check if a .project file exists in the specified directory; 2. Load project description from the .project file using IWorkspace.loadProjectDescription(); 3. Check if the project description already contains the natures and builders that we need and only add the missing ones; 4. If the project description isn't modified because it already includes the natures and builders we need, there will not be a need to call IProject.setDescription(); otherwise, call the method to update the .project file. We should be able to capture most of the steps in an utility method.
Story points: 13