public class StructuredDocumentProcessor<T>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
StructuredDocumentProcessor.RegionProcessor<T>
Base class for region adaptations.
|
| Constructor and Description |
|---|
StructuredDocumentProcessor(org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument document,
java.lang.String type,
java.util.function.BiFunction<org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument,org.eclipse.jface.text.ITypedRegion,? extends StructuredDocumentProcessor.RegionProcessor<T>> factory)
Constructs a document processor
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(T formatter)
Applies processor on document, using a given formatter
|
public StructuredDocumentProcessor(org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument document,
java.lang.String type,
java.util.function.BiFunction<org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument,org.eclipse.jface.text.ITypedRegion,? extends StructuredDocumentProcessor.RegionProcessor<T>> factory)
document - Document to be processedtype - Document type ID recognized by IContentTypeManager servicefactory - Factory for structured document processorpublic void apply(T formatter)