| Modifier and Type | Class and Description |
|---|---|
static class |
ContentAssistProcessorTestBuilder.Factory |
class |
ContentAssistProcessorTestBuilder.ProposalTester |
| Constructor and Description |
|---|
ContentAssistProcessorTestBuilder(com.google.inject.Injector injector,
ResourceLoadHelper helper) |
ContentAssistProcessorTestBuilder(ISetup setupClazz,
AbstractXtextTests tests) |
| Modifier and Type | Method and Description |
|---|---|
ContentAssistProcessorTestBuilder |
append(String model) |
protected ContentAssistProcessorTestBuilder |
appendAndApplyProposal(org.eclipse.jface.text.contentassist.ICompletionProposal proposal,
org.eclipse.jface.text.source.ISourceViewer sourceViewer,
String model,
int position) |
ContentAssistProcessorTestBuilder |
appendAndApplyProposal(String model) |
ContentAssistProcessorTestBuilder |
appendAndApplyProposal(String model,
int position) |
ContentAssistProcessorTestBuilder |
appendAndApplyProposal(String model,
int position,
String proposalString) |
ContentAssistProcessorTestBuilder |
appendAndApplyProposal(String model,
String proposal) |
ContentAssistProcessorTestBuilder |
appendNl(String model) |
ContentAssistProcessorTestBuilder |
appendSuffix(String suffix) |
ContentAssistProcessorTestBuilder |
applyProposal() |
protected ContentAssistProcessorTestBuilder |
applyProposal(org.eclipse.jface.text.contentassist.ICompletionProposal proposal) |
protected ContentAssistProcessorTestBuilder |
applyProposal(org.eclipse.jface.text.contentassist.ICompletionProposal proposal,
IXtextDocument document) |
ContentAssistProcessorTestBuilder |
applyProposal(int position) |
ContentAssistProcessorTestBuilder |
applyProposal(int position,
String proposalString) |
ContentAssistProcessorTestBuilder |
applyProposal(String proposal) |
ContentAssistProcessorTestBuilder |
assertCount(int completionProposalCount) |
ContentAssistProcessorTestBuilder |
assertCountAtCursorPosition(int completionProposalCount,
int cursorPosition) |
ContentAssistProcessorTestBuilder |
assertCursorIsAfter(String text) |
ContentAssistProcessorTestBuilder |
assertCursorIsBefore(String text) |
ContentAssistProcessorTestBuilder |
assertMatchString(String matchString) |
void |
assertNoProposalAtCursor(String unexpectedText)
Asserts the absence of a proposal with the given replacement string
at the cursor position
<|> in the currently configured model. |
ContentAssistProcessorTestBuilder.ProposalTester |
assertProposal(String expectedText)
Asserts the presence of at least single the proposal with the given replacement string
at the cursor position
cursorPosition in the currently configured model. |
ContentAssistProcessorTestBuilder.ProposalTester |
assertProposalAtCursor(String expectedText)
Asserts the presence of at least single the proposal with the given replacement string
at the cursor position
<|> in the currently configured model. |
ContentAssistProcessorTestBuilder.ProposalTester |
assertProposalDisplayedAtCursor(String displayString)
Asserts the presence of at least single the proposal with the given display string
at the cursor position
<|> in the currently configured model. |
ContentAssistProcessorTestBuilder |
assertText(String... expectedText) |
ContentAssistProcessorTestBuilder |
assertTextAtCursorPosition(int cursorPosition,
String... expectations) |
ContentAssistProcessorTestBuilder |
assertTextAtCursorPosition(String cursorPosition,
int offset,
String... expectedText) |
ContentAssistProcessorTestBuilder |
assertTextAtCursorPosition(String cursorPosition,
String... expectedText) |
protected ContentAssistProcessorTestBuilder |
clone(String model,
int offset) |
protected ContentAssistProcessorTestBuilder |
cloneWithSuffix(String postFix) |
org.eclipse.jface.text.contentassist.ICompletionProposal[] |
computeCompletionProposals() |
org.eclipse.jface.text.contentassist.ICompletionProposal[] |
computeCompletionProposals(int cursorPosition) |
protected org.eclipse.jface.text.contentassist.ICompletionProposal[] |
computeCompletionProposals(IXtextDocument xtextDocument,
int cursorPosition) |
protected org.eclipse.jface.text.contentassist.ICompletionProposal[] |
computeCompletionProposals(IXtextDocument xtextDocument,
int cursorPosition,
org.eclipse.swt.widgets.Shell shell) |
protected org.eclipse.jface.text.contentassist.ICompletionProposal[] |
computeCompletionProposals(IXtextDocument xtextDocument,
int cursorPosition,
XtextSourceViewerConfiguration configuration,
org.eclipse.jface.text.source.ISourceViewer sourceViewer) |
org.eclipse.jface.text.contentassist.ICompletionProposal[] |
computeCompletionProposals(String cursorPosition) |
org.eclipse.jface.text.contentassist.ICompletionProposal[] |
computeCompletionProposals(String currentModelToParse,
int cursorPosition) |
ContentAssistProcessorTestBuilder |
cursorBack(int times) |
ContentAssistProcessorTestBuilder |
expectContent(String expectation) |
protected org.eclipse.jface.text.contentassist.ICompletionProposal |
findProposal(String proposalString,
org.eclipse.jface.text.contentassist.ICompletionProposal[] proposals) |
<T> T |
get(Class<T> clazz) |
protected int |
getCursorPosition() |
protected IXtextDocument |
getDocument(String currentModelToParse) |
IXtextDocument |
getDocument(XtextResource xtextResource,
String model) |
protected String |
getFullTextToBeParsed() |
protected String |
getModel() |
org.eclipse.jface.text.contentassist.ICompletionProposal[] |
getProposalsAtCursorIndicator()
Computes all proposals at the cursor position
<|> in the currently configured model. |
protected String |
getProposedText(org.eclipse.jface.text.contentassist.ICompletionProposal completionProposal) |
protected org.eclipse.jface.text.source.ISourceViewer |
getSourceViewer(org.eclipse.swt.widgets.Shell shell,
IXtextDocument xtextDocument,
XtextSourceViewerConfiguration configuration) |
org.eclipse.jface.text.ITextViewer |
getSourceViewer(String currentModelToParse,
IXtextDocument xtextDocument) |
ContentAssistProcessorTestBuilder |
insert(String model)
Inserts the given text at the current cursor position.
|
ContentAssistProcessorTestBuilder |
insert(String model,
int cursorPosition) |
ContentAssistProcessorTestBuilder |
reset() |
List<String> |
toDisplayString(org.eclipse.jface.text.contentassist.ICompletionProposal[] proposals) |
String |
toString() |
protected String |
toString(org.eclipse.jface.text.contentassist.ICompletionProposal proposal) |
List<String> |
toString(org.eclipse.jface.text.contentassist.ICompletionProposal[] proposals) |
ContentAssistProcessorTestBuilder |
withDirtyState() |
public ContentAssistProcessorTestBuilder(ISetup setupClazz, AbstractXtextTests tests) throws Exception
Exceptionpublic ContentAssistProcessorTestBuilder(com.google.inject.Injector injector,
ResourceLoadHelper helper)
throws Exception
Exceptionpublic ContentAssistProcessorTestBuilder reset() throws Exception
Exceptionpublic ContentAssistProcessorTestBuilder append(String model) throws Exception
Exceptionpublic ContentAssistProcessorTestBuilder appendSuffix(String suffix) throws Exception
Exceptionpublic ContentAssistProcessorTestBuilder appendNl(String model) throws Exception
Exceptionpublic ContentAssistProcessorTestBuilder insert(String model) throws Exception
Exceptionpublic ContentAssistProcessorTestBuilder insert(String model, int cursorPosition) throws Exception
Exceptionpublic ContentAssistProcessorTestBuilder cursorBack(int times) throws Exception
Exceptionpublic ContentAssistProcessorTestBuilder appendAndApplyProposal(String model) throws Exception
Exceptionpublic ContentAssistProcessorTestBuilder appendAndApplyProposal(String model, String proposal) throws Exception
Exceptionpublic ContentAssistProcessorTestBuilder appendAndApplyProposal(String model, int position) throws Exception
Exceptionpublic ContentAssistProcessorTestBuilder appendAndApplyProposal(String model, int position, String proposalString) throws Exception
Exceptionprotected ContentAssistProcessorTestBuilder appendAndApplyProposal(org.eclipse.jface.text.contentassist.ICompletionProposal proposal, org.eclipse.jface.text.source.ISourceViewer sourceViewer, String model, int position) throws Exception
Exceptionpublic ContentAssistProcessorTestBuilder applyProposal() throws Exception
Exceptionpublic ContentAssistProcessorTestBuilder applyProposal(String proposal) throws Exception
Exceptionpublic ContentAssistProcessorTestBuilder applyProposal(int position) throws Exception
Exceptionpublic ContentAssistProcessorTestBuilder applyProposal(int position, String proposalString) throws Exception
Exceptionprotected org.eclipse.jface.text.contentassist.ICompletionProposal findProposal(String proposalString, org.eclipse.jface.text.contentassist.ICompletionProposal[] proposals)
protected ContentAssistProcessorTestBuilder applyProposal(org.eclipse.jface.text.contentassist.ICompletionProposal proposal) throws Exception
Exceptionprotected ContentAssistProcessorTestBuilder applyProposal(org.eclipse.jface.text.contentassist.ICompletionProposal proposal, IXtextDocument document) throws Exception
Exceptionpublic ContentAssistProcessorTestBuilder expectContent(String expectation)
public ContentAssistProcessorTestBuilder assertCount(int completionProposalCount) throws Exception
Exceptionpublic ContentAssistProcessorTestBuilder assertText(String... expectedText) throws Exception
Exceptionpublic ContentAssistProcessorTestBuilder.ProposalTester assertProposalAtCursor(String expectedText) throws Exception
<|> in the currently configured model.Exceptionpublic void assertNoProposalAtCursor(String unexpectedText) throws Exception
<|> in the currently configured model.Exceptionpublic org.eclipse.jface.text.contentassist.ICompletionProposal[] getProposalsAtCursorIndicator()
throws Exception
<|> in the currently configured model.Exceptionpublic ContentAssistProcessorTestBuilder.ProposalTester assertProposalDisplayedAtCursor(String displayString) throws Exception
<|> in the currently configured model.ExceptionassertProposalAtCursor(String)public ContentAssistProcessorTestBuilder.ProposalTester assertProposal(String expectedText) throws Exception
cursorPosition in the currently configured model.Exceptionpublic ContentAssistProcessorTestBuilder assertTextAtCursorPosition(String cursorPosition, String... expectedText) throws Exception
Exceptionpublic ContentAssistProcessorTestBuilder assertTextAtCursorPosition(String cursorPosition, int offset, String... expectedText) throws Exception
Exceptionpublic ContentAssistProcessorTestBuilder assertTextAtCursorPosition(int cursorPosition, String... expectations) throws Exception
Exceptionprotected String getProposedText(org.eclipse.jface.text.contentassist.ICompletionProposal completionProposal)
public ContentAssistProcessorTestBuilder assertMatchString(String matchString) throws Exception
Exceptionpublic ContentAssistProcessorTestBuilder assertCursorIsAfter(String text)
public ContentAssistProcessorTestBuilder assertCursorIsBefore(String text)
protected String getModel()
protected String getFullTextToBeParsed()
public List<String> toDisplayString(org.eclipse.jface.text.contentassist.ICompletionProposal[] proposals)
public List<String> toString(org.eclipse.jface.text.contentassist.ICompletionProposal[] proposals)
protected String toString(org.eclipse.jface.text.contentassist.ICompletionProposal proposal)
public ContentAssistProcessorTestBuilder assertCountAtCursorPosition(int completionProposalCount, int cursorPosition) throws Exception
Exceptionpublic org.eclipse.jface.text.contentassist.ICompletionProposal[] computeCompletionProposals(String currentModelToParse, int cursorPosition) throws Exception
Exceptionprotected org.eclipse.jface.text.contentassist.ICompletionProposal[] computeCompletionProposals(IXtextDocument xtextDocument, int cursorPosition) throws org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadLocationExceptionprotected org.eclipse.jface.text.contentassist.ICompletionProposal[] computeCompletionProposals(IXtextDocument xtextDocument, int cursorPosition, org.eclipse.swt.widgets.Shell shell) throws org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadLocationExceptionprotected org.eclipse.jface.text.contentassist.ICompletionProposal[] computeCompletionProposals(IXtextDocument xtextDocument, int cursorPosition, XtextSourceViewerConfiguration configuration, org.eclipse.jface.text.source.ISourceViewer sourceViewer) throws org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadLocationExceptionpublic ContentAssistProcessorTestBuilder withDirtyState() throws Exception
Exceptionprotected IXtextDocument getDocument(String currentModelToParse)
protected org.eclipse.jface.text.source.ISourceViewer getSourceViewer(org.eclipse.swt.widgets.Shell shell,
IXtextDocument xtextDocument,
XtextSourceViewerConfiguration configuration)
public org.eclipse.jface.text.contentassist.ICompletionProposal[] computeCompletionProposals(int cursorPosition)
throws Exception
Exceptionpublic org.eclipse.jface.text.contentassist.ICompletionProposal[] computeCompletionProposals(String cursorPosition) throws Exception
Exceptionpublic org.eclipse.jface.text.contentassist.ICompletionProposal[] computeCompletionProposals()
throws Exception
Exceptionpublic IXtextDocument getDocument(XtextResource xtextResource, String model)
public org.eclipse.jface.text.ITextViewer getSourceViewer(String currentModelToParse, IXtextDocument xtextDocument)
protected ContentAssistProcessorTestBuilder clone(String model, int offset) throws Exception
Exceptionprotected ContentAssistProcessorTestBuilder cloneWithSuffix(String postFix) throws Exception
Exceptionpublic <T> T get(Class<T> clazz)
protected int getCursorPosition()
Copyright © 2016. All Rights Reserved.