Represents a project settings validation warning with a human-readable description.
Example
// ProjectSettings.Warning is passed to ProjectSettingsPlugin.setIssues() // to display a non-blocking warning next to the settings entry. // Use alongside ProjectSettings.Error and ProjectSettings.NoIssue. exportclassWarningExampleSettingsextendsProjectSettingsPlugin { createWidget(parent: Widget): Widget { constroot = newWidget(parent); constlayout = newBoxLayout(); layout.setDirection(Direction.TopToBottom); root.layout = layout;
// Validate project configuration and report issues to the Project Settings UI. constissues: (ProjectSettings.Error | ProjectSettings.Warning | ProjectSettings.NoIssue)[] = []; if (targetVersionMismatch) { issues.push(newProjectSettings.Warning('Lens target version mismatch detected.')); } if (missingRequiredAsset) { issues.push(newProjectSettings.Error('Missing required asset reference.')); } if (issues.length === 0) { issues.push(newProjectSettings.NoIssue()); } this.setIssues(issues);
Represents a project settings validation warning with a human-readable description.
Example