Examples of WooModel


Examples of org.objectstyle.wolips.wodclipse.core.woo.WooModel

          viewer.update(event.getSource(), null);
        }
      }
    };
    final WooEditor wooEditor = (WooEditor) page.getEditor();
    final WooModel wooModel = wooEditor.getModel();
    wooModel.addPropertyChangeListener(displayGroupListener);
  }
View Full Code Here

Examples of org.objectstyle.wolips.wodclipse.core.woo.WooModel

 
  public WooModel getModel() {
    if (model == null) {
      IFile file = ((FileEditorInput) this.getEditorInput()).getFile();
      if (file.exists()) {
        model = new WooModel(file);
        model.parseModel();
      } else {
        model = new WooModel(this.getEditorInput());
        model.parseModel();
        model.setEncoding(getComponentCharset());
      }
    }
    return model;
View Full Code Here

Examples of org.objectstyle.wolips.wodclipse.core.woo.WooModel

  }

  @Override
  public void validate() throws Exception {
    setValidated(true);
    WooModel wooModel = getModel();
    if (wooModel != null) {
      WodParserCache cache = getCache();
      IJavaProject javaProject = cache.getJavaProject();
      IType componentType = cache.getComponentType();
      List<WodProblem> wodProblems = wooModel.getProblems(javaProject, componentType, WodParserCache.getTypeCache(), WodParserCache.getModelGroupCache());
      IFile wooFile = getFile();
      if (wooFile != null && wooFile.exists()) {
        for (WodProblem wodProblem : wodProblems) {
          WodModelUtils.createMarker(wooFile, wodProblem);
        }
        try {
          wooModel.loadModelFromStream(wooFile.getContents());
        }
        catch (Throwable e) {
          WodModelUtils.createMarker(wooFile, new WodProblem(e.getMessage(), null, 0, false));
        }
      }
View Full Code Here

Examples of org.objectstyle.wolips.wodclipse.core.woo.WooModel

    }
  }
 
  @Override
  public WooModel _parse(String contents) throws WooModelException {
    WooModel model = new WooModel(contents);
    model.setFile(getFile());
    return model;
  }
View Full Code Here

Examples of org.objectstyle.wolips.wodclipse.core.woo.WooModel

  public static IWodModel createWodModel(IFile wodFile, IDocument wodDocument) {
    return new DocumentWodModel(wodFile, wodDocument);
  }

  public static WooModel createWooModel(IDocument wooDocument) throws WooModelException {
    return new WooModel(wooDocument.get());
  }
View Full Code Here

Examples of org.objectstyle.wolips.wodclipse.core.woo.WooModel

  public static WooModel createWooModel(IDocument wooDocument) throws WooModelException {
    return new WooModel(wooDocument.get());
  }

  public static WooModel createWooModel(IFile wooFile) {
    return new WooModel(wooFile);
  }
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.