Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Schaefer2005-07-07 15:08:29 -0400
committerDoug Schaefer2005-07-07 15:08:29 -0400
commit856008f63f345b2218304b74b95bda933378b445 (patch)
treec72fbb0e6ec7f24f4a06a9fe68d38ad5c2a2cc5c
parent7425c7577181261adb111f01a144dd62d665fb69 (diff)
downloadorg.eclipse.cdt-856008f63f345b2218304b74b95bda933378b445.tar.gz
org.eclipse.cdt-856008f63f345b2218304b74b95bda933378b445.tar.xz
org.eclipse.cdt-856008f63f345b2218304b74b95bda933378b445.zip
Bug 98881 - Turned on auto activation for completion.
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/CCompletionProcessor2.java35
1 files changed, 9 insertions, 26 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/CCompletionProcessor2.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/CCompletionProcessor2.java
index 009f87f491..389168863d 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/CCompletionProcessor2.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/CCompletionProcessor2.java
@@ -48,6 +48,8 @@ public class CCompletionProcessor2 implements IContentAssistProcessor {
private IEditorPart editor;
private String errorMessage;
+
+ private char[] autoActivationChars;
// Property names
private String assistPrefix = "CEditor.contentassist"; //$NON-NLS-1$
@@ -59,9 +61,6 @@ public class CCompletionProcessor2 implements IContentAssistProcessor {
this.editor = editor;
}
- /* (non-Javadoc)
- * @see org.eclipse.jface.text.contentassist.IContentAssistProcessor#computeCompletionProposals(org.eclipse.jface.text.ITextViewer, int)
- */
public ICompletionProposal[] computeCompletionProposals(final ITextViewer viewer, int offset) {
try {
IWorkingCopy workingCopy = CUIPlugin.getDefault().getWorkingCopyManager().getWorkingCopy(editor.getEditorInput());
@@ -185,48 +184,32 @@ public class CCompletionProcessor2 implements IContentAssistProcessor {
}
}
- /* (non-Javadoc)
- * @see org.eclipse.jface.text.contentassist.IContentAssistProcessor#computeContextInformation(org.eclipse.jface.text.ITextViewer, int)
- */
public IContextInformation[] computeContextInformation(ITextViewer viewer,
int offset) {
// TODO Auto-generated method stub
return null;
}
- /* (non-Javadoc)
- * @see org.eclipse.jface.text.contentassist.IContentAssistProcessor#getCompletionProposalAutoActivationCharacters()
- */
public char[] getCompletionProposalAutoActivationCharacters() {
- // TODO Auto-generated method stub
- return null;
+ return autoActivationChars;
}
- /* (non-Javadoc)
- * @see org.eclipse.jface.text.contentassist.IContentAssistProcessor#getContextInformationAutoActivationCharacters()
- */
+ public void setCompletionProposalAutoActivationCharacters(char[] autoActivationChars) {
+ this.autoActivationChars = autoActivationChars;
+ }
+
public char[] getContextInformationAutoActivationCharacters() {
- // TODO Auto-generated method stub
- return null;
+ return null; // none
}
- /* (non-Javadoc)
- * @see org.eclipse.jface.text.contentassist.IContentAssistProcessor#getErrorMessage()
- */
- public String getErrorMessage() {
+ public String getErrorMessage() {
return errorMessage;
}
- /* (non-Javadoc)
- * @see org.eclipse.jface.text.contentassist.IContentAssistProcessor#getContextInformationValidator()
- */
public IContextInformationValidator getContextInformationValidator() {
return new CParameterListValidator();
}
- public void setCompletionProposalAutoActivationCharacters(char[] activationSet) {
- }
-
public void orderProposalsAlphabetically(boolean order) {
}

Back to the top