projectSettings.save();
	public ProjectTemplateStore(IProject project) {		fInstanceStore= JavaPlugin.getDefault().getCodeTemplateStore();		if (project == null) {			fProjectStore= null;		} else {			final IPreferenceStore projectSettings= new ScopedPreferenceStore(new ProjectScope(project), JavaUI.ID_PLUGIN);			fProjectStore= new TemplateStore(projectSettings, KEY) {				/*				 * Make sure we keep the id of added code templates - add removes				 * it in the usual add() method				 */				public void add(TemplatePersistenceData data) {					internalAdd(data);				}								public void save() throws IOException {										StringWriter output= new StringWriter();					TemplateReaderWriter writer= new TemplateReaderWriter();					writer.save(getTemplateData(false), output);										projectSettings.setValue(KEY, output.toString());				}			};		}	}