Author: dvinnichek
Date: 2010-12-20 09:48:54 -0500 (Mon, 20 Dec 2010)
New Revision: 27614
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeEditorPart.java
Log:
fixed behavior of mouse scroll when VPE Preview tab opened as default
(
https://issues.jboss.org/browse/JBIDE-7855)
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeEditorPart.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeEditorPart.java 2010-12-20
13:55:34 UTC (rev 27613)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeEditorPart.java 2010-12-20
14:48:54 UTC (rev 27614)
@@ -326,8 +326,12 @@
* author Denis Maliarevich.
*/
container.setMaximizedControl(null);
- if (sourceContent != null)
+ if (sourceContent != null) {
sourceContent.setVisible(true);
+ if (sourceEditor != null) {
+ activeEditor = sourceEditor;
+ }
+ }
if (visualContent != null)
visualContent.setVisible(true);
if (previewContent != null) {
@@ -351,6 +355,9 @@
setVerticalToolbarVisible(false);
if (sourceContent != null) {
sourceContent.setVisible(true);
+ if (sourceEditor != null) {
+ activeEditor = sourceEditor;
+ }
/*
* Fixes
https://jira.jboss.org/jira/browse/JBIDE-3140
* author Denis Maliarevich.
@@ -396,6 +403,9 @@
if (previewContent != null) {
previewWebBrowser.rebuildDom();
previewContent.setVisible(true);
+ if (previewWebBrowser != null) {
+ activeEditor = previewWebBrowser;
+ }
container.setMaximizedControl(previewContent);
}
break;