Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 368801

Summary: [TCF][UI] Implement the generic IDeleteHandlerDelegate and integrate it to File System.
Product: [Tools] TCF Reporter: William Chen <william.chen>
Component: TargetAssignee: William Chen <william.chen>
Status: RESOLVED FIXED QA Contact: Uwe Stieber <uwe.st>
Severity: enhancement    
Priority: P3 CC: cdtdoug
Version: unspecified   
Target Milestone: 1.0.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description William Chen CLA 2012-01-17 04:54:17 EST
Delete does provide now the same infra-structure as "Refresh". There is a common command contribution to the view tree that will become visible if an element implements or adapt to "IDeleteHandlerDelegate". Refactor the "Delete" command contribution and handler to get replaced by a IDeleteHandlerDelegate. The expression for the delete handler enablement and activation is pretty complex already. Using the delegate may make it simpler as the enablement will be provided via the IDeleteHandlerDelegate#canDelete(element) method.