/** *Hides the context information popup. */ private void hideContextInfoPopup() { if (Helper2.okToUse(fContextInfoPopup)) { int size= fContextFrameStack.size(); if (size > 0) { fContextFrameStack.pop(); -- size; } if (size > 0) { ContextFrame current= fContextFrameStack.peek(); internalShowContextFrame(current, false); } else { fContentAssistant.removeContentAssistListener(this, ContentAssistant2.CONTEXT_INFO_POPUP); fContextInfoPopup.setVisible(false); fContextInfoPopup.dispose(); fContextInfoPopup= null; if (fTextPresentation != null) { fTextPresentation.clear(); fTextPresentation= null; } } } if (fContextInfoPopup == null) fContentAssistant.contextInformationClosed(); }
/** *Hides the context information popup. */ private void hideContextInfoPopup() { if (Helper2.okToUse(fContextInfoPopup)) { int size= fContextFrameStack.size(); if (size > 0) { fContextFrameStack.pop(); -- size; } if (size > 0) { ContextFrame current= fContextFrameStack.peek(); internalShowContextFrame(current, false); } else { fContentAssistant.removeContentAssistListener(this, ContentAssistant2.CONTEXT_INFO_POPUP); fContextInfoPopup.setVisible(false); fContextInfoPopup.dispose(); fContextInfoPopup= null; if (fTextPresentation != null) { fTextPresentation.clear(); fTextPresentation= null; } } } if (fContextInfoPopup == null) fContentAssistant.contextInformationClosed(); }
/** * 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(); }
/** * 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(); }