Package org.eclipse.wst.sse.ui.internal.contentassist

Examples of org.eclipse.wst.sse.ui.internal.contentassist.CompletionProposalCategory


   * @return the default {@link CompletionProposalCategory}s
   */
  private List getDefaultCategoriesUnchecked() {
    List included = new ArrayList();
    for (Iterator it = getProposalCategories().iterator(); it.hasNext();) {
      CompletionProposalCategory category = (CompletionProposalCategory) it.next();
      if (category.isIncludedOnDefaultPage(this.fContentTypeID) && category.hasComputers(fContentTypeID, fPartitionTypeID))
        included.add(category);
    }
    return included;
  }
View Full Code Here


   * should be displayed on their own content assist page
   */
  private List getSortedOwnPageCategories() {
    ArrayList sorted= new ArrayList();
    for (Iterator it= getProposalCategories().iterator(); it.hasNext();) {
      CompletionProposalCategory category= (CompletionProposalCategory) it.next();
      if (category.isDisplayedOnOwnPage(this.fContentTypeID) &&
          category.hasComputers(fContentTypeID, fPartitionTypeID)) {
       
        sorted.add(category);
      }
    }
    Collections.sort(sorted, PAGE_ORDER_COMPARATOR);
View Full Code Here

        KeySequence binding= getIterationBinding();
 
        // This may show the warning dialog if all categories are disabled
        resetCategoryIteration();
        for (Iterator it= StructuredContentAssistProcessor.this.getProposalCategories().iterator(); it.hasNext();) {
          CompletionProposalCategory cat= (CompletionProposalCategory) it.next();
          cat.sessionStarted();
        }
 
        fRepetition= 0;
        if (event.assistant instanceof IContentAssistantExtension2) {
          IContentAssistantExtension2 extension= (IContentAssistantExtension2) event.assistant;
View Full Code Here

     * @see org.eclipse.jface.text.contentassist.ICompletionListener#assistSessionEnded(org.eclipse.jface.text.contentassist.ContentAssistEvent)
     */
    public void assistSessionEnded(ContentAssistEvent event) {
      if (event.processor == StructuredContentAssistProcessor.this ||  (event.processor instanceof CompoundContentAssistProcessor && ((CompoundContentAssistProcessor)event.processor).containsProcessor(StructuredContentAssistProcessor.this))) {
        for (Iterator it= StructuredContentAssistProcessor.this.getProposalCategories().iterator(); it.hasNext();) {
          CompletionProposalCategory cat= (CompletionProposalCategory) it.next();
          cat.sessionEnded();
        }
 
        fCategoryIteration= null;
        fRepetition= -1;
        fIterationGesture= null;
View Full Code Here

    public PreferenceModel(List categories) {
      //need separate lists because they will be ordered differently
      this.fPageElements = new ArrayList();
      this.fDefaultPageElements = new ArrayList();
      for (Iterator it= categories.iterator(); it.hasNext();) {
        CompletionProposalCategory category= (CompletionProposalCategory) it.next();
        if (category.hasComputers()) {
          ModelElement elem = new ModelElement(category);
          fPageElements.add(elem);
          fDefaultPageElements.add(elem);
        }
      }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.sse.ui.internal.contentassist.CompletionProposalCategory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.