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))); }
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))); }
@Override public JToolTip createToolTip() { JToolTip toolTip = new JToolTip(){{ setUI(new MultiLineTooltipUI()); }}; toolTip.setComponent(this); return toolTip; }
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); }
public JToolTip createToolTip() { JToolTip toolTip = new JToolTip(){{ setUI(new MultiLineTooltipUI()); }}; toolTip.setComponent(this); return toolTip; }
@Override public JToolTip createToolTip() { JToolTip toolTip = new JToolTip() {{ setUI(new MultiLineTooltipUI()); }}; toolTip.setComponent(this); return toolTip; }