Examples of HyperlinkSettings


Examples of org.eclipse.ui.forms.HyperlinkSettings

    }
  }

  private void paintLinkHover(IHyperlinkSegment link, boolean hover) {
    GC gc = new GC(this);
    HyperlinkSettings settings = getHyperlinkSettings();
    Color newFg = hover ? settings.getActiveForeground() : settings
        .getForeground();
    if (newFg != null)
      gc.setForeground(newFg);
    gc.setBackground(getBackground());
    gc.setFont(getFont());
View Full Code Here

Examples of org.eclipse.ui.forms.HyperlinkSettings

  }

  public HyperlinkSettings getHyperlinkSettings() {
    // #132723 cannot have null settings
    if (hyperlinkSettings==null)
      hyperlinkSettings = new HyperlinkSettings(SWTUtil.getStandardDisplay());
    return hyperlinkSettings;
  }
View Full Code Here

Examples of org.eclipse.ui.forms.HyperlinkSettings

    }
  }

  private void paintLinkHover(IHyperlinkSegment link, boolean hover) {
    GC gc = new GC(this);
    HyperlinkSettings settings = getHyperlinkSettings();
    Color newFg = hover ? settings.getActiveForeground() : settings
        .getForeground();
    if (newFg != null)
      gc.setForeground(newFg);
    gc.setBackground(getBackground());
    gc.setFont(getFont());
View Full Code Here

Examples of org.eclipse.ui.forms.HyperlinkSettings

    public HyperlinkSettings getHyperlinkSettings() {
        // #132723 cannot have null settings
        if (hyperlinkSettings==null) {
            Display display = getStandardDisplay();
            hyperlinkSettings = new HyperlinkSettings(display);

            // Setting link foreground color for windows 7
            final String osName = System.getProperty("os.name")//$NON-NLS-1$
            if (osName.toLowerCase().startsWith("windows 7")) {  //$NON-NLS-1$
                activeForeground = new Color(display, LINK_FOREGROUND);
View Full Code Here

Examples of org.eclipse.ui.forms.HyperlinkSettings

    public void setHyperlinkSettings(HyperlinkSettings settings) {
        this.hyperlinkSettings = settings;
    }
   
    public void setEnabled(boolean enabled) {
        HyperlinkSettings settings = getHyperlinkSettings();
        settings.setForeground(enabled ? enabledForeground : disabledForeground);
    }
View Full Code Here

Examples of org.eclipse.ui.forms.HyperlinkSettings

  }

  public HyperlinkSettings getHyperlinkSettings() {
    // #132723 cannot have null settings
    if (hyperlinkSettings==null)
      hyperlinkSettings = new HyperlinkSettings(SWTUtil.getStandardDisplay());
    return hyperlinkSettings;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.