public void hyperlinkUpdate(HyperlinkEvent e) { if (e!=null && HyperlinkEvent.EventType.ACTIVATED.equals(e.getEventType())){ if (e.getDescription() != null){ Object obj = cjd.parseLink(e.getDescription(), null); if (obj!=null){ cjd.setContent(obj, false); cjd.addToHistory(obj); } else { obj = (e.getURL() == null) ? e.getDescription() : (Object)e.getURL(); cjd.setContent(obj, false); } } } } }
synchronized void clearContent() { cancelPerformingThread(); currentContent = null; }
private void clearJavadocContent(){ CompletionJavaDoc cjd = extEditorUI.getCompletionJavaDoc(); if (cjd!=null){ cjd.clearContent(); } }
public void settingsChange(SettingsChangeEvent evt) { if (ExtSettingsNames.JAVADOC_BG_COLOR.equals(evt.getSettingName())){ getJavaDocView().setBGColor(getJavaDocBGColor()); } if (ExtSettingsNames.JAVADOC_AUTO_POPUP_DELAY.equals(evt.getSettingName())){ javaDocDelay = getJavaDocDelay(); } if (ExtSettingsNames.JAVADOC_AUTO_POPUP.equals(evt.getSettingName())){ javaDocAutoPopup = getJavaDocAutoPopup(); } }
/** Sets javadoc popup window visibility */ public void setJavaDocVisible(final boolean visible){ final JDCPopupPanel jdc = getJDCPopupPanel(); if (jdc!=null){ if (visible) getJavaDocPane().setShowWebEnabled(isExternalJavaDocMounted()); if (!SwingUtilities.isEventDispatchThread()){ SwingUtilities.invokeLater( new Runnable() { public void run() { jdc.setJavaDocVisible(visible); } }); }else{ jdc.setJavaDocVisible(visible); } } }
CompletionJavaDoc cjd = extEditorUI.getCompletionJavaDoc(); if (cjd!=null){ cjd.backHistory(); CompletionJavaDoc cjd = extEditorUI.getCompletionJavaDoc(); if (cjd!=null){ cjd.forwardHistory(); case ACTION_JAVADOC_OPEN_IN_BROWSER: { CompletionJavaDoc cjd = extEditorUI.getCompletionJavaDoc(); if (cjd!=null && cjd.isExternalJavaDocMounted()){ cjd.openInExternalBrowser(); CompletionJavaDoc cjd = extEditorUI.getCompletionJavaDoc(); if (cjd!=null){ cjd.goToSource();
Settings.addSettingsChangeListener(this); javaDocDelay = getJavaDocDelay(); javaDocAutoPopup = getJavaDocAutoPopup(); propertyChange(new PropertyChangeEvent(extEditorUI, ExtEditorUI.COMPONENT_PROPERTY, null, component));
/** Sets content of javadoc * @param content it is Object of the java member such as JCClass, JCMethod, JCField or JCConstructor * @param postRequest if false, javadoc window is popuped without delay * @param addToHistory if true, the content item will be added to history queue */ public synchronized void setContent(Object content, boolean postRequest, boolean addToHistory){ timer.stop(); if (content == null) { currentContent = null; setJavaDocVisible(false); return; } currentContent = content; this.addToHistory = addToHistory; if (postRequest){ //timer.setInitialDelay(javaDocDelay); timer.setInitialDelay(POPUP_DELAY); //timer.setDelay(javaDocDelay); timer.setDelay(POPUP_DELAY); timer.start(); }else{ actionPerformed(null); } }
public void setVisible(boolean visible){ super.setVisible(visible); if (cjd!=null && !visible){ cjd.clearHistory(); } }
if(completionJavaDoc.autoPopup()){ showJavaDoc = javadoc != null;
CompletionJavaDoc cjd = extEditorUI.getCompletionJavaDoc(); if (cjd!=null){ cjd.backHistory(); CompletionJavaDoc cjd = extEditorUI.getCompletionJavaDoc(); if (cjd!=null){ cjd.forwardHistory(); case ACTION_JAVADOC_OPEN_IN_BROWSER: { CompletionJavaDoc cjd = extEditorUI.getCompletionJavaDoc(); if (cjd!=null && cjd.isExternalJavaDocMounted()){ cjd.openInExternalBrowser(); CompletionJavaDoc cjd = extEditorUI.getCompletionJavaDoc(); if (cjd!=null){ cjd.goToSource();
public void settingsChange(SettingsChangeEvent evt) { if (ExtSettingsNames.JAVADOC_BG_COLOR.equals(evt.getSettingName())){ getJavaDocView().setBGColor(getJavaDocBGColor()); } if (ExtSettingsNames.JAVADOC_AUTO_POPUP_DELAY.equals(evt.getSettingName())){ javaDocDelay = getJavaDocDelay(); } if (ExtSettingsNames.JAVADOC_AUTO_POPUP.equals(evt.getSettingName())){ javaDocAutoPopup = getJavaDocAutoPopup(); } }
/** Sets javadoc popup window visibility */ public void setJavaDocVisible(final boolean visible){ final JDCPopupPanel jdc = getJDCPopupPanel(); if (jdc!=null){ if (visible) getJavaDocPane().setShowWebEnabled(isExternalJavaDocMounted()); if (!SwingUtilities.isEventDispatchThread()){ SwingUtilities.invokeLater( new Runnable() { public void run() { jdc.setJavaDocVisible(visible); } }); }else{ jdc.setJavaDocVisible(visible); } } }
Settings.addSettingsChangeListener(this); javaDocDelay = getJavaDocDelay(); javaDocAutoPopup = getJavaDocAutoPopup(); propertyChange(new PropertyChangeEvent(extEditorUI, ExtEditorUI.COMPONENT_PROPERTY, null, component));
/** Sets content of javadoc * @param content it is Object of the java member such as JCClass, JCMethod, JCField or JCConstructor * @param postRequest if false, javadoc window is popuped without delay * @param addToHistory if true, the content item will be added to history queue */ public synchronized void setContent(Object content, boolean postRequest, boolean addToHistory){ timer.stop(); if (content == null) { currentContent = null; setJavaDocVisible(false); return; } currentContent = content; this.addToHistory = addToHistory; if (postRequest){ //timer.setInitialDelay(javaDocDelay); timer.setInitialDelay(POPUP_DELAY); //timer.setDelay(javaDocDelay); timer.setDelay(POPUP_DELAY); timer.start(); }else{ actionPerformed(null); } }
public void setVisible(boolean visible){ super.setVisible(visible); if (cjd!=null && !visible){ cjd.clearHistory(); } }
if(completionJavaDoc.autoPopup()){ showJavaDoc = javadoc != null;
public void hyperlinkUpdate(HyperlinkEvent e) { if (e!=null && HyperlinkEvent.EventType.ACTIVATED.equals(e.getEventType())){ if (e.getDescription() != null){ Object obj = cjd.parseLink(e.getDescription(), null); if (obj!=null){ cjd.setContent(obj, false); cjd.addToHistory(obj); } else { obj = (e.getURL() == null) ? e.getDescription() : (Object)e.getURL(); cjd.setContent(obj, false); } } } } }
synchronized void clearContent() { cancelPerformingThread(); currentContent = null; }
private void clearJavadocContent(){ CompletionJavaDoc cjd = extEditorUI.getCompletionJavaDoc(); if (cjd!=null){ cjd.clearContent(); } }