Package com.intellij.struts2.dom.struts.strutspackage

Examples of com.intellij.struts2.dom.struts.strutspackage.ResultType


    final Module module = context.getModule();
    if (module == null) {
      return Collections.emptyList();
    }

    final ValidatorManager validatorManager = ValidatorManager.getInstance(module.getProject());
    return validatorManager.getValidators(module);
  }
View Full Code Here


    if (o instanceof Field) {
      return ((Field) o).getName().getStringValue();
    }

    if (o instanceof FieldValidator) {
      final ValidatorConfig validatorConfig = ((FieldValidator) o).getType().getValue();
      return validatorConfig != null ? validatorConfig.getName().getStringValue() : null;
    }

    if (o instanceof Message) {
      final String key = ((Message) o).getKey().getStringValue();
      return StringUtil.isNotEmpty(key) ? key : ((Message) o).getValue();
View Full Code Here

*/
public abstract class FieldValidatorImpl implements FieldValidator {

  @Nullable
  public PsiClass getParamsClass() {
    final ValidatorConfig validatorConfig = getType().getValue();
    return validatorConfig != null ? validatorConfig.getValidatorClass().getValue() : null;
  }
View Full Code Here

*/
public abstract class ValidatorImpl implements Validator {

  @Nullable
  public PsiClass getParamsClass() {
    final ValidatorConfig validatorConfig = getType().getValue();
    return validatorConfig != null ? validatorConfig.getValidatorClass().getValue() : null;
  }
View Full Code Here

    final Module module = ModuleUtilCore.findModuleForPsiElement(element);
    if (module == null) {
      return null;
    }

    final StrutsFacet strutsFacet = StrutsFacet.getInstance(module);
    if (strutsFacet == null) {
      return null;
    }

    // handle suitable JAVA classes --> overlay icon
View Full Code Here

  @NotNull
  @Override
  public PsiReference[] getReferencesByElement(@NotNull final PsiElement psiElement,
                                               @NotNull final ProcessingContext processingContext) {
    final StrutsFacet facet = StrutsFacet.getInstance(psiElement);
    return facet != null && !facet.getConfiguration().isPropertiesKeysDisabled() ?
        propertiesProvider.getReferencesByElement(psiElement, processingContext) : PsiReference.EMPTY_ARRAY;
  }
View Full Code Here

        }

        public void invoke(@NotNull final Project project,
                           final Editor editor,
                           final PsiFile psiFile) throws IncorrectOperationException {
          final StrutsFacet strutsFacet = StrutsFacet.getInstance(module);
          assert strutsFacet != null;
          ModulesConfigurator.showFacetSettingsDialog(strutsFacet, null);
        }

        public boolean startInWriteAction() {
View Full Code Here

    }

    public void invoke(@NotNull final Project project,
                       final Editor editor,
                       final PsiFile file) throws IncorrectOperationException {
      final StrutsFacet strutsFacet = StrutsFacet.getInstance(file);
      assert strutsFacet != null;

      final Set<StrutsFileSet> strutsFileSets = strutsFacet.getConfiguration().getFileSets();
      final BaseListPopupStep<StrutsFileSet> step =
        new BaseListPopupStep<StrutsFileSet>(StrutsBundle.message("annotators.fileset.fix.choose.fileset"),
                                             new ArrayList<StrutsFileSet>(strutsFileSets)) {

          public Icon getIconFor(final StrutsFileSet aValue) {
View Full Code Here

                                                                 editorContext,
                                                                 validatorsManager);
    validatorsManager.registerValidator(validator);

    return new FacetEditorTab[]{new FileSetConfigurationTab(this, editorContext),
                                new FeaturesConfigurationTab(this)};
  }
View Full Code Here

                                                                 new StrutsFacetLibrariesValidatorDescription(),
                                                                 editorContext,
                                                                 validatorsManager);
    validatorsManager.registerValidator(validator);

    return new FacetEditorTab[]{new FileSetConfigurationTab(this, editorContext),
                                new FeaturesConfigurationTab(this)};
  }
View Full Code Here

TOP

Related Classes of com.intellij.struts2.dom.struts.strutspackage.ResultType

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.