* Creates a new spell ignore proposal.
*
* @param word
- * The word to ignore
+ * The word to ignore
* @param context
- * The invocation context
+ * The invocation context
*/
- public WordIgnoreProposal(final String word, final IInvocationContext context) {
- fWord= word;
- fContext= context;
+ public WordIgnoreProposal(final String word,
+ final IInvocationContext context) {
+ fWord = word;
+ fContext = context;
}
/*
*/
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.ignoreWord(fWord);
* @see org.eclipse.jface.text.contentassist.ICompletionProposal#getAdditionalProposalInfo()
*/
public String getAdditionalProposalInfo() {
- return MessageFormat.format(PHPUIMessages.getString("Spelling.ignore.info"), new String[] { WordCorrectionProposal.getHtmlRepresentation(fWord)}); //$NON-NLS-1$
+ return MessageFormat
+ .format(
+ PHPUIMessages.getString("Spelling.ignore.info"), new String[] { WordCorrectionProposal.getHtmlRepresentation(fWord) }); //$NON-NLS-1$
}
/*
* @see org.eclipse.jface.text.contentassist.ICompletionProposal#getDisplayString()
*/
public String getDisplayString() {
- return MessageFormat.format(PHPUIMessages.getString("Spelling.ignore.label"), new String[] { fWord }); //$NON-NLS-1$
+ return MessageFormat.format(PHPUIMessages
+ .getString("Spelling.ignore.label"), new String[] { fWord }); //$NON-NLS-1$
}
/*
public Image getImage() {
return PHPUiImages.get(PHPUiImages.IMG_OBJS_NLS_NEVER_TRANSLATE);
}
+
/*
* @see net.sourceforge.phpdt.ui.text.java.IJavaCompletionProposal#getRelevance()
*/
* @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());
}
}