Package org.objectstyle.wolips.bindings.wod

Examples of org.objectstyle.wolips.bindings.wod.IWodModel


  }

  @Override
  public void validate() throws Exception {
    setValidated(true);
    IWodModel wodModel = _getModel();
    if (wodModel != null) {
      WodParserCache cache = getCache();
      IJavaProject javaProject = cache.getJavaProject();
      IType componentType = cache.getComponentType();
      HtmlElementCache htmlElementCache = cache.getHtmlEntry().getHtmlElementCache();
      List<WodProblem> wodProblems = wodModel.getProblems(javaProject, componentType, WodParserCache.getTypeCache(), htmlElementCache);
      IFile wodFile = getFile();
      if (wodFile != null && wodFile.exists()) {
        IFile htmlFile = cache.getHtmlEntry().getFile();
        boolean createHtmlMarkers = htmlFile != null && htmlFile.exists();
        for (WodProblem wodProblem : wodProblems) {
View Full Code Here


  }

  @Override
  protected IWodModel _parse(IDocument document, boolean updateCache) {
    IFile wodFile = getFile();
    IWodModel model = WodModelUtils.createWodModel(wodFile, document);
    _setContents(document.get());
    return model;
  }
View Full Code Here

    return model;
  }

  @Override
  protected IWodModel _parse(IFile file, boolean updateCache) throws Exception {
    IWodModel model;
    FileEditorInput input = new FileEditorInput(file);
    WodFileDocumentProvider provider = new WodFileDocumentProvider();
    provider.connect(input);
    try {
      IDocument document = provider.getDocument(input);
View Full Code Here

    try {
      _cache.clearCache();
     
      List<ElementRename> elementRenames = new LinkedList<ElementRename>();
      Set<String> elementNames = new HashSet<String>();
      IWodModel wodModel = _cache.getWodEntry().getModel();
      for (IWodElement wodElement : wodModel.getElements()) {
        ElementRename elementRename = ElementRename.newUniqueName(wodModel, wodElement, elementNames, _forceRename);
        if (elementRename != null) {
          elementRenames.add(elementRename);
        }
      }
View Full Code Here

TOP

Related Classes of org.objectstyle.wolips.bindings.wod.IWodModel

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.