Author: sdzmitrovich
Date: 2009-06-07 08:54:48 -0400 (Sun, 07 Jun 2009)
New Revision: 15760
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/AbstractCSSDialog.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4394
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/AbstractCSSDialog.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/AbstractCSSDialog.java 2009-06-06
20:57:04 UTC (rev 15759)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/AbstractCSSDialog.java 2009-06-07
12:54:48 UTC (rev 15760)
@@ -164,19 +164,14 @@
browser.addMouseListener(new MouseAdapter() {
public void mouseDoubleClick(MouseEvent e) {
if (e.widget == browser) {
- browser.setVisible(false);
- previewText.setVisible(true);
- previewText.setFocus();
+ previewComposite.setMaximizedControl(previewText);
}
- previewComposite.layout();
}
});
previewText = new Text(previewComposite, SWT.NONE | SWT.H_SCROLL);
previewText.setLayoutData(gridData);
previewText.setText(getPreviewContent());
- previewText.setEditable(true);
- previewText.setVisible(false);
previewText.addFocusListener(new FocusAdapter() {
public void focusLost(FocusEvent e) {
if (e.widget == previewText) {
@@ -188,14 +183,12 @@
}
browser.setText(generateBrowserPage());
- previewText.setVisible(false);
- browser.setVisible(true);
- previewComposite.layout();
+ previewComposite.setMaximizedControl(browser);
}
}
});
- previewComposite.layout();
+ previewComposite.setMaximizedControl(browser);
return previewComposite;
}