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

Examples of org.objectstyle.wolips.eogenerator.core.model.EOModelReference


    List<EOModel> exceptModels = new LinkedList<EOModel>();
    exceptModels.add(targetModel);
    List<EOModelReference> modelReferences = EOGeneratorModel.createModelReferencesForModelGroup(modelGroup, exceptModels);
    File modelFolder = URLUtils.cheatAndTurnIntoFile(targetModel.getModelURL());
    if (modelFolder != null) {
      eogenModel.addModel(new EOModelReference(new Path(modelFolder.getAbsolutePath())));
    }
    if (includeRefModels) {
      eogenModel.setLoadModelGroup(Boolean.FALSE);
      for (EOModelReference modelReference : modelReferences) {
        eogenModel.addRefModel(modelReference);
View Full Code Here


    if (createModelGroup) {
      EOGeneratorModel modelGroupModel = EOGeneratorCreator.createDefaultModel(_parentResource.getProject());
      if (modelFolder != null) {
        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);
View Full Code Here

      else if ("-java14".equalsIgnoreCase(arg)) {
        eogeneratorModel.setJava14(true);
      }
      else if ("-generate".equalsIgnoreCase(arg)) {
        String modelName = argsList.get(++argNum);
        eogeneratorModel.addModel(new EOModelReference(new Path(modelName)));
      }
      else if ("-loadModelGroup".equalsIgnoreCase(arg)) {
        loadModelGroup = true;
      }
      else if ("-force".equalsIgnoreCase(arg)) {
        force = true;
      }
      else if ("-workingDir".equalsIgnoreCase(arg)) {
        argNum ++;
      }
      else if ("-config".equalsIgnoreCase(arg)) {
        argNum ++;
      }
      else if ("-stdout".equalsIgnoreCase(arg))
        useStdout = true;
      else {
        entityList.add(arg);
      }
    }

    if (eogeneratorModel.getModels() == null || eogeneratorModel.getModels().isEmpty()) {
      for (String modelPath : modelPaths) {
        eogeneratorModel.addModel(new EOModelReference(new Path(modelPath)));
      }
    }

    if (eogeneratorModel.getDestination() == null || eogeneratorModel.getModels().size() == 0) {
      System.out.println("veogen");
View Full Code Here

  }

  public void handleWoappResources(IResource resource, IProgressMonitor monitor, Map buildCache) {
    try {
      if (resource instanceof IContainer && resource.getName().endsWith(".eomodeld")) {
        EOModelReference modifiedModelReference = new EOModelReference(resource.getLocation());
        DefaultLocateResult result = new DefaultLocateResult();
        Locate locate = new Locate(new EOGenLocateScope(resource.getProject()), result);
        locate.locate();

        IResource[] eogenFiles = result.getResources();
View Full Code Here

      Object[] selectedContainers = containerDialog.getResult();
      if (selectedContainers != null && selectedContainers.length > 0) {
        IPath selectedPath = (IPath) selectedContainers[0];
        IFolder selectedFolder = project.getParent().getFolder(selectedPath);
        IPath modelPath = selectedFolder.getLocation();
        EOModelReference eoModel = new EOModelReference(modelPath);
        addModel(eoModel);
      }
    }
View Full Code Here

      // IFile eogenFile = editorInput.getFile();
      DirectoryDialog directoryDialog = new DirectoryDialog(getEditorSite().getShell());
      directoryDialog.setMessage("Select the Reference EOModel to add.");
      String selectedDirectory = directoryDialog.open();
      if (selectedDirectory != null) {
        EOModelReference eoModel = new EOModelReference(new Path(selectedDirectory));
        addModel(eoModel);
      }
    }
View Full Code Here

    public Image getColumnImage(Object element, int columnIndex) {
      return null;
    }

    public String getColumnText(Object element, int columnIndex) {
      EOModelReference model = (EOModelReference) element;
      String name = model.getPath(EOGeneratorFormPage.this.getModel().getProjectPath());
      return name;
    }
View Full Code Here

TOP

Related Classes of org.objectstyle.wolips.eogenerator.core.model.EOModelReference

Copyright © 2018 www.massapicom. 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.