Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Chen2012-05-03 03:12:57 -0400
committerWilliam Chen2012-05-03 03:12:57 -0400
commit5a9e98c22824955562adfd7e7900c7022377899c (patch)
tree63edf9f1efb1f1c33ae313c874920e875640403c /target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/plugin.xml
parent1e5af2f860f17aaa7e1b5ceba3f8dc11fe0915fe (diff)
downloadorg.eclipse.tcf-5a9e98c22824955562adfd7e7900c7022377899c.tar.gz
org.eclipse.tcf-5a9e98c22824955562adfd7e7900c7022377899c.tar.xz
org.eclipse.tcf-5a9e98c22824955562adfd7e7900c7022377899c.zip
Target Explorer: Modification: Change DeleteHandler from
IDeleteHandlerDelegate to standard Eclipse command/handler framework.
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.xml51
1 files changed, 39 insertions, 12 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 82e3fa2e1..70c7022cc 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
@@ -957,13 +957,6 @@
properties="isEditorActivation"
type="org.eclipse.jface.viewers.ColumnViewerEditorActivationEvent">
</propertyTester>
- <propertyTester
- id="org.eclipse.tcf.te.tcf.filesystem.propertytester.treenode"
- class="org.eclipse.tcf.te.tcf.filesystem.ui.internal.testers.TreeNodePropertyTester"
- namespace="org.eclipse.tcf.te.tcf.filesystem"
- properties="canDelete"
- type="org.eclipse.tcf.te.tcf.filesystem.core.model.FSTreeNode">
- </propertyTester>
</extension>
<!-- Command contributions -->
@@ -1596,7 +1589,7 @@
<handler
commandId="org.eclipse.ui.edit.delete"
- class="org.eclipse.tcf.te.tcf.ui.handler.DeleteHandler">
+ class="org.eclipse.tcf.te.tcf.filesystem.ui.internal.handlers.DeleteHandler">
<activeWhen>
<and>
<with variable="activePartId">
@@ -1614,11 +1607,45 @@
</activeWhen>
<enabledWhen>
<with variable="selection">
+ <count
+ value="+">
+ </count>
<iterate operator="and" ifEmpty="false">
- <test
- property="org.eclipse.tcf.te.tcf.filesystem.canDelete"
- value="true">
- </test>
+ <instanceof
+ value="org.eclipse.tcf.te.tcf.filesystem.core.model.FSTreeNode">
+ </instanceof>
+ <not>
+ <test
+ property="org.eclipse.tcf.te.tcf.filesystem.propertytester.treenode.isSystemRoot">
+ </test>
+ </not>
+ <not>
+ <test
+ property="org.eclipse.tcf.te.tcf.filesystem.propertytester.treenode.isRoot">
+ </test>
+ </not>
+ <or>
+ <and>
+ <test
+ property="org.eclipse.tcf.te.tcf.filesystem.propertytester.treenode.isWindows">
+ </test>
+ <not>
+ <test
+ property="org.eclipse.tcf.te.tcf.filesystem.propertytester.treenode.isReadOnly">
+ </test>
+ </not>
+ </and>
+ <and>
+ <not>
+ <test
+ property="org.eclipse.tcf.te.tcf.filesystem.propertytester.treenode.isWindows">
+ </test>
+ </not>
+ <test
+ property="org.eclipse.tcf.te.tcf.filesystem.propertytester.treenode.isWritable">
+ </test>
+ </and>
+ </or>
</iterate>
</with>
</enabledWhen>

Back to the top