Examples of CfmlMappingsConfig


Examples of com.intellij.coldFusion.UI.config.CfmlMappingsConfig

        mappings.put("/myfolder/subfolder", directoryName);
      }
    }

    CfmlProjectConfiguration.State defaultState = CfmlProjectConfiguration.getInstance(getProject()).getState();
    CfmlProjectConfiguration.State state = new CfmlProjectConfiguration.State(new CfmlMappingsConfig(mappings));
    try {
      CfmlProjectConfiguration.getInstance(getProject()).loadState(state);
      doTest();
    }
    finally {
View Full Code Here

Examples of com.intellij.coldFusion.UI.config.CfmlMappingsConfig

        mappings.put("/subfolder", directoryName);
      }
    }

    CfmlProjectConfiguration.State defaultState = CfmlProjectConfiguration.getInstance(getProject()).getState();
    CfmlProjectConfiguration.State state = new CfmlProjectConfiguration.State(new CfmlMappingsConfig(mappings));
    try {
      CfmlProjectConfiguration.getInstance(getProject()).loadState(state);
      doTestCompletionVariants("ComponentName.cfc");
    }
    finally {
View Full Code Here

Examples of com.intellij.coldFusion.UI.config.CfmlMappingsConfig

      if ((firstFileReference instanceof FileReference)) {
        CfmlProjectConfiguration.State state = CfmlProjectConfiguration.getInstance(getElement().getProject()).getState();
        if (state == null) {
          return super.computeDefaultContexts();
        }
        CfmlMappingsConfig mappingsConfig = state.getMapps();
        Map<String, String> mapDir = mappingsConfig.getServerMappings();
        for (String value : mapDir.keySet()) {
          final String path = mapDir.get(value);
          VirtualFile dir = findFile(path);
          if (dir != null) {
            PsiDirectory psiDirectory =
View Full Code Here

Examples of com.intellij.coldFusion.UI.config.CfmlMappingsConfig

      CfmlProjectConfiguration.State state = CfmlProjectConfiguration.getInstance(getElement().getProject()).getState();
      if (state == null) {
        super.innerResolveInContext(text, context, result, caseSensitive);
        return;
      }
      CfmlMappingsConfig mappingsConfig = state.getMapps();
      Map<String, String> mapDir = mappingsConfig.getServerMappings();
      String textInFile;
      String filePathWithMap;
      String updateLogicalPath;
      int len = getFileReferenceSet().getAllReferences().length;
      for (String logicalPath : mapDir.keySet()) {
View Full Code Here

Examples of com.intellij.coldFusion.UI.config.CfmlMappingsConfig

      if (StringUtil.startsWithChar(text, '\"') && text.endsWith("\"")) {
        text = text.substring(1, text.length() - 1);
      }
      if (StringUtil.startsWithChar(text, '/')) {
        CfmlProjectConfiguration.State state = CfmlProjectConfiguration.getInstance(getElement().getProject()).getState();
        CfmlMappingsConfig mappings = state != null ? state.getMapps().clone() : new CfmlMappingsConfig();
        for (String value : mappings.getServerMappings().keySet()) {
          if (getIndex() == 0 && (value.startsWith("/") || value.startsWith("\\"))) {
            variants.add(LookupElementBuilder.create(value, value.replace('\\', '/').substring(1)).withCaseSensitivity(false)
                           .withIcon(PlatformIcons.FOLDER_ICON));
          }
        }
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.