@MimeLocation(subfolderName="SignatureHelpProviders") public interface SignatureInformationCollector
@
MimeRegistration(mimeType = "text/foo", service = SignatureInformationCollector.class)
public class FooSignatureInformationCollector implements SignatureInformationCollector {
...
}
Modifier and Type | Interface and Description |
---|---|
static class |
SignatureInformationCollector.Builder
Builder for
SignatureInformation instances. |
Modifier and Type | Method and Description |
---|---|
void |
collectSignatureInformation(Document doc,
int offset,
SignatureInformation.Context context,
java.util.function.Consumer<SignatureInformation> consumer)
Computes and collects signature information for a document at a given offset.
|
static SignatureInformationCollector.Builder |
newBuilder(String label,
boolean isActive)
Creates a builder for
SignatureInformation instances. |
void collectSignatureInformation(@NonNull Document doc, int offset, @NullAllowed SignatureInformation.Context context, @NonNull java.util.function.Consumer<SignatureInformation> consumer)
doc
- a text documentoffset
- an offset inside the text documentcontext
- an optional signature help contextconsumer
- an operation accepting collected signature informationstatic SignatureInformationCollector.Builder newBuilder(@NonNull String label, boolean isActive)
SignatureInformation
instances.label
- the label of the signature informationisActive
- true if the signature is active