Author: dmaliarevich
Date: 2008-11-17 08:47:28 -0500 (Mon, 17 Nov 2008)
New Revision: 11842
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeEditorPart.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3140, fixes sashes' zero width when tabs are
switching.
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 2008-11-17
13:29:27 UTC (rev 11841)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeEditorPart.java 2008-11-17
13:47:28 UTC (rev 11842)
@@ -363,6 +363,11 @@
switch (type) {
case VISUALSOURCE_MODE:
selectionBar.showBar(showSelectionBar);
+ /*
+ * Fixes
https://jira.jboss.org/jira/browse/JBIDE-3140
+ * author Denis Maliarevich.
+ */
+ container.setMaximizedControl(null);
if (sourceContent != null)
sourceContent.setVisible(true);
if (visualContent != null)
@@ -387,6 +392,11 @@
selectionBar.showBar(showSelectionBar);
if (sourceContent != null) {
sourceContent.setVisible(true);
+ /*
+ * Fixes
https://jira.jboss.org/jira/browse/JBIDE-3140
+ * author Denis Maliarevich.
+ */
+ container.setMaximizedControl(sourceContent);
//Added by Max Areshkau
//was fixed bug(border which drawed by iflasher doesn't hide on MACOS when we
swith
@@ -396,28 +406,37 @@
// visualEditor.getController().visualRefresh();
// }
}
- if (visualContent != null)
- visualContent.setVisible(false);
- if (previewContent != null) {
- previewContent.setVisible(false);
- }
+ /*
+ * Fixes
https://jira.jboss.org/jira/browse/JBIDE-3140
+ * author Denis Maliarevich.
+ */
+// if (visualContent != null)
+// visualContent.setVisible(false);
+// if (previewContent != null) {
+// previewContent.setVisible(false);
+// }
break;
case PREVIEW_MODE:
if (selectionBar != null) {
selectionBar.showBar("no");
}
- if (sourceContent != null) {
- sourceContent.setVisible(false);
- }
+ /*
+ * Fixes
https://jira.jboss.org/jira/browse/JBIDE-3140
+ * author Denis Maliarevich.
+ */
+// if (sourceContent != null) {
+// sourceContent.setVisible(false);
+// }
+//
+// if (visualContent != null) {
+// visualContent.setVisible(false);
+// }
- if (visualContent != null) {
- visualContent.setVisible(false);
- }
-
if (previewContent != null) {
previewWebBrowser.rebuildDom();
previewContent.setVisible(true);
+ container.setMaximizedControl(previewContent);
}
break;
}