private void updateToolTipText(int selectedParam) { if (selectedParam!=lastSelectedParam) { if (tip!=null) { tip.updateText(selectedParam); } this.lastSelectedParam = selectedParam; } }
/** * Updates the <code>LookAndFeel</code> of all popup windows this context * manages. */ public void updateUI() { if (tip!=null) { tip.updateUI(); } if (paramChoicesWindow!=null) { paramChoicesWindow.updateUI(); } }
tip = new ParameterizedCompletionDescriptionToolTip( parentWindow, this, ac, pc); try { r.x = p.x; r.y = p.y; tip.setLocationRelativeTo(r); tip.setVisible(true); } catch (BadLocationException ble) { // Should never happen UIManager.getLookAndFeel().provideErrorFeedback(tc);
/** * Hides any popup windows and terminates parameterized completion * assistance. * * @see #activate() */ public void deactivate() { if (!active) { return; } active = false; listener.uninstall(); if (tip!=null) { tip.setVisible(false); } if (paramChoicesWindow!=null) { paramChoicesWindow.setVisible(false); } }