org.eclipse.ui.forms.widgets.Hyperlink.setVisible()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(142)

本文整理了Java中org.eclipse.ui.forms.widgets.Hyperlink.setVisible()方法的一些代码示例,展示了Hyperlink.setVisible()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hyperlink.setVisible()方法的具体详情如下:
包路径:org.eclipse.ui.forms.widgets.Hyperlink
类名称:Hyperlink
方法名:setVisible

Hyperlink.setVisible介绍

暂无

代码示例

代码示例来源:origin: org.eclipse/org.eclipse.jst.ws.consumption.ui

private void showSummary(boolean show)
{
  if (clientOnly_)
    show = true;  //short circuit to eliminate flicker...	  
  
  hLinkClientEAR_.setVisible(show && needEar_);
  hLinkClientProject_.setVisible(show);
  hLinkClientRuntime_.setVisible(show);
  hLinkClientServer_.setVisible(show);
  
  if (show)
  {
    clientDetailsLabel_.setText(ConsumptionUIMessages.LABEL_SUMMARY);
  }
  else
  {
    if (clientOnly_)
      hCompClient_.setToolTipText(ConsumptionUIMessages.TOOLTIP_WSWSCEN_SCALE_CLIENT_ONLY);
     else
    hCompClient_.setToolTipText(ConsumptionUIMessages.TOOLTIP_WSWSCEN_SCALE_CLIENT);
    clientDetailsLabel_.setText(ConsumptionUIMessages.LABEL_SUMMARY_NO_CLIENT);          
  }      
  clientDetailsLabel_.pack(true);
  hLinkClientProject_.pack(true);
  hLinkClientEAR_.pack(true);
  packIt();
}

代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui

private void update(IConfigurationElement sample) {
  this.sample = sample;
  if (form == null)
    return;
  String title = sample != null ? sample.getAttribute("name") : ""; //$NON-NLS-1$ //$NON-NLS-2$
  form.setText(title);
  if (sample != null) {
    launcher = sample.getAttribute("launcher"); //$NON-NLS-1$
    launchTarget = sample.getAttribute("launchTarget"); //$NON-NLS-1$
  } else {
    launcher = null;
    launchTarget = null;
  }
  IConfigurationElement[] descConfig = sample != null ? sample.getChildren("description") : null; //$NON-NLS-1$
  if (descConfig != null && descConfig.length == 1) {
    String desc = descConfig[0].getValue();
    String content = NLS.bind(PDEUIMessages.SampleStandbyContent_desc, (desc != null ? desc : "")); //$NON-NLS-1$
    helpURL = descConfig[0].getAttribute("helpHref"); //$NON-NLS-1$
    moreLink.setVisible(helpURL != null);
    descText.setText(content, true, false);
  } else {
    moreLink.setVisible(false);
    descText.setText("", false, false); //$NON-NLS-1$
  }
  form.reflow(true);
}

代码示例来源:origin: org.eclipse/org.eclipse.jst.ws.consumption.ui

public void refreshEARLink()
{
  hLinkClientEAR_.setVisible(needEar_ && getGenerateProxy());
  if (needEar_)
  {        
    hLinkClientEAR_.setText(CLIENT_EAR_PREFIX + " " + earProjectName_);
    hLinkClientEAR_.pack(true); 
    packIt();
  }  
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.forms

messageHyperlink.setText(message);
  messageHyperlink.setHref(messages);
  messageHyperlink.setVisible(true);
  messageHyperlink.setVisible(false);
if (messageLabel == null) {
  messageLabel = new CLabel(FormHeading.this, SWT.NULL);

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.forms

messageHyperlink.setText(message);
  messageHyperlink.setHref(messages);
  messageHyperlink.setVisible(true);
  messageHyperlink.setVisible(false);
if (messageLabel == null) {
  messageLabel = new CLabel(FormHeading.this, SWT.NULL);

相关文章