Class AceCompletionSnippetSegmentTabstopItem
java.lang.Object
cn.mapway.document.ui.client.component.ace.AceCompletionSnippetSegmentTabstopItem
- All Implemented Interfaces:
AceCompletionSnippetSegment
public class AceCompletionSnippetSegmentTabstopItem
extends Object
implements AceCompletionSnippetSegment
A segment of a completion snippet
-
Constructor Summary
ConstructorsConstructorDescriptionAceCompletionSnippetSegmentTabstopItem(String tabstopText) Text that should fit inside a tabstop, the first tabstop is selected after a substitution, and subsequent tabstops are moved between by pressing the tab button. -
Method Summary
Modifier and TypeMethodDescriptiongetPreparedText(int tabstopNumber) Gets the escaped and prepared textual representation of this snippet segment (backslash and dollar are escaped in general and the dollar is used for certain special tokens)
-
Constructor Details
-
AceCompletionSnippetSegmentTabstopItem
Text that should fit inside a tabstop, the first tabstop is selected after a substitution, and subsequent tabstops are moved between by pressing the tab button. Tabstops are identified using an id.- Parameters:
tabstopText- The literal text that makes up part of the tab stop. This does not need to be escaped, escaping will be handled automatically.
-
-
Method Details
-
getPreparedText
Description copied from interface:AceCompletionSnippetSegmentGets the escaped and prepared textual representation of this snippet segment (backslash and dollar are escaped in general and the dollar is used for certain special tokens)- Specified by:
getPreparedTextin interfaceAceCompletionSnippetSegment- Parameters:
tabstopNumber- the tab stop number- Returns:
- the prepared textual representation of this snippet segment
-