/** * Installs this closer on the given table opened by the given content assistant. * * @param contentAssistant the content assistant * @param table the table to be tracked */ public void install(ContentAssistant contentAssistant, Table table) { install(contentAssistant, table, null); }
/** * 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(); }
/** * Installs this closer on the given table opened by the given content assistant. * * @param contentAssistant the content assistant * @param table the table to be tracked */ public void install(ContentAssistant contentAssistant, Table table) { install(contentAssistant, table, null); }
/** * 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(); }
fPopupCloser.install(fContentAssistant, fProposalTable, fAdditionalInfoController);
/** * 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(); }
fPopupCloser.install(fContentAssistant, fProposalTable, fAdditionalInfoController);
fPopupCloser.install(fContentAssistant, fContextSelectorTable);
fPopupCloser.install(fContentAssistant, fContextSelectorTable);