🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.opentoolsapi
Article #151

Re: Editing code

#151
From: 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
Technical Details
Message-ID: <47de29c5$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!out04a.usenetserver.com!news.usenetserver.com!in04.usenetserver.com!news.usenetserver.com!nx02.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <47dd3e2e@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10c3df,ff92352d412c3e9a
X-Google-Attributes: gid10c3df,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Gerrit Beuze" <gerrit[at][-nospam]modelmakertools[dot]com>
Newsgroups: borland.public.delphi.opentoolsapi
References: <47dd3e2e@newsgroups.borland.com>
Subject: Re: Editing code
Date: Mon, 17 Mar 2008 09:20:19 +0100
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 91.56.83.219
Message-ID: <47de29c5$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1205742021 91.56.83.219 (17 Mar 2008 01:20:21 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!out04a.usenetserver.com!news.usenetserver.com!in04.usenetserver.com!news.usenetserver.com!nx02.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail