[361917] Display 'Click Refresh' message in the editor's toolbar
diff --git a/plugins/org.eclipse.libra.framework.editor.ui/src/org/eclipse/libra/framework/editor/ui/dependencies/BundleDependencyEditorPage.java b/plugins/org.eclipse.libra.framework.editor.ui/src/org/eclipse/libra/framework/editor/ui/dependencies/BundleDependencyEditorPage.java
index 7a31bdd..97f2483 100644
--- a/plugins/org.eclipse.libra.framework.editor.ui/src/org/eclipse/libra/framework/editor/ui/dependencies/BundleDependencyEditorPage.java
+++ b/plugins/org.eclipse.libra.framework.editor.ui/src/org/eclipse/libra/framework/editor/ui/dependencies/BundleDependencyEditorPage.java
@@ -438,6 +438,12 @@
}
}
+ @Override
+ protected void enablePage() {
+ super.enablePage();
+ setInfoStatus("Click the 'Refresh' button for fetching data from server.");
+ }
+
class BundleDependencyUpdateJob extends Job {
private final boolean deleteSelection;
diff --git a/plugins/org.eclipse.libra.framework.editor.ui/src/org/eclipse/libra/framework/editor/ui/internal/AbstractBundleEditorPage.java b/plugins/org.eclipse.libra.framework.editor.ui/src/org/eclipse/libra/framework/editor/ui/internal/AbstractBundleEditorPage.java
index 7df60e9..26f6027 100644
--- a/plugins/org.eclipse.libra.framework.editor.ui/src/org/eclipse/libra/framework/editor/ui/internal/AbstractBundleEditorPage.java
+++ b/plugins/org.eclipse.libra.framework.editor.ui/src/org/eclipse/libra/framework/editor/ui/internal/AbstractBundleEditorPage.java
@@ -7,6 +7,7 @@
*
* Contributors:
* SpringSource, a division of VMware, Inc. - initial API and implementation
+ * SAP AG - enhancements and bug fixes
*******************************************************************************/
package org.eclipse.libra.framework.editor.ui.internal;
@@ -33,6 +34,7 @@
/**
* @author Christian Dupuis
+ * @author Kaloyan Raev
*/
@SuppressWarnings("restriction")
public abstract class AbstractBundleEditorPage extends ServerEditorPart {
@@ -161,8 +163,7 @@
protected abstract void createBundleContent(Composite parent);
protected void disablePage() {
- sform.getForm().setMessage("Server '" + getServer().getName() + "' is not running.",
- IMessageProvider.INFORMATION);
+ setInfoStatus("Server '" + getServer().getName() + "' is not running.");
setEnabled(sform.getForm().getBody(), false);
runAction.setEnabled(true);
debugAction.setEnabled(true);
@@ -170,7 +171,7 @@
}
protected void enablePage() {
- sform.getForm().setMessage(null);
+ clearStatus();
setEnabled(sform.getForm().getBody(), true);
runAction.setEnabled(false);
debugAction.setEnabled(false);
@@ -196,6 +197,15 @@
}
/**
+ * Sets the status message of the editor with the provide info message.
+ *
+ * @param message info message to set.
+ */
+ public void setInfoStatus(String message) {
+ sform.getForm().setMessage(message, IMessageProvider.INFORMATION);
+ }
+
+ /**
* Clears the status message of the editor.
*/
public void clearStatus() {
diff --git a/plugins/org.eclipse.libra.framework.editor.ui/src/org/eclipse/libra/framework/editor/ui/internal/SearchTextHistory.java b/plugins/org.eclipse.libra.framework.editor.ui/src/org/eclipse/libra/framework/editor/ui/internal/SearchTextHistory.java
index ef36e52..3c7850c 100644
--- a/plugins/org.eclipse.libra.framework.editor.ui/src/org/eclipse/libra/framework/editor/ui/internal/SearchTextHistory.java
+++ b/plugins/org.eclipse.libra.framework.editor.ui/src/org/eclipse/libra/framework/editor/ui/internal/SearchTextHistory.java
@@ -7,7 +7,7 @@
*
* Contributors:
* SpringSource, a division of VMware, Inc. - initial API and implementation
- * Kaloyan Raev, SAP AG - bug 362573
+ * SAP AG - enhancements and bug fixes
*******************************************************************************/
package org.eclipse.libra.framework.editor.ui.internal;
diff --git a/plugins/org.eclipse.libra.framework.editor.ui/src/org/eclipse/libra/framework/editor/ui/overview/BundleInformationEditorPage.java b/plugins/org.eclipse.libra.framework.editor.ui/src/org/eclipse/libra/framework/editor/ui/overview/BundleInformationEditorPage.java
index cdcb37e..e69ae23 100644
--- a/plugins/org.eclipse.libra.framework.editor.ui/src/org/eclipse/libra/framework/editor/ui/overview/BundleInformationEditorPage.java
+++ b/plugins/org.eclipse.libra.framework.editor.ui/src/org/eclipse/libra/framework/editor/ui/overview/BundleInformationEditorPage.java
@@ -70,6 +70,7 @@
@Override
protected void enablePage() {
super.enablePage();
+ setInfoStatus("Click the 'Refresh' button for fetching data from server.");
masterDetailsBlock.refresh();
}