Package org.eclipse.jface.text.formatter

Examples of org.eclipse.jface.text.formatter.MultiPassContentFormatter.format()


                //CFDocumentSetupParticipant.CFML_PARTITIONING,
        IDocumentExtension3.DEFAULT_PARTITIONING,
                IDocument.DEFAULT_CONTENT_TYPE);

        formatter.setMasterStrategy(new CFMLFormattingStrategy());
        formatter.format(doc, new Region(0, doc.getLength()));
  }

  /**
     * Format the text using the ant code formatter using the preferences
     * settings in the plug-in preference store.
View Full Code Here


            MultiPassContentFormatter pdtFormatter = new MultiPassContentFormatter(
                    IStructuredPartitioning.DEFAULT_STRUCTURED_PARTITIONING,
                    IHTMLPartitions.HTML_DEFAULT);
            pdtFormatter.setMasterStrategy(new StructuredFormattingStrategy(
                    new HTMLFormatProcessorImpl()));
            pdtFormatter.format(document, region);
        } else {
            StructuredTextMultiPassContentFormatter pdtFormatter = new StructuredTextMultiPassContentFormatter(
                    IStructuredPartitioning.DEFAULT_STRUCTURED_PARTITIONING,
                    IHTMLPartitions.HTML_DEFAULT);
            pdtFormatter.setMasterStrategy(new StructuredFormattingStrategy(
View Full Code Here

            StructuredTextMultiPassContentFormatter pdtFormatter = new StructuredTextMultiPassContentFormatter(
                    IStructuredPartitioning.DEFAULT_STRUCTURED_PARTITIONING,
                    IHTMLPartitions.HTML_DEFAULT);
            pdtFormatter.setMasterStrategy(new StructuredFormattingStrategy(
                    new TwigFormatProcessorImpl()));
            pdtFormatter.format(document, region);
            // pdtFormatter.format(document, 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.