🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.opentoolsapi
2 messages
2 total messages Started by Iaacov Sun, 16 Mar 2008 15:35
Editing code
#150
Author: Iaacov
Date: Sun, 16 Mar 2008 15:35
7 lines
909 bytes
Hi all,

I'm using BCB5. Is it possible to browse/edit source code from within a 
property editor?

Thanks,
Iaacov 
Re: Editing code
#151
Author: Gerrit Beuze
Date: Mon, 17 Mar 2008 08:20
22 lines
1879 bytes
> I'm using BCB5. Is it possible to browse/edit source code from within a property editor?

Yes and no:

Yes = You have access to the ToolsAPI that contains interfaces to IOTAEditBuffer
with methods like CreateReader / CreateUndoableWriter (read code/ write code)
and IOTAEditView with methods like SetCursorPos / GetCursorPos.

No= There is no CodeDOM so you can say: go to class x. method y and
insert a line of code. You'll have to parse code yourself to find insertion positions.

Other than that it should work OK.
But it's far from trivial.

Check the link below fo rwhat can be done through the ToolsAPI.
If you deceide to give it a try you'll find lots of examples on the GExperts homepage.

Gerrit Beuze
ModelMaker Tools

Boost your productivity in the Delphi IDE with ModelMaker Code Explorer:
http://www.modelmakertools.com/code-explorer/index.html
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads