Author: dmaliarevich
Date: 2009-10-13 07:07:44 -0400 (Tue, 13 Oct 2009)
New Revision: 18062
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/mozilla/MozillaEditor.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/selbar/SelectionBar.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4968, VPE toolbar icon will be updated on
Selection Bar closing.
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 2009-10-13
10:41:17 UTC (rev 18061)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2009-10-13
11:07:44 UTC (rev 18062)
@@ -2802,4 +2802,11 @@
return selectionManager;
}
+ /*
+ *
https://jira.jboss.org/jira/browse/JBIDE-4968
+ * Updating VPE toolbar on selection bar changes.
+ */
+ public void updateVpeToolbar() {
+ visualEditor.updateShowSelectionBarItem(selectionBar.isVisible());
+ }
}
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java 2009-10-13
10:41:17 UTC (rev 18061)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java 2009-10-13
11:07:44 UTC (rev 18062)
@@ -1105,4 +1105,8 @@
rotateEditorsAction.setToolTipText(layoutNames.get(prefsOrientation));
}
}
+
+ public void updateShowSelectionBarItem(boolean checked) {
+ showSelectionBarAction.setChecked(checked);
+ }
}
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/selbar/SelectionBar.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/selbar/SelectionBar.java 2009-10-13
10:41:17 UTC (rev 18061)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/selbar/SelectionBar.java 2009-10-13
11:07:44 UTC (rev 18062)
@@ -199,6 +199,13 @@
splitter.getParent().layout(true, true);
this.visible = visible;
+ /*
+ *
https://jira.jboss.org/jira/browse/JBIDE-4968
+ * Updating VPE toolbar on selection bar changes.
+ */
+ if (vpeController != null) {
+ vpeController.updateVpeToolbar();
+ }
fireVisibilityListeners();
}