/** * Creates the context information popup. This is the tooltip like overlay window. */ private void createContextInfoPopup() { if (Helper2.okToUse(fContextInfoPopup)) return; Control control= fViewer.getTextWidget(); Display display= control.getDisplay(); fContextInfoPopup= new Shell(control.getShell(), SWT.NO_TRIM | SWT.ON_TOP); fContextInfoPopup.setBackground(display.getSystemColor(SWT.COLOR_BLACK)); fContextInfoText= new StyledText(fContextInfoPopup, SWT.MULTI | SWT.READ_ONLY); Color c= fContentAssistant.getContextInformationPopupBackground(); if (c == null) c= display.getSystemColor(SWT.COLOR_INFO_BACKGROUND); fContextInfoText.setBackground(c); c= fContentAssistant.getContextInformationPopupForeground(); if (c == null) c= display.getSystemColor(SWT.COLOR_INFO_FOREGROUND); fContextInfoText.setForeground(c); }
/** * Creates the context information popup. This is the tooltip like overlay window. */ private void createContextInfoPopup() { if (Helper2.okToUse(fContextInfoPopup)) return; Control control= fViewer.getTextWidget(); Display display= control.getDisplay(); fContextInfoPopup= new Shell(control.getShell(), SWT.NO_TRIM | SWT.ON_TOP); fContextInfoPopup.setBackground(display.getSystemColor(SWT.COLOR_BLACK)); fContextInfoText= new StyledText(fContextInfoPopup, SWT.MULTI | SWT.READ_ONLY); Color c= fContentAssistant.getContextInformationPopupBackground(); if (c == null) c= display.getSystemColor(SWT.COLOR_INFO_BACKGROUND); fContextInfoText.setBackground(c); c= fContentAssistant.getContextInformationPopupForeground(); if (c == null) c= display.getSystemColor(SWT.COLOR_INFO_FOREGROUND); fContextInfoText.setForeground(c); }