X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/text/spelling/AddWordProposal.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/text/spelling/AddWordProposal.java index 3619060..b19a9eb 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/text/spelling/AddWordProposal.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/text/spelling/AddWordProposal.java @@ -43,13 +43,13 @@ public class AddWordProposal implements IPHPCompletionProposal { * Creates a new add word proposal * * @param word - * The word to add + * The word to add * @param context - * The invocation context + * The invocation context */ public AddWordProposal(final String word, final IInvocationContext context) { - fContext= context; - fWord= word; + fContext = context; + fWord = word; } /* @@ -57,8 +57,9 @@ public class AddWordProposal implements IPHPCompletionProposal { */ public final void apply(final IDocument document) { - final ISpellCheckEngine engine= SpellCheckEngine.getInstance(); - final ISpellChecker checker= engine.createSpellChecker(engine.getLocale(), PreferenceConstants.getPreferenceStore()); + final ISpellCheckEngine engine = SpellCheckEngine.getInstance(); + final ISpellChecker checker = engine.createSpellChecker(engine + .getLocale(), PreferenceConstants.getPreferenceStore()); if (checker != null) checker.addWord(fWord); @@ -68,7 +69,9 @@ public class AddWordProposal implements IPHPCompletionProposal { * @see org.eclipse.jface.text.contentassist.ICompletionProposal#getAdditionalProposalInfo() */ public String getAdditionalProposalInfo() { - return MessageFormat.format(PHPUIMessages.getString("Spelling.add.info"), new String[] { WordCorrectionProposal.getHtmlRepresentation(fWord)}); //$NON-NLS-1$ + return MessageFormat + .format( + PHPUIMessages.getString("Spelling.add.info"), new String[] { WordCorrectionProposal.getHtmlRepresentation(fWord) }); //$NON-NLS-1$ } /* @@ -82,7 +85,8 @@ public class AddWordProposal implements IPHPCompletionProposal { * @see org.eclipse.jface.text.contentassist.ICompletionProposal#getDisplayString() */ public String getDisplayString() { - return MessageFormat.format(PHPUIMessages.getString("Spelling.add.label"), new String[] { fWord }); //$NON-NLS-1$ + return MessageFormat.format(PHPUIMessages + .getString("Spelling.add.label"), new String[] { fWord }); //$NON-NLS-1$ } /* @@ -93,7 +97,7 @@ public class AddWordProposal implements IPHPCompletionProposal { } /* - * @see org.eclipse.jdt.ui.text.java.IJavaCompletionProposal#getRelevance() + * @see net.sourceforge.phpdt.ui.text.java.IJavaCompletionProposal#getRelevance() */ public int getRelevance() { return Integer.MIN_VALUE; @@ -103,6 +107,7 @@ public class AddWordProposal implements IPHPCompletionProposal { * @see org.eclipse.jface.text.contentassist.ICompletionProposal#getSelection(org.eclipse.jface.text.IDocument) */ public final Point getSelection(final IDocument document) { - return new Point(fContext.getSelectionOffset(), fContext.getSelectionLength()); + return new Point(fContext.getSelectionOffset(), fContext + .getSelectionLength()); } }