polish refresh action, use common refresh action
Signed-off-by: Florian Thienel <florian@thienel.org>
diff --git a/org.eclipse.vex.ui/icons/refresh.gif b/org.eclipse.vex.ui/icons/refresh.gif
new file mode 100644
index 0000000..3ca04d0
--- /dev/null
+++ b/org.eclipse.vex.ui/icons/refresh.gif
Binary files differ
diff --git a/org.eclipse.vex.ui/plugin.xml b/org.eclipse.vex.ui/plugin.xml
index 7ac9fe5..0c646ac 100644
--- a/org.eclipse.vex.ui/plugin.xml
+++ b/org.eclipse.vex.ui/plugin.xml
@@ -189,12 +189,6 @@
id="org.eclipse.vex.ui.SetProcessingInstructionTargetCommand"
name="%command.setProcessingInstructionTarget.name">
</command>
- <command
- categoryId="org.eclipse.vex.ui.commands.category"
- defaultHandler="org.eclipse.vex.ui.boxview.RefreshHandler"
- id="org.eclipse.vex.ui.RefreshBoxViewCommand"
- name="Refresh Box View">
- </command>
</extension>
<extension
@@ -780,6 +774,15 @@
<reference definitionId="org.eclipse.vex.ui.activeVexEditor"/>
</activeWhen>
</handler>
+ <handler
+ class="org.eclipse.vex.ui.boxview.RefreshHandler"
+ commandId="org.eclipse.ui.file.refresh">
+ <activeWhen>
+ <reference
+ definitionId="org.eclipse.vex.ui.activeBoxView">
+ </reference>
+ </activeWhen>
+ </handler>
<!-- TODO:
- org.eclipse.ui.edit.text.join.lines
@@ -956,6 +959,15 @@
</with>
</or>
</definition>
+ <definition
+ id="org.eclipse.vex.ui.activeBoxView">
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.vex.ui.views.box">
+ </equals>
+ </with>
+ </definition>
</extension>
<extension
point="org.eclipse.ui.services">
@@ -1268,10 +1280,10 @@
</menuContribution>
<menuContribution
allPopups="false"
- locationURI="menu:org.eclipse.vex.ui.views.box">
+ locationURI="toolbar:org.eclipse.vex.ui.views.box">
<command
- commandId="org.eclipse.vex.ui.RefreshBoxViewCommand"
- icon="icons/vex16.png"
+ commandId="org.eclipse.ui.file.refresh"
+ icon="icons/refresh.gif"
label="Refresh"
style="push"
tooltip="Refresh the BoxView">