Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Austin2011-03-29 14:03:33 +0000
committerChris Austin2011-03-29 14:03:33 +0000
commit3cfa0b6fe268cdce33801bdabedc956902bffcfb (patch)
tree9e8318fe98bd56a2b3e2d978c8f1fb916418eceb
parentea59f62901fa6e0d3ca83e3f678a337d327009d1 (diff)
downloadeclipse.platform.ua-3cfa0b6fe268cdce33801bdabedc956902bffcfb.tar.gz
eclipse.platform.ua-3cfa0b6fe268cdce33801bdabedc956902bffcfb.tar.xz
eclipse.platform.ua-3cfa0b6fe268cdce33801bdabedc956902bffcfb.zip
Bug 335496 - [Help] In Help View too much vertical white space between Scope and Alternate Search Expression
-rw-r--r--org.eclipse.help.ui/src/org/eclipse/help/ui/internal/views/SearchPart.java22
1 files changed, 14 insertions, 8 deletions
diff --git a/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/views/SearchPart.java b/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/views/SearchPart.java
index ef6d1e33a..08ad71ac8 100644
--- a/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/views/SearchPart.java
+++ b/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/views/SearchPart.java
@@ -340,7 +340,6 @@ public class SearchPart extends AbstractFormPart implements IHelpPart, IHelpUICo
private void createRemoteStatusLink(FormToolkit toolkit){
TableWrapData td;
-
Image warningImage = JFaceResources.getImage(Dialog.DLG_IMG_MESSAGE_WARNING);
remoteStatusLink = toolkit.createImageHyperlink(container, SWT.NULL);
@@ -352,17 +351,21 @@ public class SearchPart extends AbstractFormPart implements IHelpPart, IHelpUICo
doRemoteStatus();
}
});
-
- if (wasHelpUnavailable = RemoteStatusData.isAnyRemoteHelpUnavailable())
- remoteStatusLink.setVisible(true);
- else
- remoteStatusLink.setVisible(false);
-
td = new TableWrapData();
td.colspan = 2;
td.align = TableWrapData.FILL;
remoteStatusLink.setLayoutData(td);
+
+ if (wasHelpUnavailable = RemoteStatusData.isAnyRemoteHelpUnavailable())
+ {
+ remoteStatusLink.setVisible(true);
+ }
+ else
+ {
+ remoteStatusLink.dispose();
+ }
+
}
private void createAlternateQueriesSection(FormToolkit toolkit){
@@ -787,7 +790,10 @@ public class SearchPart extends AbstractFormPart implements IHelpPart, IHelpUICo
doSearch(searchWordCombo.getText());
}
- remoteStatusLink.setVisible(RemoteStatusData.isAnyRemoteHelpUnavailable());
+ if(RemoteStatusData.isAnyRemoteHelpUnavailable())
+ createRemoteStatusLink(toolkit);
+ else
+ remoteStatusLink.dispose();
}
public String getId() {

Back to the top