|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtext.ui.editor.formatting.ContentFormatterFactory.ContentFormatter
public class ContentFormatterFactory.ContentFormatter
Constructor Summary | |
---|---|
ContentFormatterFactory.ContentFormatter()
|
Method Summary | |
---|---|
void |
format(org.eclipse.jface.text.IDocument document,
org.eclipse.jface.text.IRegion region)
Formats the given region of the specified document.The formatter may safely assume that it is the only subject that modifies the document at this point in time. |
org.eclipse.jface.text.formatter.IFormattingStrategy |
getFormattingStrategy(java.lang.String contentType)
Returns the formatting strategy registered for the given content type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContentFormatterFactory.ContentFormatter()
Method Detail |
---|
public void format(org.eclipse.jface.text.IDocument document, org.eclipse.jface.text.IRegion region)
org.eclipse.jface.text.formatter.IContentFormatter
format
in interface org.eclipse.jface.text.formatter.IContentFormatter
document
- the document to be formattedregion
- the region within the document to be formattedpublic org.eclipse.jface.text.formatter.IFormattingStrategy getFormattingStrategy(java.lang.String contentType)
org.eclipse.jface.text.formatter.IContentFormatter
getFormattingStrategy
in interface org.eclipse.jface.text.formatter.IContentFormatter
contentType
- the content type for which to look up the formatting strategy
null
if there is no such strategy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |