0

I want to modify the existing tool tip text.I have following lines in plugin.xml

<command commandId="org.eclipse.ui.edit.paste" 
 id="org.eclipse.ui.edit.paste" tooltip="%pasteAction.TIP">

in plugin.properties

pasteAction.TIP=Paste

Existing tool tip appears like following

Paste(Ctrl+V)

I want to modify this existing tool tip to appears like following

Paste(Ctrl+V)
Paste a reference to the object

I am getting three problems to achieve this use case.

  • (Ctrl+V) added automatically at the end of tool tip text. which is not desired. It should appear where it is expected.

  • don't know how to Bold the particular string e.g. (Ctrl+V)

  • don't know how to make tool tip text multiline

we can use \n for multiline. it works but still looking for other two questions.

Thanks

4

1 回答 1

0

对于您创建的控件,您可以使用org.eclipse.jface.window.ToolTip该类来定义自定义工具提示。

对于 Eclipse 创建的控件,我不知道有任何方法可以更改键绑定文本或字体(粗体)的位置。

于 2014-02-10T15:24:29.300 回答