private void updateComposerJson(IProgressMonitor monitor) throws IOException, CoreException, ParseException {
IFile composerJson = getProject().getFile("composer.json");
ComposerPackage composerPackage = new ComposerPackage(composerJson.getRawLocation().makeAbsolute().toFile());
String2KeywordsConverter keywordConverter = new String2KeywordsConverter(composerPackage);
if (settingsGroup.getVendor() != null && firstPage.nameGroup.getName() != null) {
composerPackage.setName(String.format("%s/%s", settingsGroup.getVendor(), firstPage.nameGroup.getName()));
}
if (settingsGroup.getDescription().length() > 0) {
composerPackage.setDescription(settingsGroup.getDescription());
}
if (settingsGroup.getLicense().length() > 0) {
composerPackage.getLicense().clear();
composerPackage.getLicense().add(settingsGroup.getLicense());
}
if (settingsGroup.getType().length() > 0) {
composerPackage.setType(settingsGroup.getType());
}
if (settingsGroup.getKeywords().length() > 0) {
keywordConverter.convert(settingsGroup.getKeywords());
}
String json = composerPackage.toJson();
ByteArrayInputStream bis = new ByteArrayInputStream(json.getBytes());