Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2003-03-21 18:02:22 +0000
committerDani Megert2003-03-21 18:02:22 +0000
commitb4fed912c4d026cd68d53a1f0d1cdd355e0547ef (patch)
treece98e55a269ccd98724b26c7ee915c2e44a21c33 /org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/EditorStatusLine.java
parente14f932a59d902758b75b98c72d71a6cbeec482a (diff)
downloadeclipse.platform.text-b4fed912c4d026cd68d53a1f0d1cdd355e0547ef.tar.gz
eclipse.platform.text-b4fed912c4d026cd68d53a1f0d1cdd355e0547ef.tar.xz
eclipse.platform.text-b4fed912c4d026cd68d53a1f0d1cdd355e0547ef.zip
Added @since 2.1 tag where needed and updated first part of Javadoc
Diffstat (limited to 'org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/EditorStatusLine.java')
-rw-r--r--org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/EditorStatusLine.java17
1 files changed, 16 insertions, 1 deletions
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/EditorStatusLine.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/EditorStatusLine.java
index 72cacdab990..6bc68fee580 100644
--- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/EditorStatusLine.java
+++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/EditorStatusLine.java
@@ -31,6 +31,9 @@ class EditorStatusLine implements IEditorStatusLine {
* Clears the status line on selection changed.
*/
private class StatusLineClearer implements ISelectionChangedListener {
+ /*
+ * @see ISelectionChangedListener#selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)
+ */
public void selectionChanged(SelectionChangedEvent event) {
fStatusLineManager.setErrorMessage(null);
@@ -90,10 +93,19 @@ class EditorStatusLine implements IEditorStatusLine {
installStatusLineClearer();
}
+ /**
+ * Returns whether this given string is empty.
+ *
+ * @param message a string
+ * @return <code>true</code> if the string is <code>null</code>, has 0 length or only white space characters.
+ */
private static boolean isMessageEmpty(String message) {
return message == null || message.trim().length() == 0;
}
+ /**
+ * Uninstalls the status line clearer.
+ */
private void uninstallStatusLineClearer() {
if (fStatusLineClearer == null)
return;
@@ -101,7 +113,10 @@ class EditorStatusLine implements IEditorStatusLine {
fSelectionProvider.removeSelectionChangedListener(fStatusLineClearer);
fStatusLineClearer= null;
}
-
+
+ /**
+ * Installs the status line clearer.
+ */
private void installStatusLineClearer() {
if (fStatusLineClearer != null)
return;

Back to the top