1 11 12 package org.eclipse.jdt.internal.ui.text.spelling; 13 14 import java.util.Locale ; 15 16 import org.eclipse.jdt.ui.text.java.IInvocationContext; 17 18 import org.eclipse.jdt.internal.ui.JavaUIMessages; 19 20 25 public class ChangeCaseProposal extends WordCorrectionProposal { 26 27 41 public ChangeCaseProposal(final String [] arguments, final int offset, final int length, final IInvocationContext context, final Locale locale) { 42 super(Character.isLowerCase(arguments[0].charAt(0)) ? Character.toUpperCase(arguments[0].charAt(0)) + arguments[0].substring(1) : arguments[0], arguments, offset, length, context, Integer.MAX_VALUE); 43 } 44 45 48 public String getDisplayString() { 49 return JavaUIMessages.Spelling_case_label; 50 } 51 } 52 | Popular Tags |