content
The raw string content of the source.
StreamSource implementation for providing string-based content
to the NetBeans Diff API. It supports optional editability and live document
synchronization to trigger the Merger UI (red crosses and arrows).private final Stringprivate Documentprivate booleanprivate final StringEditorKit.private final Stringprivate final StringDiffStreamSource(String name,
String title,
String content,
String mimeType) createWriter(org.netbeans.api.diff.Difference[] conflicts) isEditable() returns true, this method
provides a StringWriter that syncs back to the document on close.org.openide.util.LookupgetName()getTitle()booleanclose, createSource, createSourcename - The name of the source.title - The title for the UI pane.content - The initial text content.mimeType - The MIME type for syntax highlighting.getName in class org.netbeans.api.diff.StreamSourcegetTitle in class org.netbeans.api.diff.StreamSourcegetMIMEType in class org.netbeans.api.diff.StreamSourcecreateReader in class org.netbeans.api.diff.StreamSourceIOExceptionisEditable() returns true, this method
provides a StringWriter that syncs back to the document on close.
This ensures that "Merge" actions in the UI are reflected in the live document.createWriter in class org.netbeans.api.diff.StreamSourceIOExceptionisEditable in class org.netbeans.api.diff.StreamSourcegetLookup in class org.netbeans.api.diff.StreamSource