Menu

#127 Combine Uses Clause Manager with favorites in Search path dialog

None
open
None
5
2026-02-14
2020-11-08
No

GExperts already adds a favorites button to the Search Path dialog. The directories configured there could also be used to find units in the Uses Clause Manager. If a unit from such a favorite directory is added to the uses clause, the UCM could offer to add the directory to the project search path.

The search path can be set via OTAPI:
IOTAProject.GetProjectOptions.Values['DCC_UnitSearchPath']
or possibly
IOTAProject.GetProjectOptions.Values['SrcDir']
(The latter reads the search path for all supported IDE versions, I haven't tried whether writing is also possible.)

For Delphi 2007 to 2010 the search path is duplicated in

  • DCC_IncludePath
  • DCC_ObjPath
  • DCC_ResourcePath
  • DCC_UnitSearchPath
    Not sure whether it is necessary to set all of them or whether the IDE automatically does this.

Discussion

  • Thomas Mueller

    Thomas Mueller - 2026-02-14
     
  • Thomas Mueller

    Thomas Mueller - 2026-02-14

    The Uses Clause Manager has been able to optionally search the configured favorites (around revision #3374). But it still does not have a way to add to the search path.

     

Log in to post a comment.

MongoDB Logo MongoDB