Package org.cfeclipse.cfml.editors.contentassist

Examples of org.cfeclipse.cfml.editors.contentassist.CFEContentAssistManager


            return CFMLPlugin.getDefault().getGlobalCAM();
        }
    if(this.lastRes == null)
        return CFMLPlugin.getDefault().getGlobalCAM();

    CFEContentAssistManager returnManager = null;
    //CFENature nature;       
   
    try {
        if(!ResourceUtils.hasNature(this.lastRes.getProject(),
            CFENature.NATURE_ID))
View Full Code Here


     *
     * @param natureIter Iterator of a collection of IContentAssistContributorNature's
     */
    private void refreshCAMFromList(Iterator natureIter)
    {
        this.docCAM = new CFEContentAssistManager();
        while(natureIter.hasNext())
        {
            CFEContentAssistManager currManager = ((IContentAssistContributorNature)natureIter.next()).getNatureCAM();
      Iterator currIter = currManager.getTagAssistors().iterator();
      while (currIter.hasNext()) {
        this.docCAM.registerTagAssist((IAssistContributor) currIter.next());
      }

      currIter = currManager.getAttributeAssistors().iterator();
      while (currIter.hasNext())
        this.docCAM.registerAttributeAssist((IAssistTagContributor) currIter.next());

      currIter = currManager.getValueAssistors().iterator();
      while (currIter.hasNext())
        this.docCAM.registerValueAssist((IAssistAttrValueContributor) currIter.next());

      currIter = currManager.getRootAssistors().iterator();
            while(currIter.hasNext())
            {
                Object currRoot = currIter.next();
                if(currRoot instanceof IAssistContributor)
                    this.docCAM.registerRootAssist((IAssistContributor)currRoot);
View Full Code Here

   
    private void refreshCAM() throws CoreException
    {
        if(this.docCAM == null)
        {
            this.docCAM = new CFEContentAssistManager();
            this.lastCAMRefresh = new Date(0)// Init last refresh date to the epoch
        }
        IProject project = this.lastRes.getProject();
        IProjectNature [] natures = ResourceUtils.getProjectNatures(project);
        ArrayList cacNatures = new ArrayList();
View Full Code Here

  /**
   * Returns a new Content Assist Manager
   *
   */
  public CFEContentAssistManager newCAM() {
    CFEContentAssistManager camInstance = new CFEContentAssistManager();
    CFMLTagAssist cfmlAssistor = new CFMLTagAssist(DictionaryManager.getDictionary(DictionaryManager.CFDIC));
    HTMLTagAssistContributor htmlAssistor = new HTMLTagAssistContributor(DictionaryManager
        .getDictionary(DictionaryManager.HTDIC));

    camInstance.registerRootAssist(new CFContentAssist());
    camInstance.registerRootAssist(new CFMLScopeAssist());
    camInstance.registerRootAssist(new CFMLArgumentAssist());
    CFMLFunctionCompletionProcessor cfscp = new CFMLFunctionCompletionProcessor();
    camInstance.registerRootAssist(cfscp);
    camInstance.registerRootAssist(new CFMLFunctionParamAssist());

    camInstance.registerRootAssist(new CFMLComponentAssist());
    // //finds the components in a project, removed as we might use a new
    // CFML Varscope parser
    // finds the arguments in a cfc that you are talking about
    camInstance.registerRootAssist(new CFMLVariableAssist());
    // template assist
    camInstance.registerRootAssist(new TemplateAssist());

    camInstance.registerTagAssist(cfmlAssistor);
    camInstance.registerAttributeAssist(cfmlAssistor);
    camInstance.registerValueAssist(cfmlAssistor);

    camInstance.registerTagAssist(htmlAssistor);
    camInstance.registerAttributeAssist(htmlAssistor);
    camInstance.registerValueAssist(htmlAssistor);

    camInstance.registerTagAssist(new CFMLScopeAssist());
    return camInstance;
  }
View Full Code Here

TOP

Related Classes of org.cfeclipse.cfml.editors.contentassist.CFEContentAssistManager

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.