Package org.objectstyle.wolips.wodclipse.core.document

Examples of org.objectstyle.wolips.wodclipse.core.document.WodFileDocumentProvider


      FileEditorInput wodInput = null;
      if (wodDocument == null) {
        IFile wodFile = cache.getWodEntry().getFile();
        if (wodFile != null) {
          wodInput = new FileEditorInput(cache.getWodEntry().getFile());
          wodProvider = new WodFileDocumentProvider();
          wodProvider.connect(wodInput);
          wodDocument = wodProvider.getDocument(wodInput);
          cache.getWodEntry().setDocument(wodDocument);
        }
      }
View Full Code Here


    }
  }

  public static void validateWodFile(IFile wodFile, LocalizedComponentsLocateResult locateResults, TypeCache typeCache, HtmlElementCache htmlCache) throws CoreException {
    FileEditorInput input = new FileEditorInput(wodFile);
    WodFileDocumentProvider provider = new WodFileDocumentProvider();
    provider.connect(input);
    try {
      IDocument document = provider.getDocument(input);
      WodModelUtils.validateWodDocument(document, locateResults, typeCache, htmlCache);
    }
    finally {
      provider.disconnect(input);
    }
  }
View Full Code Here

  @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);
      model = parse(document, updateCache);
    }
    finally {
      provider.disconnect(input);
    }
    return model;
  }
View Full Code Here

TOP

Related Classes of org.objectstyle.wolips.wodclipse.core.document.WodFileDocumentProvider

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.