Package com.intellij.coldFusion.UI.config

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


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

    CfmlProjectConfiguration.State defaultState = CfmlProjectConfiguration.getInstance(getProject()).getState();
    CfmlProjectConfiguration.State state = new CfmlProjectConfiguration.State(new CfmlMappingsConfig(mappings));
    try {
      CfmlProjectConfiguration.getInstance(getProject()).loadState(state);
      myFixture.enableInspections(CfmlFileReferenceInspection.class);
      myFixture.testHighlighting(true, false, true);
    }
View Full Code Here


        mappings.put("\\myf", directory.getUrl());
      }
    }

    CfmlProjectConfiguration.State defaultState = CfmlProjectConfiguration.getInstance(getProject()).getState();
    CfmlProjectConfiguration.State state = new CfmlProjectConfiguration.State(new CfmlMappingsConfig(mappings));
    try {
      CfmlProjectConfiguration.getInstance(getProject()).loadState(state);
      myFixture.enableInspections(CfmlFileReferenceInspection.class);
      myFixture.testHighlighting(true, false, true);
    }
View Full Code Here

      if (fileByUrl != null) {
        mappings.put("myfolder/subfolder", directoryName);
      }
    }

    CfmlProjectConfiguration.getInstance(getProject()).loadState(new CfmlProjectConfiguration.State(new CfmlMappingsConfig(mappings)));
  }
View Full Code Here

      else {
        directoryName = componentQualifiedName.substring(0, i);
      }

      CfmlProjectConfiguration.State state = CfmlProjectConfiguration.getInstance(project).getState();
      CfmlMappingsConfig mappings = state != null ? state.getMapps().clone() : new CfmlMappingsConfig();
      adjustMappingsIfEmpty(mappings, originalFile.getProject());
      // addFakeMappingsForResolution(mappings);
      List<String> realPossiblePaths = mappings.mapVirtualToReal(directoryName);
      // Collections.sort(realPossiblePaths);

      final Collection<CfmlComponent> components = CfmlIndex.getInstance(project).getComponentsByName(
        componentName);
      components.addAll(CfmlIndex.getInstance(project).getInterfacesByName(
View Full Code Here

    if (text.contains(".")) {
      int i = text.lastIndexOf(".");
      directoryName = text.substring(0, i);
    }
    CfmlProjectConfiguration.State state = CfmlProjectConfiguration.getInstance(getProject()).getState();
    CfmlMappingsConfig mappings = state != null ? state.getMapps().clone() : new CfmlMappingsConfig();

    adjustMappingsIfEmpty(mappings, getProject());
    addFakeMappingsForImports(mappings);

    List<String> realPossiblePaths = mappings.mapVirtualToReal(directoryName);

    for (String realPath : realPossiblePaths) {
      addVariantsFromPath(variants, directoryName, realPath);
    }
    for (String value : mappings.getServerMappings().keySet()) {
      if (value.startsWith(directoryName) && !value.isEmpty() && (StringUtil.startsWithChar(value, '/') ||
                                                                  StringUtil.startsWithChar(value, '\\'))) {
        variants.add(value.replace('\\', '.').replace('/', '.').substring(1));
      }
    }
View Full Code Here

        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 {
      CfmlProjectConfiguration.getInstance(getProject()).loadState(defaultState);
View Full Code Here

        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

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

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

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

    CfmlProjectConfiguration.State defaultState = CfmlProjectConfiguration.getInstance(getProject()).getState();
    CfmlProjectConfiguration.State state = new CfmlProjectConfiguration.State(new CfmlMappingsConfig());
    state.setMapps(new CfmlMappingsConfig(mappings));
    try {
      CfmlProjectConfiguration.getInstance(getProject()).loadState(state);
      doTestCompletionContainsVariants("lot", "fot");
    }
    finally {
View Full Code Here

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

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

TOP

Related Classes of com.intellij.coldFusion.UI.config.CfmlMappingsConfig

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.