Java 类com.intellij.ui.MultiLineTooltipUI 实例源码

项目:intellij-ce-playground    文件:SvnConfigurable.java   
private void createUIComponents() {
  myLockOnDemand = new JCheckBox() {
    @Override
    public JToolTip createToolTip() {
      JToolTip toolTip = new JToolTip(){{
        setUI(new MultiLineTooltipUI());
      }};
      toolTip.setComponent(this);
      return toolTip;
    }
  };

  final SvnConfiguration configuration = SvnConfiguration.getInstance(myProject);
  int value = configuration.getMaxAnnotateRevisions();
  value = (value == -1) ? SvnConfiguration.ourMaxAnnotateRevisionsDefault : value;
  myNumRevsInAnnotations = new JSpinner(new SpinnerNumberModel(value, 10, 100000, 100));

  myNavigateToCommonProxyLink = new LinkLabel<Object>(SvnBundle.message("navigate.to.idea.proxy.settings"), null);

  final Long maximum = 30 * 60 * 1000L;
  final long connection = configuration.getSshConnectionTimeout() <= maximum ? configuration.getSshConnectionTimeout() : maximum;
  final long read = configuration.getSshReadTimeout() <= maximum ? configuration.getSshReadTimeout() : maximum;
  mySSHConnectionTimeout = new JSpinner(new SpinnerNumberModel(Long.valueOf(connection / 1000), Long.valueOf(0L), maximum, Long.valueOf(10L)));
  mySSHReadTimeout = new JSpinner(new SpinnerNumberModel(Long.valueOf(read / 1000), Long.valueOf(0L), maximum, Long.valueOf(10L)));
  myHttpTimeout = new JSpinner(new SpinnerNumberModel(Long.valueOf(read / 1000), Long.valueOf(0L), maximum, Long.valueOf(10L)));
}
项目:tools-idea    文件:SvnConfigurable.java   
private void createUIComponents() {
  myLockOnDemand = new JCheckBox() {
    @Override
    public JToolTip createToolTip() {
      JToolTip toolTip = new JToolTip(){{
        setUI(new MultiLineTooltipUI());
      }};
      toolTip.setComponent(this);
      return toolTip;
    }
  };

  final SvnConfiguration configuration = SvnConfiguration.getInstance(myProject);
  int value = configuration.getMaxAnnotateRevisions();
  value = (value == -1) ? SvnConfiguration.ourMaxAnnotateRevisionsDefault : value;
  myNumRevsInAnnotations = new JSpinner(new SpinnerNumberModel(value, 10, 100000, 100));

  final Long maximum = 30 * 60 * 1000L;
  final long connection = configuration.mySSHConnectionTimeout <= maximum ? configuration.mySSHConnectionTimeout : maximum;
  final long read = configuration.mySSHReadTimeout <= maximum ? configuration.mySSHReadTimeout : maximum;
  mySSHConnectionTimeout = new JSpinner(new SpinnerNumberModel(Long.valueOf(connection / 1000), Long.valueOf(0L), maximum, Long.valueOf(10L)));
  mySSHReadTimeout = new JSpinner(new SpinnerNumberModel(Long.valueOf(read / 1000), Long.valueOf(0L), maximum, Long.valueOf(10L)));
  myHttpTimeout = new JSpinner(new SpinnerNumberModel(Long.valueOf(read / 1000), Long.valueOf(0L), maximum, Long.valueOf(10L)));
}
项目:intellij-ce-playground    文件:JavaBreakpointFiltersPanel.java   
@Override
public JToolTip createToolTip() {
  JToolTip toolTip = new JToolTip(){{
    setUI(new MultiLineTooltipUI());
  }};
  toolTip.setComponent(this);
  return toolTip;
}
项目:intellij-ce-playground    文件:SvnUpdatePanel.java   
private void createUIComponents() {
  myLockOnDemand = new JCheckBox() {
    @Override
    public JToolTip createToolTip() {
      JToolTip toolTip = new JToolTip() {{
        setUI(new MultiLineTooltipUI());
      }};
      toolTip.setComponent(this);
      return toolTip;
    }
  };
  myDepthCombo = new DepthCombo(true);
}
项目:tools-idea    文件:BreakpointPropertiesPanel.java   
public JToolTip createToolTip() {
  JToolTip toolTip = new JToolTip(){{
    setUI(new MultiLineTooltipUI());
  }};
  toolTip.setComponent(this);
  return toolTip;
}
项目:tools-idea    文件:SvnUpdatePanel.java   
private void createUIComponents() {
  myLockOnDemand = new JCheckBox() {
    @Override
    public JToolTip createToolTip() {
      JToolTip toolTip = new JToolTip() {{
        setUI(new MultiLineTooltipUI());
      }};
      toolTip.setComponent(this);
      return toolTip;
    }
  };
  myDepthCombo = new DepthCombo(true);
}
项目:consulo-java    文件:JavaBreakpointFiltersPanel.java   
@Override
public JToolTip createToolTip()
{
    JToolTip toolTip = new JToolTip()
    {{
            setUI(new MultiLineTooltipUI());
        }};
    toolTip.setComponent(this);
    return toolTip;
}