public synchronized void clearHistory(){ curHistoryItem = -1; history.clear(); getJavaDocPane().setBackEnabled(false); getJavaDocPane().setForwardEnabled(false); }
public synchronized void addToHistory(Object url){ int histSize = history.size(); for (int i=curHistoryItem+1; i<histSize; i++){ history.remove(history.size()-1); } history.add(url); curHistoryItem = history.size()-1; if (curHistoryItem > 0) getJavaDocPane().setBackEnabled(true); getJavaDocPane().setForwardEnabled(false); }
public synchronized void clearHistory(){ curHistoryItem = -1; history.clear(); getJavaDocPane().setBackEnabled(false); getJavaDocPane().setForwardEnabled(false); }
public synchronized void addToHistory(Object url){ int histSize = history.size(); for (int i=curHistoryItem+1; i<histSize; i++){ history.remove(history.size()-1); } history.add(url); curHistoryItem = history.size()-1; if (curHistoryItem > 0) getJavaDocPane().setBackEnabled(true); getJavaDocPane().setForwardEnabled(false); }
public synchronized void forwardHistory(){ if (curHistoryItem <history.size()-1){ curHistoryItem++; setContent(history.get(curHistoryItem), false, false); if (curHistoryItem == history.size()-1) getJavaDocPane().setForwardEnabled(false); getJavaDocPane().setBackEnabled(true); } }
public synchronized void forwardHistory(){ if (curHistoryItem <history.size()-1){ curHistoryItem++; setContent(history.get(curHistoryItem), false, false); if (curHistoryItem == history.size()-1) getJavaDocPane().setForwardEnabled(false); getJavaDocPane().setBackEnabled(true); } }
public synchronized void backHistory(){ if (curHistoryItem > 0) { curHistoryItem--; setContent(history.get(curHistoryItem), false, false); if (curHistoryItem == 0) getJavaDocPane().setBackEnabled(false); getJavaDocPane().setForwardEnabled(true); } }
public synchronized void backHistory(){ if (curHistoryItem > 0) { curHistoryItem--; setContent(history.get(curHistoryItem), false, false); if (curHistoryItem == 0) getJavaDocPane().setBackEnabled(false); getJavaDocPane().setForwardEnabled(true); } }
public boolean isVisible(){ return getJavaDocPane().getComponent().isVisible(); }
public boolean isVisible(){ return getJavaDocPane().getComponent().isVisible(); }
/** 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); } } }
/** 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); } } }