public interface SmartInsightProvider extends InsightProvider
InsightProvider
interface describes the public API
available for the portion of Insight responsible for looking up
Insight assistance information for the user. The search is based
on the current caret position in the editor, the data of the
document near the caret (and the document type.) Results of the search for Insight information is returned by an InsightData instance, and displayed within an InsightView (also created by this class.)
Currently, this implementation is limited to a single view for a given provider.
Insight
,
InsightData
,
InsightView
Modifier and Type | Method and Description |
---|---|
InsightData |
getInsightData(BasicEditorPane editorPane,
boolean isSmart)
Performs a search for insight information using the document
and caret position in the given editor pane.
|
InsightData |
updateInsightData(BasicEditorPane editorPane,
InsightData lastData,
boolean isSmart)
Requests an update of Insight information following a document
or caret change in the editor.
|
getInsightData, getInsightView, updateInsightData
InsightData getInsightData(BasicEditorPane editorPane, boolean isSmart)
editorPane
- the editor for which we want to get Insight infoisSmart
- ask for smart insight or notInsightData updateInsightData(BasicEditorPane editorPane, InsightData lastData, boolean isSmart)
editorPane
- the editor for which we want to update the infolastData
- the last InsightData foundisSmart
- ask for smart insight or not