/** 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); } }
/** 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); } }