boolean RTL= (getSite().getShell().getStyle() & SWT.RIGHT_TO_LEFT) != 0; if (javadocHtml != null && RTL) { StringBuffer buffer= new StringBuffer(javadocHtml); HTMLPrinter.insertStyles(buffer, new String[] { "direction:rtl" } ); javadocHtml= buffer.toString(); }
	protected void setInput(Object input) {		String javadocHtml= (String)input;				if (fIsUsingBrowserWidget) {			fBrowser.setText(javadocHtml);		} else {			fPresentation.clear();			Rectangle size=  fText.getClientArea();						try {				javadocHtml= fPresenter.updatePresentation(getSite().getShell().getDisplay(), javadocHtml, fPresentation, size.width, size.height);			} catch (IllegalArgumentException ex) {				// the javadoc might no longer be valid				return;			}			fText.setText(javadocHtml);			TextPresentation.applyTextPresentation(fPresentation, fText);		}	}