opentools

Adding a unit automatically to the project

血红的双手。 提交于 2020-01-21 05:06:10
问题 I am working on a component in Delphi 7 and Delphi 2006 , where I am using a unit which I need to add to the .dpr file of the project on which the component is dropped automatically. Like the way Eureka Log automatically adds the unit 'ExceptionLog' to the project file: Can anyone tell me how to programmatically add a unit to the project file when I drop my component on any form in the project? 回答1: You most likely have to use the Open Tools API for that. Also it might require to write a

Adding a unit automatically to the project

不羁的心 提交于 2020-01-21 05:05:06
问题 I am working on a component in Delphi 7 and Delphi 2006 , where I am using a unit which I need to add to the .dpr file of the project on which the component is dropped automatically. Like the way Eureka Log automatically adds the unit 'ExceptionLog' to the project file: Can anyone tell me how to programmatically add a unit to the project file when I drop my component on any form in the project? 回答1: You most likely have to use the Open Tools API for that. Also it might require to write a

How to detect if file in IDE is being edited using Open Tools API

旧街凉风 提交于 2019-12-06 02:06:16
问题 I made a small IDE plug-in using Open Tools API that accesses ClearCase. It has menu items "Check In", "Check Out", etc. It works OK but I want it to check out a read-only file automatically if I start typing in IDE editor or if I attempt to save the file. Do you think this is possible? I tried a few things but gave up eventually. IOTAEditorServices.KeyboardServices has AddKeyboardBinding method which looked promising. Using it I added a notifier with binding type btPartial (and later tried

Delphi-IDE: how to change the way class-completion works?

别等时光非礼了梦想. 提交于 2019-12-04 09:45:19
问题 Class completion in Delphi is a big time-saver, but I haven't found a way to customize it. I would like a getter and setter for a property to be grouped together instead of being thrown all over my unit; The interface part is generated properly, but the implementation section becomes a mess if you leave things up to the IDE. I want methods to be ordered like this by default: function TAaa.getAaa(); procedure TAaa.setAaa(); procedure TAaa.Baa(); function TAaa.getCow(); procedure TAaa.setCow();

How to detect if file in IDE is being edited using Open Tools API

北城余情 提交于 2019-12-04 06:37:41
I made a small IDE plug-in using Open Tools API that accesses ClearCase. It has menu items "Check In", "Check Out", etc. It works OK but I want it to check out a read-only file automatically if I start typing in IDE editor or if I attempt to save the file. Do you think this is possible? I tried a few things but gave up eventually. IOTAEditorServices.KeyboardServices has AddKeyboardBinding method which looked promising. Using it I added a notifier with binding type btPartial (and later tried btComplete) and the plug-in started detecting some shortcut key presses but not all keyboard events, far

Delphi-IDE: how to change the way class-completion works?

ε祈祈猫儿з 提交于 2019-12-03 03:18:32
Class completion in Delphi is a big time-saver, but I haven't found a way to customize it. I would like a getter and setter for a property to be grouped together instead of being thrown all over my unit; The interface part is generated properly, but the implementation section becomes a mess if you leave things up to the IDE. I want methods to be ordered like this by default: function TAaa.getAaa(); procedure TAaa.setAaa(); procedure TAaa.Baa(); function TAaa.getCow(); procedure TAaa.setCow(); procedure TBbb.getAaa() I want the implementation section to be in the same order as the interface; I