A massive organize imports and formatting of the sources using default Eclipse code...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / ui / text / spelling / AddWordProposal.java
index c0140c1..b19a9eb 100644 (file)
@@ -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$
        }
 
        /*
@@ -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());
        }
 }