Examples of IFormattingContext


Examples of org.eclipse.jface.text.formatter.IFormattingContext

        } else {
          region = new Region(0, getDocument().getLength());
        }
        if (fContentFormatter instanceof IContentFormatterExtension) {
          IContentFormatterExtension extension = (IContentFormatterExtension) fContentFormatter;
          IFormattingContext context = new FormattingContext();
          context.setProperty(
              FormattingContextProperties.CONTEXT_DOCUMENT,
              Boolean.TRUE);
          context.setProperty(
              FormattingContextProperties.CONTEXT_REGION, region);
          extension.format(getDocument(), context);
        } else {
          fContentFormatter.format(getDocument(), region);
        }
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.