List of usage examples for org.eclipse.jdt.core NamingConventions VK_STATIC_FINAL_FIELD
int VK_STATIC_FINAL_FIELD
To view the source code for org.eclipse.jdt.core NamingConventions VK_STATIC_FINAL_FIELD.
Click Source Link
From source file:org.codehaus.groovy.eclipse.refactoring.core.extract.ExtractGroovyConstantRefactoring.java
License:Apache License
@Override public String[] guessConstantNames() { String text = getBaseNameFromExpression(getCu().getJavaProject(), getSelectedFragment(), NamingConventions.VK_STATIC_FINAL_FIELD); try {/*from w ww . j a v a 2 s . co m*/ Integer.parseInt(text); text = "_" + text; } catch (NumberFormatException e) { // ignore } return NamingConventions.suggestVariableNames(NamingConventions.VK_STATIC_FINAL_FIELD, NamingConventions.BK_NAME, text, getCu().getJavaProject(), getContainingClassNode().isArray() ? 1 : 0, null, true); }
From source file:org.eclipse.xtext.common.types.xtext.ui.JdtVariableCompletions.java
License:Open Source License
protected int getVariableKind(VariableType varType) { switch (varType) { case INSTANCE_FIELD: return NamingConventions.VK_INSTANCE_FIELD; case LOCAL_VAR: return NamingConventions.VK_LOCAL; case PARAMETER: return NamingConventions.VK_PARAMETER; case STATIC_FIELD: return NamingConventions.VK_STATIC_FINAL_FIELD; default:/*from w w w .j a v a 2 s .c o m*/ throw new IllegalStateException("unhandled enum const" + varType); } }