Java 类org.eclipse.jface.text.contentassist.ContentAssistEvent 实例源码

项目:eclipse-batch-editor    文件:BatchEditorSimpleWordContentAssistProcessor.java   
@Override
public void assistSessionStarted(ContentAssistEvent event) {
    simpleWordCompletion.reset();

    BatchEditorPreferences preferences = BatchEditorPreferences.getInstance();
    boolean addKeyWords = preferences.getBooleanPreference(P_CODE_ASSIST_ADD_KEYWORDS);
    boolean addSimpleWords = preferences.getBooleanPreference(P_CODE_ASSIST_ADD_SIMPLEWORDS);

    if (addSimpleWords) {
        simpleWordCompletion.setWordListBuilder(WORD_LIST_BUILDER);
    } else {
        simpleWordCompletion.setWordListBuilder(NO_WORD_BUILDER);
    }
    if (addKeyWords) {
        addAllBatchKeyWords();
    }
}
项目:eclipse-bash-editor    文件:BashEditorSimpleWordContentAssistProcessor.java   
@Override
public void assistSessionStarted(ContentAssistEvent event) {
    simpleWordCompletion.reset();

    BashEditorPreferences preferences = BashEditorPreferences.getInstance();
    boolean addKeyWords = preferences.getBooleanPreference(P_CODE_ASSIST_ADD_KEYWORDS);
    boolean addSimpleWords = preferences.getBooleanPreference(P_CODE_ASSIST_ADD_SIMPLEWORDS);

    if (addSimpleWords) {
        simpleWordCompletion.setWordListBuilder(WORD_LIST_BUILDER);
    } else {
        simpleWordCompletion.setWordListBuilder(NO_WORD_BUILDER);
    }
    if (addKeyWords) {
        addAllBashKeyWords();
    }
}
项目:Eclipse-Postfix-Code-Completion    文件:ContentAssistProcessor.java   
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);
        }
    }
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:ContentAssistProcessor.java   
public void assistSessionEnded(ContentAssistEvent event) {
    if (event.processor != ContentAssistProcessor.this)
        return;

    for (Iterator<CompletionProposalCategory> it= getCategoriesToNotify().iterator(); it.hasNext();) {
        CompletionProposalCategory cat= it.next();
        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);
        }
    }
}
项目:goclipse    文件:LangContentAssistProcessor.java   
@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();
}
项目:egradle    文件:GradleContentAssistProcessor.java   
@Override
public void assistSessionStarted(ContentAssistEvent event) {
    useCacheBecauseCodeAssistSessionOngoing = false;
    if (DEBUG) {
        debugCacheState("assistSessionStarted");
    }

}
项目:egradle    文件:GradleContentAssistProcessor.java   
@Override
public void assistSessionEnded(ContentAssistEvent event) {
    useCacheBecauseCodeAssistSessionOngoing = false;
    if (DEBUG) {
        debugCacheState("assistSessionEnded");
    }
}
项目:Eclipse-Postfix-Code-Completion    文件:ContentAssistProcessor.java   
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);
            }
        }

    }
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:ContentAssistProcessor.java   
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 (Iterator<CompletionProposalCategory> it= getCategoriesToNotify().iterator(); it.hasNext();) {
        CompletionProposalCategory cat= it.next();
        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);
            }
        }

    }
}
项目:goclipse    文件:LangContentAssistProcessor.java   
@Override
public void assistSessionEnded(ContentAssistEvent event) {
    if(event.processor != LangContentAssistProcessor.this)
        return;

    invocationIteration = 0;

    listener_assistSessionEnded();
}
项目:eclipse-batch-editor    文件:BatchEditorSimpleWordContentAssistProcessor.java   
@Override
public void assistSessionEnded(ContentAssistEvent event) {
    simpleWordCompletion.reset();// clean up...
}
项目:eclipse-bash-editor    文件:BashEditorSimpleWordContentAssistProcessor.java   
@Override
public void assistSessionEnded(ContentAssistEvent event) {
    simpleWordCompletion.reset();// clean up...
}
项目:bts    文件:RepeatedContentAssistProcessor.java   
public void assistSessionStarted(ContentAssistEvent event) {
    ModeAware proposalProvider = getModeAwareProposalProvider();
    if (proposalProvider != null)
        proposalProvider.reset();
    this.currentAssistant = (IContentAssistantExtension2) event.assistant;
}
项目:bts    文件:RepeatedContentAssistProcessor.java   
public void assistSessionEnded(ContentAssistEvent event) {
    ModeAware proposalProvider = getModeAwareProposalProvider();
    if (proposalProvider != null)
        proposalProvider.reset();
    this.currentAssistant = null;
}
项目:bts    文件:RepeatedContentAssistProcessor.java   
public void assistSessionRestarted(ContentAssistEvent event) {
    ModeAware proposalProvider = getModeAwareProposalProvider();
    if (proposalProvider != null)
        proposalProvider.reset();
}
项目:bts    文件:XtextReconciler.java   
public void assistSessionStarted(ContentAssistEvent event) {
    sessionStarted = true;
}
项目:bts    文件:XtextReconciler.java   
public void assistSessionEnded(ContentAssistEvent event) {
    sessionStarted = false;
    resume();
}
项目:statecharts    文件:CompletionProposalAdapter.java   
public void assistSessionStarted(ContentAssistEvent event) {
    notifyPopupOpened();
}
项目:statecharts    文件:CompletionProposalAdapter.java   
public void assistSessionEnded(ContentAssistEvent event) {
    notifyPopupClosed();
}
项目:KaiZen-OpenAPI-Editor    文件:JsonContentAssistProcessor.java   
@Override
public void assistSessionStarted(ContentAssistEvent event) {
    resetScope();
}
项目:KaiZen-OpenAPI-Editor    文件:JsonContentAssistProcessor.java   
@Override
public void assistSessionEnded(ContentAssistEvent event) {
    resetScope();
}
项目:brainfuck    文件:CompletionProposalToggler.java   
@Override
public void assistSessionRestarted(ContentAssistEvent event) {
    this.activeProcessor = this.templateProcessor;
    this.assistant = (IContentAssistantExtension2) event.assistant;
    this.assistant.setStatusMessage("Press Ctrl-Space to show Keyword Proposals");
}
项目:brainfuck    文件:CompletionProposalToggler.java   
@Override
public void assistSessionStarted(ContentAssistEvent event) {
    this.assistSessionRestarted(event);
}
项目:brainfuck    文件:CompletionProposalToggler.java   
@Override
public void assistSessionEnded(ContentAssistEvent event) {
    this.assistSessionRestarted(event);
}
项目:PDFReporter-Studio    文件:CompletionProposalAdapter.java   
public void assistSessionStarted(ContentAssistEvent event) {
    notifyPopupOpened();
}
项目:PDFReporter-Studio    文件:CompletionProposalAdapter.java   
public void assistSessionEnded(ContentAssistEvent event) {
    notifyPopupClosed();
}
项目:Eclipse-Postfix-Code-Completion    文件:ContentAssistProcessor.java   
public void assistSessionRestarted(ContentAssistEvent event) {
    fRepetition= 0;
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:ContentAssistProcessor.java   
public void assistSessionRestarted(ContentAssistEvent event) {
    fRepetition= 0;
}
项目:Pydev    文件:PydevConsoleCompletionProcessor.java   
@Override
public void assistSessionEnded(ContentAssistEvent event) {
}
项目:Pydev    文件:PydevConsoleCompletionProcessor.java   
@Override
public void assistSessionStarted(ContentAssistEvent event) {
    this.lastActivationCount = -1;
    //we have to start with templates because it'll start already cycling.
    startCycle();
}
项目:goclipse    文件:LangContentAssistProcessor.java   
@Override
public void assistSessionRestarted(ContentAssistEvent event) {
    invocationIteration = 0;
}
项目:mule-tooling-incubator    文件:MulePropertiesContentAssistant.java   
@Override
public void assistSessionStarted(ContentAssistEvent event) {
    suggestions = UIUtils.getContributedSuggestions(currentFile);
}
项目:mule-tooling-incubator    文件:MulePropertiesContentAssistant.java   
@Override
public void assistSessionEnded(ContentAssistEvent event) {
    suggestions = null;
}
项目:mule-tooling-incubator    文件:GradleScriptCompletionProcessor.java   
@Override
public void assistSessionStarted(ContentAssistEvent event) {
    // TODO Auto-generated method stub

}
项目:mule-tooling-incubator    文件:GradleScriptCompletionProcessor.java   
@Override
public void assistSessionEnded(ContentAssistEvent event) {
    currentProposals = null;
}