Package org.objectstyle.wolips.eogenerator.core.model

Examples of org.objectstyle.wolips.eogenerator.core.model.EOGeneratorModel.writeToFile()


        IFile eogenFile = _modelFile.getWorkspace().getRoot().getFileForLocation(new Path(eogenPath));
        for (int dupeNum = 0; eogenFile.exists(); dupeNum++) {
          eogenPath = eogenBasePath + dupeNum + extension;
          eogenFile = _modelFile.getWorkspace().getRoot().getFileForLocation(new Path(eogenPath));
        }
        eogenModel.writeToFile(eogenFile, null);
      }
      if (!failures.isEmpty()) {
        Display.getDefault().asyncExec(new Runnable() {
          public void run() {
            new EOModelErrorDialog(new Shell(), failures).open();
View Full Code Here


    }
    IContainer container = (IContainer) resource;
    final IFile file = container.getFile(new Path(fileName));
    try {
      EOGeneratorModel model = EOGeneratorCreator.createDefaultModel(container.getProject());
      model.writeToFile(file, monitor);
    } catch (IOException e) {
      e.printStackTrace();
    }
    monitor.worked(1);
    monitor.setTaskName("Opening file for editing...");
View Full Code Here

    }
    IContainer container = (IContainer) resource;
    final IFile file = container.getFile(new Path(fileName));
    try {
      EOGeneratorModel model = EOGeneratorCreator.createDefaultModel(container.getProject());
      model.writeToFile(file, monitor);
    } catch (IOException e) {
      e.printStackTrace();
    }
    monitor.worked(1);
    monitor.setTaskName("Opening file for editing...");
View Full Code Here

      if (eogenFile.exists()) {
        for (int dupeNum = 1; !eogenFile.exists(); dupeNum++) {
          eogenFile = parentContainer.getFile(new Path(baseName + dupeNum + ".eogen"));
        }
      }
      eogenModel.writeToFile(eogenFile, monitor);
    }
    parentContainer.refreshLocal(IResource.DEPTH_INFINITE, monitor);

    if (createModelGroup) {
      EOGeneratorModel modelGroupModel = EOGeneratorCreator.createDefaultModel(_parentResource.getProject());
View Full Code Here

        Path modelPath = new Path(modelFolderFile.getAbsolutePath());
        EOModelReference modelReference = new EOModelReference(modelPath);
        modelGroupModel.addModel(modelReference);
      }
      IFile modelGroupFile = parentContainer.getFile(new Path(baseName + ".eomodelgroup"));
      modelGroupModel.writeToFile(modelGroupFile, monitor);
      _page.setResourceToReveal(modelGroupFile);
    } else {
      _page.setResourceToReveal(modelFolder.findMember("index.eomodeld"));
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.