diff options
author | William Chen | 2012-05-03 09:38:50 +0000 |
---|---|---|
committer | William Chen | 2012-05-03 09:38:50 +0000 |
commit | 8a95f2529a739c273c58fe83f155775dbdd6b861 (patch) | |
tree | 3c52fc9cae0b72504f4d0eb4ee357619a16ef05f /target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/plugin.xml | |
parent | 240c99910fe7a47deddd5ebd6fae3ac035c8276d (diff) | |
download | org.eclipse.tcf-8a95f2529a739c273c58fe83f155775dbdd6b861.tar.gz org.eclipse.tcf-8a95f2529a739c273c58fe83f155775dbdd6b861.tar.xz org.eclipse.tcf-8a95f2529a739c273c58fe83f155775dbdd6b861.zip |
Target Explorer: Rework refresh handlers (removing delegate) of file
system and process monitor.
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/plugin.xml')
-rw-r--r-- | target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/plugin.xml | 95 |
1 files changed, 88 insertions, 7 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/plugin.xml b/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/plugin.xml index 70c7022cc..e1d141f0b 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/plugin.xml +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/plugin.xml @@ -390,10 +390,9 @@ <iterate ifEmpty="false" operator="and"> - <test - property="org.eclipse.tcf.te.ui.views.isRefreshableElement" - value="true"> - </test> + <instanceof + value="org.eclipse.tcf.te.tcf.filesystem.core.model.FSTreeNode"> + </instanceof> </iterate> </with> </visibleWhen> @@ -911,6 +910,33 @@ tooltip="%command.refreshViewer.tooltip"> </command> </menuContribution> + <menuContribution + locationURI="popup:org.eclipse.tcf.te.ui.views.View#Popup?after=group.refresh"> + <command + commandId="org.eclipse.tcf.te.ui.command.refresh" + id="org.eclipse.tcf.te.ui.commands.refresh" + label="%fsmenu.refresh.label" + mnemonic="f" + style="push" + tooltip="%command.refresh.tooltip"> + <visibleWhen + checkEnabled="false"> + <with + variable="selection"> + <count + value="+"> + </count> + <iterate + ifEmpty="false" + operator="and"> + <instanceof + value="org.eclipse.tcf.te.tcf.filesystem.core.model.FSTreeNode"> + </instanceof> + </iterate> + </with> + </visibleWhen> + </command> + </menuContribution> </extension> <!-- Property page contributions --> @@ -1650,6 +1676,64 @@ </with> </enabledWhen> </handler> + <handler + class="org.eclipse.tcf.te.tcf.filesystem.ui.internal.handlers.RefreshHandler" + commandId="org.eclipse.tcf.te.ui.command.refresh"> + <activeWhen> + <and> + <with + variable="activePartId"> + <or> + <equals + value="org.eclipse.tcf.te.ui.views.View"> + </equals> + <equals + value="org.eclipse.tcf.te.ui.views.Editor"> + </equals> + </or> + </with> + <with + variable="selection"> + <iterate + ifEmpty="false" + operator="and"> + <instanceof + value="org.eclipse.tcf.te.tcf.filesystem.core.model.FSTreeNode"> + </instanceof> + </iterate> + </with> + </and> + </activeWhen> + <enabledWhen> + <with + variable="selection"> + <count + value="+"> + </count> + <iterate + ifEmpty="false" + operator="and"> + <instanceof + value="org.eclipse.tcf.te.tcf.filesystem.core.model.FSTreeNode"> + </instanceof> + <or> + <test + property="org.eclipse.tcf.te.tcf.filesystem.propertytester.treenode.isSystemRoot"> + </test> + <test + property="org.eclipse.tcf.te.tcf.filesystem.propertytester.treenode.isRoot"> + </test> + <test + property="org.eclipse.tcf.te.tcf.filesystem.propertytester.treenode.isDirectory"> + </test> + <test + property="org.eclipse.tcf.te.tcf.filesystem.propertytester.treenode.isFile"> + </test> + </or> + </iterate> + </with> + </enabledWhen> + </handler> </extension> @@ -1750,9 +1834,6 @@ type="org.eclipse.jface.viewers.ILabelProvider"> </adapter> <adapter - type="org.eclipse.tcf.te.ui.views.interfaces.handler.IRefreshHandlerDelegate"> - </adapter> - <adapter type="org.eclipse.ui.IPersistableElement"> </adapter> </factory> |