/** * Hodes the context selector. */ private void hideContextSelector() { if (Helper2.okToUse(fContextSelectorShell)) { fContentAssistant.removeContentAssistListener(this, ContentAssistant2.CONTEXT_SELECTOR); fPopupCloser.uninstall(); fContextSelectorShell.setVisible(false); fContextSelectorShell.dispose(); fContextSelectorShell= null; } if (!Helper2.okToUse(fContextInfoPopup)) fContentAssistant.contextInformationClosed(); }
fPopupCloser.install(fContentAssistant, fContextSelectorTable);
fPopupCloser.install(fContentAssistant, fContextSelectorTable);
/** * Hodes the context selector. */ private void hideContextSelector() { if (Helper2.okToUse(fContextSelectorShell)) { fContentAssistant.removeContentAssistListener(this, ContentAssistant2.CONTEXT_SELECTOR); fPopupCloser.uninstall(); fContextSelectorShell.setVisible(false); fContextSelectorShell.dispose(); fContextSelectorShell= null; } if (!Helper2.okToUse(fContextInfoPopup)) fContentAssistant.contextInformationClosed(); }
fPopupCloser.install(fContentAssistant, fProposalTable);
/** * Hides this popup. */ public void hide() { unregister(); if (fViewer instanceof IEditingSupportRegistry) { IEditingSupportRegistry registry= (IEditingSupportRegistry) fViewer; registry.unregister(fFocusEditingSupport); } if (Helper2.okToUse(fProposalShell)) { fContentAssistant.removeContentAssistListener(this, ContentAssistant2.PROPOSAL_SELECTOR); fPopupCloser.uninstall(); // see bug 47511: setVisible may run the event loop on GTK // and trigger a rentrant call - have to make sure we don't // dispose another shell that was already brought up in a // reentrant call when calling setVisible() Shell tempShell= fProposalShell; fProposalShell= null; tempShell.setVisible(false); tempShell.dispose(); } }
fPopupCloser.install(fContentAssistant, fProposalTable);
/** * Hides this popup. */ public void hide() { unregister(); if (fViewer instanceof IEditingSupportRegistry) { IEditingSupportRegistry registry= (IEditingSupportRegistry) fViewer; registry.unregister(fFocusEditingSupport); } if (Helper2.okToUse(fProposalShell)) { fContentAssistant.removeContentAssistListener(this, ContentAssistant2.PROPOSAL_SELECTOR); fPopupCloser.uninstall(); // see bug 47511: setVisible may run the event loop on GTK // and trigger a rentrant call - have to make sure we don't // dispose another shell that was already brought up in a // reentrant call when calling setVisible() Shell tempShell= fProposalShell; fProposalShell= null; tempShell.setVisible(false); tempShell.dispose(); } }