EMFTextAccessPlugin.registerConcreteSyntax(new ModelMetaInformation());
EMFTextAccessPlugin.registerConcreteSyntax(new OfficeMetaInformation());
repo = XmlFileSystemEclipsePluginRepository.getInstance();
XfsrOptionManager options = (XfsrOptionManager)repo.getRepositoryOptions();
options.setRepositoryAccessData(repositoryPath.toOSString());
IDeftProjectType type = getProjectType();
if(repo.projectExists(projectName)) {
List<Project> projects = repo.getProjects();
for (Project tempProject : projects) {
if(tempProject.getName().equals(projectName)) {
repo.removeFragment(tempProject);
// project = tempProject;
break;
}
}
}
project = repo.createNewProject(projectName, type.getId());
cfCat = project.getCategory(Category.SubType.CODE_FILES);
if(!repo.codeFileExists(cfCat, codeFileName)) {
codeFile = repo.importCodeFile(cfCat, filePath.toOSString(), codeFileName, parserID);
} else {
List<Fragment> children = cfCat.getChildren();