Package com.intellij.struts2.facet

Examples of com.intellij.struts2.facet.StrutsFacet


*/
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

  public Set<StrutsFileSet> getAllConfigFileSets(@NotNull final Module module) {
    if (module.isDisposed()) {
      return Collections.emptySet();
    }

    final StrutsFacet facet = StrutsFacet.getInstance(module);
    if (facet != null) {
      return facet.getConfiguration().getFileSets();
    }
    return Collections.emptySet();
  }
View Full Code Here

  @Override
  protected final void tearDown() throws Exception {

    performTearDown();
    // clear existing StrutsFacet configuration before running next test
    final StrutsFacet existing = StrutsFacet.getInstance(myModule);
    if (existing != null) {
      existing.getConfiguration().getFileSets().clear();
    }

    super.tearDown();
  }
View Full Code Here

   * For files located in JAR: {@code [PATH_TO_JAR]!/[PATH_TO_STRUTS_XML]}.
   *
   * @param strutsXmlPaths Paths to files.
   */
  protected void createStrutsFileSet(@NonNls final String... strutsXmlPaths) {
    final StrutsFacet strutsFacet = StrutsFacet.getInstance(myModule);
    assertNotNull(strutsFacet);
    final StrutsFacetConfiguration facetConfiguration = strutsFacet.getConfiguration();

    final StrutsFileSet fileSet = new StrutsFileSet("test", "test", facetConfiguration);
    for (final String fileName : strutsXmlPaths) {
      final VirtualFile file;
      final String path;
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.facet.StrutsFacet

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.