/** * Hides the context selector. */ private void hideContextSelector() { if (Helper.okToUse(fContextSelectorShell)) { fContentAssistant.storeContextSelectorPopupSize(); fContentAssistant.removeContentAssistListener(this, ContentAssistant.CONTEXT_SELECTOR); fPopupCloser.uninstall(); fContextSelectorShell.setVisible(false); fContextSelectorShell.dispose(); fContextSelectorShell= null; } if (!Helper.okToUse(fContextInfoPopup)) fContentAssistant.contextInformationClosed(); }
/** * Hides the context selector. */ private void hideContextSelector() { if (Helper.okToUse(fContextSelectorShell)) { fContentAssistant.storeContextSelectorPopupSize(); fContentAssistant.removeContentAssistListener(this, ContentAssistant.CONTEXT_SELECTOR); fPopupCloser.uninstall(); fContextSelectorShell.setVisible(false); fContextSelectorShell.dispose(); fContextSelectorShell= null; } if (!Helper.okToUse(fContextInfoPopup)) fContentAssistant.contextInformationClosed(); }
/** * Hides this popup. */ public void hide() { unregister(); if (fViewer instanceof IEditingSupportRegistry) { IEditingSupportRegistry registry= (IEditingSupportRegistry) fViewer; registry.unregister(fFocusHelper); } if (Helper.okToUse(fProposalShell)) { fContentAssistant.removeContentAssistListener(this, ContentAssistant.PROPOSAL_SELECTOR); fPopupCloser.uninstall(); fProposalShell.setVisible(false); fProposalShell.dispose(); fProposalShell= null; } if (fMessageTextFont != null) { fMessageTextFont.dispose(); fMessageTextFont= null; } if (fMessageText != null) { fMessageText= null; } fEmptyMessage= null; fLastCompletionOffset= -1; fContentAssistant.fireSessionEndEvent(); }
/** * Hides this popup. */ public void hide() { unregister(); if (fViewer instanceof IEditingSupportRegistry) { IEditingSupportRegistry registry= (IEditingSupportRegistry) fViewer; registry.unregister(fFocusHelper); } if (Helper.okToUse(fProposalShell)) { fContentAssistant.removeContentAssistListener(this, ContentAssistant.PROPOSAL_SELECTOR); fPopupCloser.uninstall(); fProposalShell.setVisible(false); fProposalShell.dispose(); fProposalShell= null; } if (fMessageTextFont != null) { fMessageTextFont.dispose(); fMessageTextFont= null; } if (fMessageText != null) { fMessageText= null; } fEmptyMessage= null; fLastCompletionOffset= -1; fContentAssistant.fireSessionEndEvent(); }