| | |
| | | |
| | | private Thread entryReaderThread; |
| | | |
| | | private boolean forceRefreshWhenOpening; |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public void toBeDisplayed(boolean visible) |
| | | { |
| | | super.toBeDisplayed(visible); |
| | | boolean isAuthenticated = false; |
| | | if (getInfo() != null && getInfo().getServerDescriptor() != null) |
| | | { |
| | | isAuthenticated = getInfo().getServerDescriptor().isAuthenticated(); |
| | | } |
| | | if (visible && !isDisposeOnClose() && forceRefreshWhenOpening && |
| | | isAuthenticated) |
| | | { |
| | | refreshClicked(); |
| | | } |
| | | if (!visible) |
| | | { |
| | | forceRefreshWhenOpening = isAuthenticated; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | protected Component createMainPanel() |
| | | { |
| | | JSplitPane pane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT); |
| | |
| | | { |
| | | public void actionPerformed(ActionEvent ev) |
| | | { |
| | | entryPane.getController().startRefresh(null); |
| | | refreshClicked(); |
| | | } |
| | | }); |
| | | return menu; |
| | |
| | | } |
| | | return isInterruptedException; |
| | | } |
| | | |
| | | private void refreshClicked() |
| | | { |
| | | entryPane.getController().startRefresh(null); |
| | | } |
| | | } |