本文整理了Java中org.eclipse.ui.forms.widgets.Hyperlink.setToolTipText()
方法的一些代码示例,展示了Hyperlink.setToolTipText()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hyperlink.setToolTipText()
方法的具体详情如下:
包路径:org.eclipse.ui.forms.widgets.Hyperlink
类名称:Hyperlink
方法名:setToolTipText
暂无
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.forms
@Override
public void setToolTipText(String string) {
super.setToolTipText(string);
// Also set on label, otherwise it's just on the background without text.
if (textLabel instanceof Label) {
((Label) textLabel).setToolTipText(string);
} else if (textLabel instanceof Hyperlink) {
((Hyperlink) textLabel).setToolTipText(string);
}
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.forms
@Override
public void setToolTipText(String string) {
super.setToolTipText(string);
// Also set on label, otherwise it's just on the background without text.
if (textLabel instanceof Label) {
((Label) textLabel).setToolTipText(string);
} else if (textLabel instanceof Hyperlink) {
((Hyperlink) textLabel).setToolTipText(string);
}
}
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
private void update(Hyperlink hyperlink, Object object) {
String text = labelProvider != null ? labelProvider.getText(object) : object.toString();
Image image = labelProvider != null ? labelProvider.getImage(object) : null;
String tooltip = labelProvider != null ? labelProvider.getToolTipText(object) : text;
hyperlink.setText(text);
hyperlink.setToolTipText(tooltip);
if (hyperlink instanceof ImageHyperlink)
((ImageHyperlink) hyperlink).setImage(image);
reflow();
}
代码示例来源:origin: org.eclipse/org.eclipse.help.ui
private void createScopeSet(Section section, FormToolkit toolkit) {
scopeSetLink = toolkit.createHyperlink(section, null, SWT.NULL);
scopeSetLink.addHyperlinkListener(new HyperlinkAdapter() {
public void linkActivated(HyperlinkEvent e) {
doChangeScopeSet();
}
});
scopeSetLink.setToolTipText(Messages.FederatedSearchPart_changeScopeSet);
section.setTextClient(scopeSetLink);
ScopeSet active = scopeSetManager.getActiveSet();
setActiveScopeSet(active);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.intro
public void staticStandbyStateChanged(boolean standby) {
AbstractIntroPage homePage = getModel().getHomePage();
AbstractIntroPage standbyPage = getModel().getStandbyPage();
if (standbyPage == null)
standbyPage = homePage;
if (standby) {
welcomeLink.setHref(standbyPage.getUrl());
welcomeLink.setToolTipText(standbyPage.getUrl());
} else {
welcomeLink.setHref(homePage.getUrl());
welcomeLink.setToolTipText(homePage.getUrl());
}
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.ws.consumption.ui
hLinkClientServer_.setToolTipText(ConsumptionUIMessages.TOOLTIP_PWRS_TEXT_SERVER);
hLinkClientServer_.addHyperlinkListener(new IHyperlinkListener(){
public void linkActivated(HyperlinkEvent e){
hLinkClientRuntime_.setToolTipText(ConsumptionUIMessages.TOOLTIP_PWRS_TEXT_RUNTIME);
hLinkClientRuntime_.addHyperlinkListener(new IHyperlinkListener(){
public void linkActivated(HyperlinkEvent e){
hLinkClientProject_.setToolTipText(ConsumptionUIMessages.TOOLTIP_WSWSCEN_CLIENTPROJECT_LINK);
hLinkClientProject_.addHyperlinkListener(new IHyperlinkListener(){
public void linkActivated(HyperlinkEvent e){
hLinkClientEAR_.setToolTipText(ConsumptionUIMessages.TOOLTIP_WSWSCEN_CLIENTPROJECT_LINK);
hLinkClientEAR_.addHyperlinkListener(new IHyperlinkListener(){
public void linkActivated(HyperlinkEvent e){
内容来源于网络,如有侵权,请联系作者删除!