Revert "Revert "Bug 522027 - Remove trailing whitespace from org.eclipse.ui.console""

This reverts commit 06126c5243b5c6a38d046927c3707245510e48a7.

Change-Id: I7dab6cb6131d21320418a1faef8c9d52bc3fe89a
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/console/IConsole.java b/org.eclipse.ui.console/src/org/eclipse/ui/console/IConsole.java
index 7b93582..85b0f30 100644
--- a/org.eclipse.ui.console/src/org/eclipse/ui/console/IConsole.java
+++ b/org.eclipse.ui.console/src/org/eclipse/ui/console/IConsole.java
@@ -31,32 +31,32 @@
  * @since 3.0
  */
 public interface IConsole {
-		
+
 	/**
 	 * Returns the name of this console.
-	 * 
+	 *
 	 * @return the name of this console
 	 */
 	public String getName();
-	
+
 	/**
 	 * Returns an image descriptor for this console, or <code>null</code>
 	 * if none.
-	 * 
+	 *
 	 * @return an image descriptor for this console, or <code>null</code>
 	 *  if none
 	 */
 	public ImageDescriptor getImageDescriptor();
-		
+
 	/**
 	 * Creates and returns a new page for this console. The page is displayed
 	 * for this console in the console given view.
-	 * 
+	 *
 	 * @param view the view in which the page is to be created
 	 * @return a page book view page representation of this console
 	 */
 	public IPageBookViewPage createPage(IConsoleView view);
-	
+
 	/**
 	 * Adds a listener for changes to properties of this console.
 	 * Has no effect if an identical listener is already registered.
@@ -76,19 +76,19 @@
 	 * @param listener a property change listener
 	 */
 	public void addPropertyChangeListener(IPropertyChangeListener listener);
-	
+
 	/**
 	 * Removes the given property listener from this console page.
 	 * Has no effect if an identical listener is not already registered.
-	 * 
+	 *
 	 * @param listener a property listener
 	 */
-	public void removePropertyChangeListener(IPropertyChangeListener listener);	
-	
+	public void removePropertyChangeListener(IPropertyChangeListener listener);
+
 	/**
 	 * Returns a unique identifier for this console's type, or <code>null</code>
 	 * if unspecified.
-	 * 
+	 *
 	 * @return a unique identifier for this console's type, or <code>null</code>
 	 * @since 3.1
 	 */
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/console/IConsoleDocumentPartitioner.java b/org.eclipse.ui.console/src/org/eclipse/ui/console/IConsoleDocumentPartitioner.java
index 0da81fe..33672ff 100644
--- a/org.eclipse.ui.console/src/org/eclipse/ui/console/IConsoleDocumentPartitioner.java
+++ b/org.eclipse.ui.console/src/org/eclipse/ui/console/IConsoleDocumentPartitioner.java
@@ -27,21 +27,21 @@
  * @since 3.1
  */
 public interface IConsoleDocumentPartitioner extends IDocumentPartitioner {
-       
+
     /**
      * Returns whether this partitioner's document is read-only at the specified
-     * offset. The user is not allowed to type in read-only locations. 
-     * 
+     * offset. The user is not allowed to type in read-only locations.
+     *
      * @param offset document offset
      * @return whether this partitioner's document is read-only at the specified
      * offset
      */
     public boolean isReadOnly(int offset);
-    
+
     /**
      * Returns style ranges for the specified region of this partitioner's document
-     * to use when rendering, or <code>null</code> if none. 
-     * 
+     * to use when rendering, or <code>null</code> if none.
+     *
      * @param offset beginning offset for which style ranges are requested
      * @param length the length of text for which style ranges are requested
      * @return style ranges for the specified region of this partitioner's document
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/console/IConsoleFactory.java b/org.eclipse.ui.console/src/org/eclipse/ui/console/IConsoleFactory.java
index 4e27fed..5eb6213 100644
--- a/org.eclipse.ui.console/src/org/eclipse/ui/console/IConsoleFactory.java
+++ b/org.eclipse.ui.console/src/org/eclipse/ui/console/IConsoleFactory.java
@@ -4,7 +4,7 @@
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
- * 
+ *
  * Contributors:
  *     IBM Corporation - initial API and implementation
  *******************************************************************************/
@@ -30,7 +30,7 @@
  * An action appears in the console view's 'Open Console' drop-down menu with the
  * corresponding <code>label</code> and optional <code>icon</code>. When the action
  * is invoked, the specified <code>class</code> is instantiated and called to
- * open a console, via the method <code>openConsole()</code>. 
+ * open a console, via the method <code>openConsole()</code>.
  * </p>
  * <p>
  * Clients providing console factory extensions are intended to implement
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/console/IConsoleListener.java b/org.eclipse.ui.console/src/org/eclipse/ui/console/IConsoleListener.java
index 41aedb2..d75dc77 100644
--- a/org.eclipse.ui.console/src/org/eclipse/ui/console/IConsoleListener.java
+++ b/org.eclipse.ui.console/src/org/eclipse/ui/console/IConsoleListener.java
@@ -4,7 +4,7 @@
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
- * 
+ *
  * Contributors:
  *     IBM Corporation - initial API and implementation
  *******************************************************************************/
@@ -19,19 +19,19 @@
  * @since 3.0
  */
 public interface IConsoleListener {
-	
+
 	/**
 	 * Notification the given consoles have been added to the console
 	 * manager.
-	 * 
+	 *
 	 * @param consoles added consoles
 	 */
 	public void consolesAdded(IConsole[] consoles);
-	
+
 	/**
 	 * Notification the given consoles have been removed from the
 	 * console manager.
-	 * 
+	 *
 	 * @param consoles removed consoles
 	 */
 	public void consolesRemoved(IConsole[] consoles);
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/console/IConsoleManager.java b/org.eclipse.ui.console/src/org/eclipse/ui/console/IConsoleManager.java
index 14ac3b8..269c9eb 100644
--- a/org.eclipse.ui.console/src/org/eclipse/ui/console/IConsoleManager.java
+++ b/org.eclipse.ui.console/src/org/eclipse/ui/console/IConsoleManager.java
@@ -12,24 +12,24 @@
 
 /**
  * The console manager manages registered consoles.
- * @since 3.0 
+ * @since 3.0
  * @noimplement This interface is not intended to be implemented by clients.
  * @noextend This interface is not intended to be extended by clients.
  */
 public interface IConsoleManager {
-	
+
 	/**
 	 * Registers the given listener for console notifications. Has
 	 * no effect if an identical listener is already registered.
-	 * 
+	 *
 	 * @param listener listener to register
 	 */
 	public void addConsoleListener(IConsoleListener listener);
-	
+
 	/**
 	 * Unregisters the given listener for console notifications. Has
 	 * no effect if an identical listener is not already registered.
-	 * 
+	 *
 	 * @param listener listener to unregister
 	 */
 	public void removeConsoleListener(IConsoleListener listener);
@@ -38,46 +38,46 @@
 	 * Adds the given consoles to the console manager. Has no effect for
 	 * equivalent consoles already registered. The consoles will be added
 	 * to any existing console views.
-	 * 
+	 *
 	 * @param consoles consoles to add
 	 */
 	public void addConsoles(IConsole[] consoles);
-	
+
 	/**
 	 * Removes the given consoles from the console manager. If the consoles are
 	 * being displayed in any console views, the associated pages will be removed
 	 * and disposed.
-	 * 
+	 *
 	 * @param consoles consoles to remove
 	 */
 	public void removeConsoles(IConsole[] consoles);
-	
+
 	/**
 	 * Returns a collection of consoles registered with the console manager.
-	 * 
+	 *
 	 * @return a collection of consoles registered with the console manager
 	 */
 	public IConsole[] getConsoles();
-	
+
 	/**
 	 * Opens the console view and displays given the console.
 	 * If the view is already open, it is brought to the front unless
 	 * the view is pinned on a console other than the given console.
 	 * Has no effect if the given console is not currently registered.
-	 * 
+	 *
 	 * @param console console to display
 	 */
 	public void showConsoleView(IConsole console);
-	
+
 	/**
 	 * Warns that the content of the given console has changed in
 	 * all console views. Has no effect if the given console is not
 	 * currently registered.
-	 * 
+	 *
 	 * @param console the console that has changed
 	 */
 	public void warnOfContentChange(IConsole console);
-	
+
 	/**
 	 * Creates and returns a collection of new pattern match listeners enabled for
 	 * the given console. The pattern match listeners are new instances, intended
@@ -88,20 +88,20 @@
      * Console pattern match listeners are contributed via the
      * <code>org.eclipse.ui.console.consolePatternMatchListeners</code> extension point.
      * </p>
-	 * 
+	 *
 	 * @param console the console for which pattern match listeners are requested
 	 * @return a collection of new pattern match listeners
      * @see IPatternMatchListener
 	 * @since 3.1
 	 */
 	public IPatternMatchListener[] createPatternMatchListeners(IConsole console);
-    
+
     /**
      * Requests a redraw of any visible console page containing the specified console.
-     * 
+     *
      * @param console the console to be refreshed
      * @since 3.1
      */
     public void refresh(IConsole console);
-	
+
 }
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/console/IConsolePageParticipant.java b/org.eclipse.ui.console/src/org/eclipse/ui/console/IConsolePageParticipant.java
index a2e7514..4e1f498 100644
--- a/org.eclipse.ui.console/src/org/eclipse/ui/console/IConsolePageParticipant.java
+++ b/org.eclipse.ui.console/src/org/eclipse/ui/console/IConsolePageParticipant.java
@@ -20,7 +20,7 @@
  * <code>org.eclispe.ui.console.consolePageParticipants</code> extension point.
  * <p>
  * Participant behavior is implementation dependent. For example, a page participant
- * could add actions to a console's toolbar by accessing a its page's action bars.  
+ * could add actions to a console's toolbar by accessing a its page's action bars.
  * </p>
  * <p>
  * Following is an example extension definition.
@@ -37,35 +37,35 @@
  * <code>enablement</code> attribute may be specified to control which consoles
  * a page participant is applicable to.
  * <p>
- * Clients contributing console page participant extensions are intended to 
+ * Clients contributing console page participant extensions are intended to
  * implement this interface.
  * </p>
  * @since 3.1
  */
 public interface IConsolePageParticipant extends IAdaptable {
     /**
-     * Called during page initialization. Marks the start of this 
+     * Called during page initialization. Marks the start of this
      * page participant's lifecycle.
-     * 
+     *
      * @param page the page corresponding to the given console
      * @param console the console for which a page has been created
      */
     public void init(IPageBookViewPage page, IConsole console);
-    
+
     /**
      * Disposes this page participant. Marks the end of this
      * page participant's lifecycle.
      */
     public void dispose();
-    
+
     /**
      * Notification this participant's page has been activated.
      */
     public void activated();
-    
+
     /**
      * Notification this participant's page has been deactivated.
      */
     public void deactivated();
-    
+
 }
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/console/IHyperlink.java b/org.eclipse.ui.console/src/org/eclipse/ui/console/IHyperlink.java
index 38aa499..70c49b5 100644
--- a/org.eclipse.ui.console/src/org/eclipse/ui/console/IHyperlink.java
+++ b/org.eclipse.ui.console/src/org/eclipse/ui/console/IHyperlink.java
@@ -4,7 +4,7 @@
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
- * 
+ *
  * Contributors:
  *     IBM Corporation - initial API and implementation
  *******************************************************************************/
@@ -18,17 +18,17 @@
  * @since 3.1
  */
 public interface IHyperlink {
-	
+
 	/**
 	 * Notification that the mouse has entered this link's region.
 	 */
 	public void linkEntered();
-	
+
 	/**
 	 * Notification that the mouse has exited this link's region
 	 */
 	public void linkExited();
-	
+
 	/**
 	 * Notification that this link has been activated. Performs
 	 * context specific linking.
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/console/IHyperlink2.java b/org.eclipse.ui.console/src/org/eclipse/ui/console/IHyperlink2.java
index 3895f15..b3999fb 100644
--- a/org.eclipse.ui.console/src/org/eclipse/ui/console/IHyperlink2.java
+++ b/org.eclipse.ui.console/src/org/eclipse/ui/console/IHyperlink2.java
@@ -4,7 +4,7 @@
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
- * 
+ *
  * Contributors:
  *     IBM Corporation - initial API and implementation
  *******************************************************************************/
@@ -22,11 +22,11 @@
  * @since 3.2
  */
 public interface IHyperlink2 extends IHyperlink {
-	
+
 	/**
 	 * Notification that this link has been activated. Performs
 	 * context specific linking.
-	 * 
+	 *
 	 * @param event the SWT event which triggered this hyperlink
 	 */
 	public void linkActivated(Event event);
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/console/IPatternMatchListener.java b/org.eclipse.ui.console/src/org/eclipse/ui/console/IPatternMatchListener.java
index d3042ea..a8a41b5 100644
--- a/org.eclipse.ui.console/src/org/eclipse/ui/console/IPatternMatchListener.java
+++ b/org.eclipse.ui.console/src/org/eclipse/ui/console/IPatternMatchListener.java
@@ -4,7 +4,7 @@
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
- * 
+ *
  * Contributors:
  *     IBM Corporation - initial API and implementation
  *******************************************************************************/
@@ -34,7 +34,7 @@
  * <li><code>class</code> - fully qualified name of the Java class implementing
  *  <code>org.eclipse.ui.console.IPatternMatchListenerDelegate</code></li>
  * </ul>
- * </p> 
+ * </p>
  * <p>
  * Optionally a <code>qualifier</code> attribute may be specified to improve performance
  * of regular expression matching. A qualifier specifies a simple regular expression used to
@@ -55,22 +55,22 @@
 public interface IPatternMatchListener extends IPatternMatchListenerDelegate {
     /**
      * Returns the pattern to be used for matching. The pattern is
-     * a string representing a regular expression. 
-     * 
+     * a string representing a regular expression.
+     *
      * @return the regular expression to be used for matching
      */
     public String getPattern();
-    
+
     /**
      * Returns the flags to use when compiling this pattern match listener's
      * regular expression, as defined by by <code>Pattern.compile(String regex, int flags)</code>
-     * 
+     *
      * @return the flags to use when compiling this pattern match listener's
      * regular expression
      * @see java.util.regex.Pattern#compile(java.lang.String, int)
      */
     public int getCompilerFlags();
-    
+
     /**
      * Returns a simple regular expression used to identify lines that may
      * match this pattern matcher's complete pattern, or <code>null</code>.
@@ -78,10 +78,10 @@
      * from the search. When a line is found containing a match for this expression,
      * the line is searched from the beginning for this pattern matcher's
      * complete pattern. Lines not containing this pattern are discarded.
-     * 
+     *
      * @return a simple regular expression used to identify lines that may
      * match this pattern matcher's complete pattern, or <code>null</code>
      */
     public String getLineQualifier();
-    
+
 }
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/console/IPatternMatchListenerDelegate.java b/org.eclipse.ui.console/src/org/eclipse/ui/console/IPatternMatchListenerDelegate.java
index a3e60dd..7b96c93 100644
--- a/org.eclipse.ui.console/src/org/eclipse/ui/console/IPatternMatchListenerDelegate.java
+++ b/org.eclipse.ui.console/src/org/eclipse/ui/console/IPatternMatchListenerDelegate.java
@@ -4,7 +4,7 @@
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
- * 
+ *
  * Contributors:
  *     IBM Corporation - initial API and implementation
  *******************************************************************************/
@@ -26,20 +26,20 @@
     /**
      * Notification that pattern matching will begin in the specified console.
      * A pattern matcher is connected to only one console at a time.
-     * 
+     *
      * @param console the console in which pattern matching will be performed
      */
     public void connect(TextConsole console);
-    
+
     /**
      * Notification that pattern matching has been completed in the console
      * this delegate was last connected to.
      */
     public void disconnect();
-    
+
     /**
      * Notification that a match has been found.
-     * 
+     *
      * @param event event describing where the match was found
      */
     public void matchFound(PatternMatchEvent event);
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/console/PatternMatchEvent.java b/org.eclipse.ui.console/src/org/eclipse/ui/console/PatternMatchEvent.java
index c4c00ff..309b64b 100644
--- a/org.eclipse.ui.console/src/org/eclipse/ui/console/PatternMatchEvent.java
+++ b/org.eclipse.ui.console/src/org/eclipse/ui/console/PatternMatchEvent.java
@@ -28,12 +28,12 @@
      * required by EventObject for ObjectSerialization.
      */
     private static final long serialVersionUID = 876890383326854537L;
-    
+
     /**
-     * The offset of the match within the console's document. 
+     * The offset of the match within the console's document.
      */
     private int offset;
-    
+
     /**
      * The length of the matched string
      */
@@ -41,7 +41,7 @@
 
     /**
      * Constructs a new pattern match event.
-     * 
+     *
      * @param console the console in which the match was found
      * @param matchOffset the offset at which the match was found
      * @param matchLength the length of the text that matched
@@ -54,7 +54,7 @@
 
     /**
      * Returns the length of the matched string.
-     * 
+     *
      * @return the length of the matched string
      */
     public int getLength() {
@@ -63,11 +63,11 @@
 
     /**
      * Returns the offset of the match within the document.
-     * 
+     *
      * @return the offset of the match within the document
      */
     public int getOffset() {
         return offset;
     }
-    
+
 }
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleHyperlinkPosition.java b/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleHyperlinkPosition.java
index 841e2d3..306ed68 100644
--- a/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleHyperlinkPosition.java
+++ b/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleHyperlinkPosition.java
@@ -16,7 +16,7 @@
 
 /**
  * Describes the position of a hyperlink within the Console's document.
- * 
+ *
  * @since 3.1
  */
 public class ConsoleHyperlinkPosition extends Position {
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleResourceBundleMessages.java b/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleResourceBundleMessages.java
index 33b7d85..1a8269a 100644
--- a/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleResourceBundleMessages.java
+++ b/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleResourceBundleMessages.java
@@ -4,7 +4,7 @@
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
- * 
+ *
  * Contributors:
  *     IBM Corporation - initial API and implementation
  *******************************************************************************/
@@ -30,6 +30,6 @@
     }
 
     public static ResourceBundle getBundle() {
-        return RESOURCE_BUNDLE; 
+        return RESOURCE_BUNDLE;
     }
 }