2013-10-31 3 views
0

EMF를 사용하여 하나의 eCore 모델을 다른 eCore 모델로 변환하고 있습니다. 두 번째 eCore 모델을 빌드하고 아래 코드를 사용하여 프로젝트에 저장하면 생성 된 모델이 표시되도록 프로젝트를 수동으로 새로 고쳐야합니다. EMF 개발에 수동 작업 단계가 필요하지 않도록 작업 공간/프로젝트를 새로 고치는 방법이 있습니까?EMF 저장 후 작업 영역 새로 고침 Resource [xText]

Resource s5Resource = s5resourceSet.createResource(URI.createURI(s5ModelFileName)); 

// Convert to s5 model 
s5Model = ConvertModelToS5Model.convert(model); 

s5Resource.getContents().add(s5Model); 

// Now save the content. 
try { 
    s5Resource.save(Collections.EMPTY_MAP); 
} catch (IOException e) { 
// TODO Auto-generated catch block 
    e.printStackTrace(); 
} 

답변