Package com.google.gdt.eclipse.designer.model.property.css

Examples of com.google.gdt.eclipse.designer.model.property.css.ContextDescription


   * Checks if {@link UiBinderExternalContextDescription} is out of sync with its {@link IFile} and
   * then makes it sync.
   */
  private void syncExternalContextDescriptions() throws Exception {
    for (ListIterator<ContextDescription> I = m_contextDescriptions.listIterator(); I.hasNext();) {
      ContextDescription context = I.next();
      if (context instanceof UiBinderExternalContextDescription) {
        if (context.isStale()) {
          ContextDescription syncCopy =
              ((UiBinderExternalContextDescription) context).createSyncCopy();
          context.dispose();
          I.set(syncCopy);
        }
      }
View Full Code Here


    if (styleElement != null) {
      DocumentTextNode textNode = styleElement.getTextNode();
      String cssSource = textNode != null ? textNode.getRawText() : "";
      IDocument cssDocument = new Document(cssSource);
      CssEditContext cssContext = new CssEditContext(cssDocument);
      ContextDescription contextDescription =
          new UiBinderLocalContextDescription(m_context, styleElement, cssContext);
      m_contextDescriptions.add(contextDescription);
    }
  }
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.model.property.css.ContextDescription

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.