if (fgBrowserDoesNotWorkOnPlatform) fIsUsingBrowserWidget= false; else { fBrowser= new Browser(parent, SWT.NONE); fIsUsingBrowserWidget= true; }
fBrowser= new Browser(parent, SWT.NONE); fIsUsingBrowserWidget= true;
	protected void internalCreatePartControl(Composite parent) {		try {			if (fgBrowserDoesNotWorkOnPlatform)				fIsUsingBrowserWidget= false;			else {				fBrowser= new Browser(parent, SWT.NONE);				fIsUsingBrowserWidget= true;			}		} catch (SWTError er) {						/* The Browser widget throws an SWTError if it fails to			 * instantiate properly. Application code should catch			 * this SWTError and disable any feature requiring the			 * Browser widget.			 * Platform requirements for the SWT Browser widget are available			 * from the SWT FAQ web site. 			 */						IPreferenceStore store= JavaPlugin.getDefault().getPreferenceStore();			boolean doNotWarn= store.getBoolean(DO_NOT_WARN_PREFERENCE_KEY);			if (!doNotWarn) {				String title= InfoViewMessages.getString("JavadocView.error.noBrowser.title"); //$NON-NLS-1$				String message= InfoViewMessages.getString("JavadocView.error.noBrowser.message"); //$NON-NLS-1$				String toggleMessage= InfoViewMessages.getString("JavadocView.error.noBrowser.doNotWarn"); //$NON-NLS-1$"Do not warn me again.";				MessageDialogWithToggle dialog= MessageDialogWithToggle.openError(parent.getShell(), title, message, toggleMessage, false, null, null); //$NON-NLS-1$				if (dialog.getReturnCode() == Window.OK)					store.setValue(DO_NOT_WARN_PREFERENCE_KEY, dialog.getToggleState());			}						fIsUsingBrowserWidget= false;		}				if (!fIsUsingBrowserWidget) {			fText= new StyledText(parent, SWT.V_SCROLL | SWT.H_SCROLL);			fText.setEditable(false);			fPresenter= new HTMLTextPresenter(false);						fText.addControlListener(new ControlAdapter() {				/*				 * @see org.eclipse.swt.events.ControlAdapter#controlResized(org.eclipse.swt.events.ControlEvent)				 */				public void controlResized(ControlEvent e) {					setInput(fText.getText());				}			});		}				initStyleSheetURL();		getViewSite().setSelectionProvider(new SelectionProvider(getControl()));	}