Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Open Tools API    [ Add a report in this area ]  
Report #:  46143   Status: Closed
Folding API is severely limited.
Project:  Delphi Build #:  11.0.2627.5503
Version:    11.0 Submitted By:   Clinton Johnson
Report Type:  Suggestion / Enhancement Request Date Reported:  5/17/2007 4:28:24 PM
Severity:    Commonly encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   255772
Resolution: Fixed (Resolution Comments) Resolved in Build: : 14.0.3513.24210
Duplicate of:  None
Voting and Rating
Overall Rating: (2 Total Ratings)
4.00 out of 5
Total Votes: None
Description
It is impossible to use the current Open Tools API to create a custom keybinding that affects code folding.

IOTAElideActions  does not let you determine in the nearest block is folded or not, and does not provide any of the following options:

Collapse all classes
Collapse all methods
Collapse namespace/unit
Collapse nested procedures
Collapse regions

Since you can not determine if the current folding block is folded or not, toggling functionatly can't be provided either.
Steps to Reproduce:
Attempt to create a custom key binding that provides features available in current keybindings, such as :

Toggle Current: Ctrl+Shift+K T.
Expand All: Ctrl+Shift+K A.
Collapse All: They make this one painful; you have to specify what you want to collapse.
Collapse all classes: Ctrl+Shift+K C.
Collapse all methods: Ctrl+Shift+K M.
Collapse namespace/unit: Ctrl+Shift+K N.
Collapse nested procedures: Ctrl+Shift+K P.
Collapse regions: Ctrl+Shift+K R.

The IOTAElideActions interface fails to provide adequate functionality.
Workarounds
None
Attachment
None
Comments

None

Server Response from: ETNACODE01