コード例 #1
0
 @Override
 protected void save(final UMLModel model, final String filePath) {
   try {
     this.modelLoader.saveData(model, filePath);
   } catch (DAOException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
 }
コード例 #2
0
  @Override
  protected UMLModel load(final String file) {

    IJavaProject javaProject = this.modelLoader.getContainer(file);

    UMLModel model = new UMLModel();
    try {
      model = this.modelLoader.loadData(file);

    } catch (DAOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }

    model.setJavaProject(javaProject);

    return model;
  }