Bug 546309 - Status line support in Call Hierarchy view
diff --git a/org.eclipse.handly.ui/src/org/eclipse/handly/ui/callhierarchy/CallHierarchyViewPart.java b/org.eclipse.handly.ui/src/org/eclipse/handly/ui/callhierarchy/CallHierarchyViewPart.java
index c0bda91..517f16f 100644
--- a/org.eclipse.handly.ui/src/org/eclipse/handly/ui/callhierarchy/CallHierarchyViewPart.java
+++ b/org.eclipse.handly.ui/src/org/eclipse/handly/ui/callhierarchy/CallHierarchyViewPart.java
@@ -732,11 +732,13 @@
/**
* Updates the status line based on the given selection.
+ * <code>CallHierarchyViewPart</code> invokes this method as appropriate
+ * passing the current selection obtained from the selection provider
+ * of this view's site.
* <p>
* Default implementation clears the status line message if the selection
- * is empty; sets the message returned by {@link #getStatusLineMessage(Object)}
- * if exactly one element is selected; sets a generic message of the
- * form "(x) items selected" otherwise. The error message is cleared
+ * is empty or if exactly one element is selected; sets a generic message
+ * of the form "(x) items selected" otherwise. The error message is cleared
* in any case.
* </p>
*
@@ -753,29 +755,11 @@
message = MessageFormat.format(
Messages.CallHierarchyViewPart_0__items_selected, size);
}
- else if (size == 1)
- {
- message = getStatusLineMessage(selection.getFirstElement());
- }
manager.setMessage(message);
manager.setErrorMessage(null);
}
/**
- * Returns the message to show in the status line for the given element.
- * <p>
- * Default implementation always returns <code>null</code>.
- * </p>
- *
- * @param element the selected element (never <code>null</code>)
- * @return the status line message, or <code>null</code> if not available
- */
- protected String getStatusLineMessage(Object element)
- {
- return null;
- }
-
- /**
* Refreshes the content of this view according to options specified in
* the given context. This method may only be called after the SWT controls
* for this view have been created and before they have been disposed.