Author: mareshkau
Date: 2008-04-23 07:04:41 -0400 (Wed, 23 Apr 2008)
New Revision: 7703
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
Log:
JBIDE-2114
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2008-04-23
08:34:25 UTC (rev 7702)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2008-04-23
11:04:41 UTC (rev 7703)
@@ -396,7 +396,7 @@
final int eventType, final Object feature, final Object oldValue,
final Object newValue, final int pos) {
- if (!visualEditorVisible) {
+ if (!isVisualEditorVisible()) {
synced = false;
return;
}
@@ -2635,24 +2635,31 @@
}
public void selectionChanged(SelectionChangedEvent event) {
- if (editPart.getVisualMode() != VpeEditorPart.SOURCE_MODE) {
- if (toolbarFormatControllerManager != null)
- toolbarFormatControllerManager.selectionChanged();
- }
-
- if (selectionBar != null)
- selectionBar.selectionChanged();
-
- if (!switcher
- .startActiveEditor(ActiveEditorSwitcher.ACTIVE_EDITOR_SOURCE)) {
- return;
- }
- if (VpeDebug.PRINT_SOURCE_SELECTION_EVENT) {
- System.out
- .println(">>>>>>>>>>>>>>
selectionChanged " + event.getSource()); //$NON-NLS-1$
- }
- sourceSelectionChanged();
- switcher.stopActiveEditor();
+ //FIX for JBIDE-2114
+ if (!isVisualEditorVisible()) {
+ synced = false;
+ return;
+ }
+ //TODO Max Areshkau Adjust this code, now we haven's source mode
+ if (editPart.getVisualMode() != VpeEditorPart.SOURCE_MODE) {
+ if (toolbarFormatControllerManager != null)
+ toolbarFormatControllerManager.selectionChanged();
+ }
+
+ if (selectionBar != null)
+ selectionBar.selectionChanged();
+
+ if (!switcher
+ .startActiveEditor(ActiveEditorSwitcher.ACTIVE_EDITOR_SOURCE)) {
+ return;
+ }
+ if (VpeDebug.PRINT_SOURCE_SELECTION_EVENT) {
+ System.out
+ .println(">>>>>>>>>>>>>>
selectionChanged " + event.getSource()); //$NON-NLS-1$
+ }
+ sourceSelectionChanged();
+ switcher.stopActiveEditor();
+
}
// nsIClipboardDragDropHooks implementation
Show replies by date