org.eclipse.jface.text.contentassist.ContentAssistEvent Java Examples
The following examples show how to use
org.eclipse.jface.text.contentassist.ContentAssistEvent.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LangContentAssistProcessor.java From goclipse with Eclipse Public License 1.0 | 6 votes |
@Override public void assistSessionStarted(ContentAssistEvent event) { if(event.processor != LangContentAssistProcessor.this) return; invocationIteration = 0; isAutoActivation = event.isAutoActivated; if (event.assistant instanceof IContentAssistantExtension2) { IContentAssistantExtension2 extension = (IContentAssistantExtension2) event.assistant; KeySequence binding = getGroupingIterationBinding(); boolean repeatedModeEnabled = categories.size() > 1; setRepeatedModeStatus(extension, repeatedModeEnabled, binding); } listener_assistSessionStarted(); }
Example #2
Source File: ContentAssistProcessor.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 6 votes |
public void assistSessionEnded(ContentAssistEvent event) { if (event.processor != ContentAssistProcessor.this) return; for (CompletionProposalCategory cat : getCategoriesToNotify()) { cat.sessionEnded(); } fCategoryIteration= null; fRepetition= -1; fIterationGesture= null; if (event.assistant instanceof IContentAssistantExtension2) { IContentAssistantExtension2 extension= (IContentAssistantExtension2) event.assistant; extension.setShowEmptyList(false); extension.setRepeatedInvocationMode(false); extension.setStatusLineVisible(false); if (extension instanceof IContentAssistantExtension3) { IContentAssistantExtension3 ext3= (IContentAssistantExtension3) extension; ((ContentAssistant) ext3).setRepeatedInvocationTrigger(null); } } }
Example #3
Source File: RepeatedContentAssistProcessor.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
@Override public void assistSessionEnded(ContentAssistEvent event) { ModeAware proposalProvider = getModeAwareProposalProvider(); if (proposalProvider != null) proposalProvider.reset(); this.currentAssistant = null; }
Example #4
Source File: LangContentAssistProcessor.java From goclipse with Eclipse Public License 1.0 | 5 votes |
@Override public void assistSessionEnded(ContentAssistEvent event) { if(event.processor != LangContentAssistProcessor.this) return; invocationIteration = 0; listener_assistSessionEnded(); }
Example #5
Source File: ContentAssistProcessor.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
public void assistSessionStarted(ContentAssistEvent event) { if (event.processor != ContentAssistProcessor.this) return; fIterationGesture= getIterationGesture(); KeySequence binding= getIterationBinding(); // This may show the warning dialog if all categories are disabled setCategoryIteration(); for (CompletionProposalCategory cat : getCategoriesToNotify()) { cat.sessionStarted(); } fRepetition= 0; if (event.assistant instanceof IContentAssistantExtension2) { IContentAssistantExtension2 extension= (IContentAssistantExtension2) event.assistant; if (fCategoryIteration.size() == 1) { extension.setRepeatedInvocationMode(false); extension.setShowEmptyList(false); } else { extension.setRepeatedInvocationMode(true); extension.setStatusLineVisible(true); extension.setStatusMessage(createIterationMessage()); extension.setShowEmptyList(true); if (extension instanceof IContentAssistantExtension3) { IContentAssistantExtension3 ext3= (IContentAssistantExtension3) extension; ((ContentAssistant) ext3).setRepeatedInvocationTrigger(binding); } } } }
Example #6
Source File: ActiveCodeContentAssistProcessor.java From xds-ide with Eclipse Public License 1.0 | 5 votes |
@Override public void assistSessionRestarted(ContentAssistEvent e) { isAssistSessionRestarted = true; if (IS_DEBUG_PRINT) { System.out.println("assistSessionRestarted:::"); } }
Example #7
Source File: ActiveCodeContentAssistProcessor.java From xds-ide with Eclipse Public License 1.0 | 5 votes |
@Override public void assistSessionStarted(ContentAssistEvent e) { proposalCategoryIteration = 0; if (IS_DEBUG_PRINT) { System.out.println("assistSessionStarted:::"); } }
Example #8
Source File: RepeatedContentAssistProcessor.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
@Override public void assistSessionStarted(ContentAssistEvent event) { ModeAware proposalProvider = getModeAwareProposalProvider(); if (proposalProvider != null) proposalProvider.reset(); this.currentAssistant = (IContentAssistantExtension2) event.assistant; }
Example #9
Source File: XtextReconciler.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
@Override public void assistSessionStarted(ContentAssistEvent event) { IDocument document = textViewer.getDocument(); document.addPositionCategory(XTEXT_TEMPLATE_POS_CATEGORY); document.addPositionUpdater(templatePositionUpdater); sessionStarted = true; }
Example #10
Source File: XtextReconciler.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
@Override public void assistSessionEnded(ContentAssistEvent event) { sessionStarted = false; IDocument document = textViewer.getDocument(); document.removePositionUpdater(templatePositionUpdater); try { document.removePositionCategory(XTEXT_TEMPLATE_POS_CATEGORY); } catch (BadPositionCategoryException e) { log.debug(e.getMessage(), e); } resume(); }
Example #11
Source File: JsonContentAssistProcessor.java From KaiZen-OpenAPI-Editor with Eclipse Public License 1.0 | 4 votes |
@Override public void assistSessionEnded(ContentAssistEvent event) { resetScope(); }
Example #12
Source File: LangContentAssistProcessor.java From goclipse with Eclipse Public License 1.0 | 4 votes |
@Override public void assistSessionRestarted(ContentAssistEvent event) { invocationIteration = 0; }
Example #13
Source File: RepeatedContentAssistProcessor.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@Override public void assistSessionRestarted(ContentAssistEvent event) { ModeAware proposalProvider = getModeAwareProposalProvider(); if (proposalProvider != null) proposalProvider.reset(); }
Example #14
Source File: PydevConsoleCompletionProcessor.java From Pydev with Eclipse Public License 1.0 | 4 votes |
@Override public void assistSessionStarted(ContentAssistEvent event) { this.lastActivationCount = -1; //we have to start with templates because it'll start already cycling. startCycle(); }
Example #15
Source File: PydevConsoleCompletionProcessor.java From Pydev with Eclipse Public License 1.0 | 4 votes |
@Override public void assistSessionEnded(ContentAssistEvent event) { }
Example #16
Source File: ContentAssistProcessor.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 4 votes |
public void assistSessionRestarted(ContentAssistEvent event) { fRepetition= 0; }
Example #17
Source File: BaseTemplateCompletionProcessor.java From xds-ide with Eclipse Public License 1.0 | 4 votes |
@Override public void assistSessionRestarted(ContentAssistEvent event) { }
Example #18
Source File: JsonContentAssistProcessor.java From KaiZen-OpenAPI-Editor with Eclipse Public License 1.0 | 4 votes |
@Override public void assistSessionStarted(ContentAssistEvent event) { resetScope(); }
Example #19
Source File: CompletionProposalAdapter.java From statecharts with Eclipse Public License 1.0 | 4 votes |
public void assistSessionEnded(ContentAssistEvent event) { notifyPopupClosed(); }
Example #20
Source File: CompletionProposalAdapter.java From statecharts with Eclipse Public License 1.0 | 4 votes |
public void assistSessionStarted(ContentAssistEvent event) { notifyPopupOpened(); }
Example #21
Source File: ModulaContentAssistant.java From xds-ide with Eclipse Public License 1.0 | 4 votes |
@Override public void assistSessionEnded(ContentAssistEvent event) { lastSelectedProposal = null; }
Example #22
Source File: ModulaContentAssistant.java From xds-ide with Eclipse Public License 1.0 | 4 votes |
@Override public void assistSessionStarted(ContentAssistEvent event) { }
Example #23
Source File: BaseTemplateCompletionProcessor.java From xds-ide with Eclipse Public License 1.0 | 4 votes |
@Override public void assistSessionStarted(ContentAssistEvent event) { isAutoActivated = event.isAutoActivated; }
Example #24
Source File: ActiveCodeContentAssistProcessor.java From xds-ide with Eclipse Public License 1.0 | 4 votes |
@Override public void assistSessionEnded(ContentAssistEvent e) { if (IS_DEBUG_PRINT) { System.out.println("assistSessionEnded:::"); } }
Example #25
Source File: BaseTemplateCompletionProcessor.java From xds-ide with Eclipse Public License 1.0 | 4 votes |
@Override public void assistSessionEnded(ContentAssistEvent event) { }