|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.0) E13403-08 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InsightProvider
The 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.
This same interface is used for "smart" InsightProvider implementations that provide a filtered or smarter data view based on the editor's context (or whatever additional criteria an implementation may choose to use.) Implementations that provide a "smart" InsightProvider must fulfill the following requirements:
AbstractInsight
base implementation for more info. AbstractInsight
may toggle between the
updateInsightData(...)
methods of the regular and "smart"
InsightProvider's if the user alternately hits the two accelerators.
Implementations must be able to support such data toggling.InsightData data = regularProvider.getInsightData( editor );
InsightData newData = smartProvider.updateInsightData( editor, oldData );
InsightData newData = regularProvider.updateInsightData( editor, oldData );
AbstractInsight
,
Insight
,
InsightData
,
InsightView
Method Summary | |
---|---|
InsightData |
getInsightData(BasicEditorPane editorPane)
Performs a search for insight information using the document and caret position in the given editor pane. |
InsightView |
getInsightView()
Fetches an InsightView suitable for displaying data represented by an InsightData instance created by this provider. |
InsightData |
updateInsightData(BasicEditorPane editorPane,
InsightData lastData)
Requests an update of Insight information following a document or caret change in the editor. |
Method Detail |
---|
InsightData getInsightData(BasicEditorPane editorPane)
editorPane
- the editor for which we want to get Insight info
InsightData updateInsightData(BasicEditorPane editorPane, InsightData lastData)
editorPane
- the editor for which we want to update the infolastData
- the last InsightData found
InsightView getInsightView()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.0) E13403-08 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |