|
SWT LPEX v3.0.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.lpex.alef.contentassist.ContentAssistant
An LPEX-based implementation of the IContentAssistant interface. Usually, clients instantiate this class and configure it before using it.
Field Summary | |
---|---|
static int | LAYOUT_CONTEXT_INFO_POPUP
The presentation type for the context information hover . |
static int | LAYOUT_CONTEXT_SELECTOR
The presentation type for the context selection popup. |
static int | LAYOUT_PROPOSAL_SELECTOR
The presentation type for the proposal selection popup. |
static String | STORE_SIZE_X
Dialog store constants. |
static String | STORE_SIZE_Y
|
static int | WIDGET_PRIORITY
The popup priority: > linked position proposals and hover popups. |
Fields inherited from interface com.ibm.lpex.alef.contentassist.IContentAssistant |
---|
CONTEXT_INFO_ABOVE, CONTEXT_INFO_BELOW, PROPOSAL_OVERLAY, PROPOSAL_REMOVE, PROPOSAL_STACKED |
Constructor Summary | |
---|---|
ContentAssistant()
Create a new content assistant. |
Method Summary | |
---|---|
protected void | contextInformationClosed()
Callback to signal this content assistant that the presentation of the context information has been stopped. |
void | enableAutoActivation(boolean enabled)
Enable the content assistant's auto activation mode. |
void | enableAutoInsert(boolean enabled)
Enable the content assistant's auto insertion mode. |
IContentAssistProcessor | getContentAssistProcessor(String contentType)
Return the content assist processor which was registered to be used for the given content type. |
String | getDocumentPartitioning()
Returns the document partitioning this content assistant is using. |
boolean | hasProposalPopupFocus()
Returns whether the content assistant proposal popup has the focus. |
protected void | hide()
Hides any open popups. |
void | install(org.eclipse.jface.text.ITextViewer textViewer)
Install content-assist support on the given LpexTextViewer. |
boolean | requestWidgetToken(org.eclipse.jface.text.IWidgetTokenOwner owner)
The given widget token owner requests the widget token from this token keeper. |
boolean | requestWidgetToken(org.eclipse.jface.text.IWidgetTokenOwner owner,
int priority)
The given widget token owner requests the widget token from this token keeper. |
void | setAutoActivationDelay(int delay)
Set the delay after which the content assistant is automatically invoked if the cursor is behind an auto activation character. |
void | setContentAssistProcessor(IContentAssistProcessor processor,
String contentType)
Register a given content assist processor for a particular content type. |
void | setContextInformationPopupBackground(org.eclipse.swt.graphics.Color background)
Set the context information popup's background color. |
void | setContextInformationPopupForeground(org.eclipse.swt.graphics.Color foreground)
Set the context information popup's foreground color. |
void | setContextInformationPopupOrientation(int orientation)
Set the context information popup's orientation. |
void | setContextSelectorBackground(org.eclipse.swt.graphics.Color background)
Set the context selector's background color. |
void | setContextSelectorForeground(org.eclipse.swt.graphics.Color foreground)
Set the context selector's foreground color. |
void | setDocumentPartitioning(String partitioning)
Sets the document partitioning this content assistant is using. |
void | setInformationControlCreator(org.eclipse.jface.text.IInformationControlCreator creator)
Set the information control creator for the additional information control. |
void | setProposalPopupOrientation(int orientation)
Set the proposal popups' orientation. |
void | setProposalSelectorBackground(org.eclipse.swt.graphics.Color background)
Set the proposal selector's background color. |
void | setProposalSelectorForeground(org.eclipse.swt.graphics.Color foreground)
Set the proposal's foreground color. |
String | showContextInformation()
Show context information for the content at the viewer's cursor position. |
String | showPossibleCompletions()
Show all possible completions of the content at the viewer's cursor position. |
String | showProposals(boolean autoActivated)
Bring up the proposals window. |
void | uninstall()
Uninstall content-assist support from the text viewer it was previously installed on. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String STORE_SIZE_X
public static final String STORE_SIZE_Y
public static final int LAYOUT_PROPOSAL_SELECTOR
public static final int LAYOUT_CONTEXT_SELECTOR
public static final int LAYOUT_CONTEXT_INFO_POPUP
public static final int WIDGET_PRIORITY
Constructor Detail |
public ContentAssistant()
Method Detail |
public void setDocumentPartitioning(String partitioning)
public String getDocumentPartitioning()
public void setContentAssistProcessor(IContentAssistProcessor processor, String contentType)
public IContentAssistProcessor getContentAssistProcessor(String contentType)
public void enableAutoActivation(boolean enabled)
public void enableAutoInsert(boolean enabled)
public void setAutoActivationDelay(int delay)
public void setProposalPopupOrientation(int orientation)
public void setContextInformationPopupOrientation(int orientation)
public void setContextInformationPopupBackground(org.eclipse.swt.graphics.Color background)
public void setContextInformationPopupForeground(org.eclipse.swt.graphics.Color foreground)
public void setProposalSelectorBackground(org.eclipse.swt.graphics.Color background)
public void setProposalSelectorForeground(org.eclipse.swt.graphics.Color foreground)
public void setContextSelectorBackground(org.eclipse.swt.graphics.Color background)
public void setContextSelectorForeground(org.eclipse.swt.graphics.Color foreground)
public void setInformationControlCreator(org.eclipse.jface.text.IInformationControlCreator creator)
public void install(org.eclipse.jface.text.ITextViewer textViewer)
public void uninstall()
public String showPossibleCompletions()
The implementation of this method calls showProposals(false).
public String showProposals(boolean autoActivated)
Called:
protected void contextInformationClosed()
public String showContextInformation()
public boolean requestWidgetToken(org.eclipse.jface.text.IWidgetTokenOwner owner)
public boolean requestWidgetToken(org.eclipse.jface.text.IWidgetTokenOwner owner, int priority)
The general contract is that the receiver should release the token if priority exceeds the receiver's priority.
protected void hide()
public boolean hasProposalPopupFocus()
|
SWT LPEX v3.0.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |