Examples of suggestVariableName()


Examples of com.intellij.psi.codeStyle.JavaCodeStyleManager.suggestVariableName()

        }

        final Project project = psiClass.getProject();
        final PsiClassType classType = PsiTypesUtil.getClassType(psiClass);
        final JavaCodeStyleManager codeStyleManager = JavaCodeStyleManager.getInstance(project);
        final SuggestedNameInfo info = codeStyleManager.suggestVariableName(VariableKind.LOCAL_VARIABLE, null, null, classType);

        final Set<String> variants = new HashSet<String>(Arrays.asList(info.names));
        variants.remove(ACTION_SUFFIX);

        // remove existing action-names
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.