Package com.intellij.struts2.model.constant

Examples of com.intellij.struts2.model.constant.StrutsConstant


        for (final Result result : action.getResults()) {
          final PathReference pathReference = result.getValue();
          final String path = pathReference != null ? pathReference.getPath() : UNKNOWN;

          final ResultNode resultNode = new ResultNode(result, path);
          addNode(resultNode);

          final String resultName = result.getName().getStringValue();
          addEdge(new BasicStrutsEdge(actionNode, resultNode, resultName != null ? resultName : Result.DEFAULT_NAME));
        }
View Full Code Here


        .findClass(getRequiredPluginClassName(),
                   GlobalSearchScope.moduleWithDependenciesAndLibrariesScope(module, false)) != null;
  }

  protected static StrutsConstant addBooleanProperty(@NonNls final String propertyName) {
    return new StrutsConstant(propertyName, BOOLEAN_CONVERTER);
  }
View Full Code Here

  protected static StrutsConstant addBooleanProperty(@NonNls final String propertyName) {
    return new StrutsConstant(propertyName, BOOLEAN_CONVERTER);
  }

  protected static StrutsConstant addIntegerProperty(@NonNls final String propertyName) {
    return new StrutsConstant(propertyName, INTEGER_CONVERTER);
  }
View Full Code Here

  protected static StrutsConstant addIntegerProperty(@NonNls final String propertyName) {
    return new StrutsConstant(propertyName, INTEGER_CONVERTER);
  }

  protected static StrutsConstant addStringProperty(@NonNls final String propertyName) {
    return new StrutsConstant(propertyName, null);
  }
View Full Code Here

    return new StrutsConstant(propertyName, null);
  }

  protected static StrutsConstant addStringValuesProperty(@NonNls final String propertyName,
                                                          @NonNls final String... values) {
    return new StrutsConstant(propertyName, new StringValuesConverter(values));
  }
View Full Code Here

                                                          @NonNls final String... values) {
    return new StrutsConstant(propertyName, new StringValuesConverter(values));
  }

  protected static StrutsConstant addDelimitedStringValuesProperty(@NonNls final String propertyName) {
    return new StrutsConstant(propertyName, new DelimitedStringValuesConverter());
  }
View Full Code Here

    @NonNls final Map<String, String> shortCutToPsiClassMap = new HashMap<String, String>();
    for (final Pair<String, String> shortcut : shortcuts) {
      shortCutToPsiClassMap.put(shortcut.first, shortcut.second);
    }

    return new StrutsConstant(propertyName, new ConstantValueClassConverter(baseClass, shortCutToPsiClassMap));
  }
View Full Code Here

    return new StrutsConstant(propertyName, new ConstantValueClassConverter(baseClass, shortCutToPsiClassMap));
  }

  protected static StrutsConstant addStrutsPackage(@NonNls final String propertyName) {
    return new StrutsConstant(propertyName, new StrutsPackageConverter());
  }
View Full Code Here

  protected static StrutsConstant addStrutsPackage(@NonNls final String propertyName) {
    return new StrutsConstant(propertyName, new StrutsPackageConverter());
  }

  protected static StrutsConstant addResultTypeProperty(@NonNls final String propertyName) {
    return new StrutsConstant(propertyName, new ResultTypeConverter());
  }
View Full Code Here

  /**
   * Verify all core constants are present.
   */
  public void testCompletionVariantsConstantName() throws Throwable {
    final StrutsCoreConstantContributor coreConstantContributor = new StrutsCoreConstantContributor();
    final List<StrutsConstant> constants = coreConstantContributor.getStrutsConstantDefinitions(myModule);
    final String[] variants = ContainerUtil.map2Array(constants, String.class, new Function<StrutsConstant, String>() {
      @Override
      public String fun(final StrutsConstant strutsConstant) {
        return strutsConstant.getName();
      }
View Full Code Here

TOP

Related Classes of com.intellij.struts2.model.constant.StrutsConstant

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.