public void testSpecJavadoc() throws Exception {
   JavaCodeStyleSettings settings =
       getCurrentCodeStyleSettings().getCustomSettings(JavaCodeStyleSettings.class);
   settings.CLASS_NAMES_IN_JAVADOC = JavaCodeStyleSettings.FULLY_QUALIFY_NAMES_ALWAYS;
   doTestFirstParamType(
       "meth",
       "Spec",
       PsiType.DOUBLE,
       myJavaFacade.getElementFactory().createTypeFromText(CommonClassNames.JAVA_UTIL_SET, null));
 }
Exemplo n.º 2
0
 @Override
 public void processRange(
     @NotNull ASTNode element, int startOffset, int endOffset, Project project) {
   final CodeStyleSettings settings = CodeStyleSettingsManager.getSettings(project);
   JavaCodeStyleSettings javaSettings = settings.getCustomSettings(JavaCodeStyleSettings.class);
   processRange(
       element,
       startOffset,
       endOffset,
       javaSettings.useFqNamesInJavadocAlways(),
       settings.USE_FQ_CLASS_NAMES);
 }
Exemplo n.º 3
0
 @Override
 public ASTNode process(
     @NotNull ASTNode element, boolean addImports, boolean incompleteCode, Project project) {
   final CodeStyleSettings settings = CodeStyleSettingsManager.getSettings(project);
   JavaCodeStyleSettings javaSettings = settings.getCustomSettings(JavaCodeStyleSettings.class);
   return process(
       element,
       addImports,
       incompleteCode,
       javaSettings.useFqNamesInJavadocAlways(),
       settings.USE_FQ_CLASS_NAMES);
 }