MainPopupStep

private inner class MainPopupStep(val templatesOnly: Boolean) : TemplateJTree.AddButton.AbstractPopupStep(source)

The top-level PopupStep, which includes the default templates and various reference types.

Parameters

templatesOnly

true if and only if non-Template schemes cannot be inserted

Constructors

Link copied to clipboard
constructor(templatesOnly: Boolean)

Properties

Link copied to clipboard
private val templatesOnly: Boolean

Functions

Link copied to clipboard
open override fun getSeparatorAbove(value: Scheme?): ListSeparator?

Returns a separator if value should be preceded by a separator, or null otherwise.

Link copied to clipboard
open override fun hasSubstep(value: Scheme?): Boolean

Returns true if and only if value equals the Template or TemplateReference entry.

Link copied to clipboard
open override fun isSelectable(value: Scheme?): Boolean

Returns true if and only if value is a Template or templatesOnly is false.

Link copied to clipboard
open override fun onChosen(value: Scheme?, finalChoice: Boolean): PopupStep<out Any>?

Inserts value into the tree.