Package org.objectstyle.wolips.eomodeler.editors

Examples of org.objectstyle.wolips.eomodeler.editors.EOModelErrorDialog.open()


    IContainer parentContainer = (IContainer) _parentResource;
    IFolder existingModelFolder = parentContainer.getFolder(new Path(_modelName + ".eomodeld"));
    if (existingModelFolder.exists()) {
      failures.add(new EOModelVerificationFailure(null, "There's already a model in " + existingModelFolder.getLocation().toOSString() + ".", true, null));
      EOModelErrorDialog errors = new EOModelErrorDialog(Display.getDefault().getActiveShell(), failures);
      errors.open();
      return;
    }

    boolean createModelGroup = false;
    EOModelGroup modelGroup = new EOModelGroup();
View Full Code Here


      failures.clear();
      failures.add(new EOModelVerificationFailure(null, "Creating empty EOModelGroup for this model because " + e.getMessage(), true, e));
      modelGroup = new EOModelGroup();
      createModelGroup = true;
      EOModelErrorDialog errors = new EOModelErrorDialog(Display.getDefault().getActiveShell(), failures);
      errors.open();
    }

    EOModel model = new EOModel(_modelName);
    EODatabaseConfig databaseConfig = new EODatabaseConfig("Default");
    databaseConfig.setAdaptorName(_adaptorName);
View Full Code Here

        //IContainer parentContainer = (IContainer) _parentResource;
        File modelFolder = new File(modelContainerPath, modelName + ".eomodeld");
        if (modelFolder.exists()) {
          failures.add(new EOModelVerificationFailure(null, "There's already a model in " + modelFolder + ".", true, null));
          EOModelErrorDialog errors = new EOModelErrorDialog(Display.getDefault().getActiveShell(), failures);
          errors.open();
          return;
        }

        EOModelGroup modelGroup = new EOModelGroup();
        try {
View Full Code Here

        catch (Exception e) {
          failures.clear();
          failures.add(new EOModelVerificationFailure(null, "Creating empty EOModelGroup for this model because " + e.getMessage(), true, e));
          modelGroup = new EOModelGroup();
          EOModelErrorDialog errors = new EOModelErrorDialog(Display.getDefault().getActiveShell(), failures);
          errors.open();
        }

        try {
          EOModel model = new EOModel(modelName);
          modelGroup.addModel(model);
View Full Code Here

    }
    if (model != null) {
      Set<EOModelVerificationFailure> verifyFailures = new HashSet<EOModelVerificationFailure>();
      model.verify(verifyFailures);
      EOModelErrorDialog dialog = new EOModelErrorDialog(getWindow().getShell(), verifyFailures);
      dialog.open();
    }
  }
}
View Full Code Here

          File reverseEngineeredEOModelFolder = reverseEngineer.reverseEngineerWithTableNamesIntoModel(selectedTableNamesList);
          Set<EOModelVerificationFailure> failures = new HashSet<EOModelVerificationFailure>();
          model.importEntitiesFromModel(reverseEngineeredEOModelFolder.toURL(), failures);
          if (failures.size() > 0) {
            EOModelErrorDialog dialog = new EOModelErrorDialog(getWindow().getShell(), failures);
            dialog.open();
          }
          model.setReverseEngineered(true);
        }
      }
    } catch (Throwable e) {
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.