Examples of WodCompletionProposal


Examples of org.objectstyle.wolips.wodclipse.core.completion.WodCompletionProposal

        Set<WodCompletionProposal> proposals = new HashSet<WodCompletionProposal>();
        WodCompletionUtils.fillInElementTypeCompletionProposals(javaProject, partialElementType, 0, partialElementType.length(), proposals, false, null);
        for (TagShortcut tagShortcut : _cache.getTagShortcuts()) {
          String shortcut = tagShortcut.getShortcut();
          if (shortcut.startsWith(partialElementType.toLowerCase())) {
            proposals.add(new WodCompletionProposal(partialElementType, 0, partialElementType.length(), shortcut));
          }
        }
        if (!proposals.isEmpty()) {
          tagInfos = new LinkedList<TagInfo>();
          for (WodCompletionProposal proposal : proposals) {
View Full Code Here

Examples of org.objectstyle.wolips.wodclipse.core.completion.WodCompletionProposal

            if (validValues != null) {
              String lowercaseBindingValue = bindingValue.toLowerCase();
              for (String validValue : validValues) {
                String lowercaseValidValue = validValue.toLowerCase();
                if (lowercaseValidValue.toLowerCase().startsWith(lowercaseBindingValue) || (lowercaseValidValue.startsWith("\"") && lowercaseValidValue.substring(1).toLowerCase().startsWith(lowercaseBindingValue))) {
                  proposals.add(new WodCompletionProposal(bindingValue, 0, bindingValue.length(), validValue));
                }
              }
            }
          }
          catch (Exception e) {
View Full Code Here

Examples of org.objectstyle.wolips.wodclipse.core.completion.WodCompletionProposal

              if (validValues != null) {
                String partialToken = WodCompletionUtils.partialToken(token, tokenOffset, offset);
                String lowercasePartialToken = partialToken.toLowerCase();
                for (int i = 0; i < validValues.length; i++) {
                  if (validValues[i].toLowerCase().startsWith(lowercasePartialToken)) {
                    completionProposalsSet.add(new WodCompletionProposal(token, tokenOffset, offset, validValues[i]));
                  }
                }
              }
            } catch (Throwable t) {
              t.printStackTrace();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.