Package ro.sync.contentcompletion.editor
Interface InlineProposal
- All Known Subinterfaces:
IQuickAssistProposal<I>
,SAQuickAssistProposal
@API(type=INTERNAL,
src=PUBLIC)
public interface InlineProposal
Inline proposal presented in
InlineProposalsWindow
.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The item is of high importance.static final int
The item is of low importance.static final int
The item is of normal importance.static final int
The item is to be presented in the normal position in the list.static final int
The item is to be presented as the first item in the list.static final int
The item is not recommended to be used. -
Method Summary
Modifier and TypeMethodDescriptionint
Compares two items.Returns optional additional information about the proposal.int
Gets the importance attribute of the CCItem objectint
Used for rendering of the list only.Returns the string to be displayed in the list of completion proposals.Gets the string used by filters.
-
Field Details
-
PRESENT_NORMALLY
static final int PRESENT_NORMALLYThe item is to be presented in the normal position in the list.- See Also:
-
PRESENT_VERY_FIRST
static final int PRESENT_VERY_FIRSTThe item is to be presented as the first item in the list.- See Also:
-
UNRECOMMENDED_IMPORTANCE
static final int UNRECOMMENDED_IMPORTANCEThe item is not recommended to be used. The renderer can ignore it.- See Also:
-
LOW_IMPORTANCE
static final int LOW_IMPORTANCEThe item is of low importance.- See Also:
-
NORMAL_IMPORTANCE
static final int NORMAL_IMPORTANCEThe item is of normal importance.- See Also:
-
HIGH_IMPORTANCE
static final int HIGH_IMPORTANCEThe item is of high importance.- See Also:
-
-
Method Details
-
getStringForFilter
String getStringForFilter()Gets the string used by filters.- Returns:
- The string used by filters.
-
getDocumentation
String getDocumentation()Returns optional additional information about the proposal. The additional information will be presented to assist the user in deciding if the selected proposal is the desired choice.- Returns:
- the additional information or
null
-
getRenderString
String getRenderString()Returns the string to be displayed in the list of completion proposals.- Returns:
- the string to be displayed
-
getImportance
int getImportance()Gets the importance attribute of the CCItem object- Returns:
- The importance value
-
getPresentPosition
int getPresentPosition()Used for rendering of the list only.- Returns:
- Returns the presentPosition.
- See Also:
-
compareTo
Compares two items. IfnumericSort
is true the compare is done first by trying to convert the render strings to Double. If they are not numeric values then the compare is delegated to the render string. If the render string starts with '/' then it is considered to be greater than the other that does not begin with '/'. This is used for changing the order in the list.- Parameters:
other
- The item to be compared with.numericSort
- Iftrue
numeirc sort will be performed.- Returns:
- -1 if less, 0 if equal, 1 if greater.
-