Author: mareshkau
Date: 2010-12-13 09:21:27 -0500 (Mon, 13 Dec 2010)
New Revision: 27411
Modified:
trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/dialog/AbstractCSSDialog.java
Log:
https://issues.jboss.org/browse/JBIDE-7741
Modified:
trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/dialog/AbstractCSSDialog.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/dialog/AbstractCSSDialog.java 2010-12-13
14:00:33 UTC (rev 27410)
+++
trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/dialog/AbstractCSSDialog.java 2010-12-13
14:21:27 UTC (rev 27411)
@@ -23,7 +23,6 @@
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.dialogs.TitleAreaDialog;
import org.eclipse.swt.SWT;
-import org.eclipse.swt.browser.Browser;
import org.eclipse.swt.custom.SashForm;
import org.eclipse.swt.events.FocusAdapter;
import org.eclipse.swt.events.FocusEvent;
@@ -37,6 +36,7 @@
import org.eclipse.swt.widgets.Text;
import org.jboss.tools.common.model.ui.ModelUIImages;
import org.jboss.tools.common.model.ui.widgets.Split;
+import org.jboss.tools.jst.css.browser.CSSBrowser;
import org.jboss.tools.jst.css.dialog.common.StyleAttributes;
import org.jboss.tools.jst.jsp.messages.JstUIMessages;
import org.jboss.tools.jst.jsp.util.Constants;
@@ -47,7 +47,7 @@
*/
public abstract class AbstractCSSDialog extends TitleAreaDialog {
- private Browser browser;
+ private CSSBrowser browser;
private Text previewText;
@@ -162,7 +162,7 @@
true);
previewComposite.setLayoutData(gridData);
- browser = new Browser(previewComposite, SWT.BORDER | SWT.MOZILLA);
+ browser = CSSBrowser.createCSSBrowser(previewComposite, SWT.BORDER | SWT.MOZILLA);
browser.setText(generateBrowserPage());
browser.setLayoutData(gridData);
browser.addMouseListener(new MouseAdapter() {
@@ -255,10 +255,6 @@
return super.close();
}
- public Browser getBrowser() {
- return browser;
- }
-
public StyleAttributes getStyleAttributes() {
return styleAttributes;
}