diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/org.eclipse.swt.examples/src/examples_hoverhelp.properties | 6 | ||||
-rwxr-xr-x | examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/hoverhelp/HoverHelp.java | 7 |
2 files changed, 6 insertions, 7 deletions
diff --git a/examples/org.eclipse.swt.examples/src/examples_hoverhelp.properties b/examples/org.eclipse.swt.examples/src/examples_hoverhelp.properties index 86128969ad..69300e3367 100644 --- a/examples/org.eclipse.swt.examples/src/examples_hoverhelp.properties +++ b/examples/org.eclipse.swt.examples/src/examples_hoverhelp.properties @@ -11,15 +11,15 @@ error.CouldNotLoadResources = Unable to load resources : {0} ToolItem.text = ToolItem {0} -ToolItem.tooltip = Tooltip for {0}. Try {1} on me. +ToolItem.tooltip = Tooltip for {0}. Try F1 on me. ToolItem.help = Help text for {0}. TableItem.text = TableItem {0} -TableItem.tooltip = Tooltip for {0}. Try {1} on me. +TableItem.tooltip = Tooltip for {0}. Try F1 on me. TableItem.help = Help text for {0}. TreeItem.text = TreeItem {0} -TreeItem.tooltip = Tooltip for {0}. Try {1} on me. +TreeItem.tooltip = Tooltip for {0}. Try F1 on me. TreeItem.help = Help text for {0}. Hello.text = Hello diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/hoverhelp/HoverHelp.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/hoverhelp/HoverHelp.java index 6cb67249b7..e1dc2c15e1 100755 --- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/hoverhelp/HoverHelp.java +++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/hoverhelp/HoverHelp.java @@ -35,7 +35,6 @@ public class HoverHelp { "warning.gif" }; Image images[]; - static final String HELP_KEY = SWT.getPlatform().equals("gtk") ? "Ctrl+F1" : "F1"; /** * Runs main program. @@ -140,7 +139,7 @@ public class HoverHelp { ToolItem item = new ToolItem (bar, SWT.PUSH); item.setText (getResourceString("ToolItem.text", new Object[] { new Integer(i) })); item.setData ("TIP_TEXT", getResourceString("ToolItem.tooltip", - new Object[] { item.getText(), HELP_KEY })); + new Object[] { item.getText() })); item.setData ("TIP_HELPTEXTHANDLER", new ToolTipHelpTextHandler() { public String getHelpText(Widget widget) { Item item = (Item) widget; @@ -160,7 +159,7 @@ public class HoverHelp { item.setData ("TIP_IMAGE", images[hhiInformation]); item.setText (getResourceString("TableItem.text", new Object[] { new Integer(i) })); item.setData ("TIP_TEXT", getResourceString("TableItem.tooltip", - new Object[] { item.getText(), HELP_KEY })); + new Object[] { item.getText() })); item.setData ("TIP_HELPTEXTHANDLER", new ToolTipHelpTextHandler() { public String getHelpText(Widget widget) { Item item = (Item) widget; @@ -178,7 +177,7 @@ public class HoverHelp { item.setData ("TIP_IMAGE", images[hhiWarning]); item.setText (getResourceString("TreeItem.text", new Object[] { new Integer(i) })); item.setData ("TIP_TEXT", getResourceString("TreeItem.tooltip", - new Object[] { item.getText(), HELP_KEY })); + new Object[] { item.getText() })); item.setData ("TIP_HELPTEXTHANDLER", new ToolTipHelpTextHandler() { public String getHelpText(Widget widget) { Item item = (Item) widget; |