Files
openide/platform/analysis-api/src/com/intellij/codeInspection/options/OptString.java
Tagir Valeev 4fb7bcbadb [inspections] Experimentally inject field names
GitOrigin-RevId: 8de92f5de8409806e67cb0e834cd01b24c06d044
2022-12-11 17:22:57 +00:00

20 lines
1.0 KiB
Java

// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.codeInspection.options;
import org.intellij.lang.annotations.Language;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* Represents an edit box to enter a string
*
* @param bindId identifier of binding variable used by inspection; the corresponding variable is expected to be string
* @param splitLabel label to display around the control
* @param width width of the control in approximate number of characters; if -1 then it will be determined automatically
* @param validator optional validator for content; can validate max-length or be something more complicated
* (e.g., validate that a string is a class-name which is a subclass of specific class)
*/
public record OptString(@Language("jvm-field-name") @NotNull String bindId, @NotNull LocMessage splitLabel,
@Nullable StringValidator validator, int width) implements OptControl {
}