1) Moved net.sourceforge.phpeclipse.ui\src\net\sourceforge\phpdt back to net.sourcefo...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / ui / text / spelling / WordIgnoreProposal.java
index d2e076b..47add64 100644 (file)
@@ -43,13 +43,14 @@ public class WordIgnoreProposal implements IPHPCompletionProposal {
         * 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;
        }
 
        /*
@@ -57,8 +58,9 @@ public class WordIgnoreProposal 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.ignoreWord(fWord);
@@ -68,7 +70,9 @@ public class WordIgnoreProposal implements IPHPCompletionProposal {
         * @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$
        }
 
        /*
@@ -82,7 +86,8 @@ public class WordIgnoreProposal implements IPHPCompletionProposal {
         * @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$
        }
 
        /*
@@ -91,6 +96,7 @@ public class WordIgnoreProposal implements IPHPCompletionProposal {
        public Image getImage() {
                return PHPUiImages.get(PHPUiImages.IMG_OBJS_NLS_NEVER_TRANSLATE);
        }
+
        /*
         * @see net.sourceforge.phpdt.ui.text.java.IJavaCompletionProposal#getRelevance()
         */
@@ -102,6 +108,7 @@ public class WordIgnoreProposal 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());
        }
 }