Package org.cfeclipse.cfml.dictionary

Examples of org.cfeclipse.cfml.dictionary.ScopeVar


           //Here we check what type these items are
           CompletionProposal proposal = null;
         
           if(scopeKey instanceof ScopeVar){
             //Lets find the help and assign some help to it
             ScopeVar sVar = (ScopeVar)scopeKey;
               
            scopeItem = scopeItem.substring(scopeItem.indexOf(".") + 1, scopeItem.length());
            
             proposal = new CompletionProposal(scopeItem.toString(),
                 state.getOffset(),
                        0,
                        scopeItem.toString().length(),
                        CFPluginImages.get(CFPluginImages.ICON_VALUE),
                        scopeItem.toString(),
                        null,
                        sVar.getHelp());
            
           } else {
             //Need to remove the  text that has already been entered (textSoFar)            
             String replacementString = scopeItem.toString().replace(prefix, "");            
             proposal = new CompletionProposal(scopeItem.toString(),
View Full Code Here


    while (i.hasNext()) {
       
        Object o = i.next();
       
        if (o instanceof ScopeVar) {
            ScopeVar s = (ScopeVar)o;
           
            StringBuffer sb = new StringBuffer(s.getName());
           
            String newValue = s.getName();
           
            // Eliminate anything that exactly matches the prefix or has a "." immediately after the end of current prefix.
            if (!newValue.equalsIgnoreCase(prefix)
                    && sb.charAt(prefix.length()) != '.') {
               
View Full Code Here

     
     
    }
    Object[] scopeIter = cfdic.getAllScopeVars().toArray();
    for (int i = 0; i < scopeIter.length; i++) {
      ScopeVar scope = (ScopeVar)scopeIter[i];
      ScopeItem sItem = new ScopeItem(scope);
      sItem.setDictionary(cfdic);
      scopes.addChild(sItem);
     
    }
View Full Code Here

TOP

Related Classes of org.cfeclipse.cfml.dictionary.ScopeVar

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.