Skip to content

Changes

Summary

  1. Add custom sort for TCFNodeModule objects (details)
Commit f3fde2dea965f6c4f47c24291bf83e9a9c63d101 by Lisa-Marie Saru
Add custom sort for TCFNodeModule objects

Main change:
- Applies to: org.eclipse.tcf/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNodeModule.java
- Add custom sorting for TCFNodeModule objects by allowing of setting the sort position attribute.
- Add flag for default sorting

Impacts:
- Applies to: org.eclipse.tcf/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFChildrenModules.java
- Solution (implemented):
   - check if default sorting flag is enabled and proceed with current implementation
   - else, use sorting position established by client
   - flag checking needed so the sorting position will not be overwritten

Useful for:
- Sort Modules view nodes based on different criteria
The file was modified plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFChildrenModules.java
The file was modified plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNodeModule.java