Batch source modifications [message #39134] |
Mon, 26 May 2003 06:01  |
Eclipse User |
|
|
|
Originally posted by: scheglov_ke.nlmk.ru
I need to make several modifications of source of ICompilationUnit,
but want to be able to Undo them later as one modification.
Currently I use following method:
ICompilationUnit wc = (ICompilationUnit) getCompilationUnit();
IBuffer buffer = wc.getBuffer();
buffer.replace(start, length, sourcePart);
buffer.replace(start2, length2, sourcePart2);
...etc
How to change this code?
--
SY, Konstantin.
|
|
|
|
|
|
|
Re: Batch source modifications [message #40335 is a reply to message #39350] |
Tue, 27 May 2003 05:04  |
Eclipse User |
|
|
|
Originally posted by: scheglov_ke.nlmk.ru
"Michael TДge" <m-taege@t-online.de> wrote:
> there are working copies for ICompilationUnit's
> (ICompilationUnit.getWorkingCopy()).
> Maybe they will fit your needs.
Thank you, I will try.
> Michael
> "Konstantin Scheglov" <scheglov_ke@nlmk.ru> schrieb im Newsbeitrag
> news:15HcA32IDHA.3160@fairy.ao.nlmk...
>> I need to make several modifications of source of ICompilationUnit,
>> but want to be able to Undo them later as one modification.
>> Currently I use following method:
>> ICompilationUnit wc = (ICompilationUnit) getCompilationUnit();
>> IBuffer buffer = wc.getBuffer();
>> buffer.replace(start, length, sourcePart);
>> buffer.replace(start2, length2, sourcePart2);
>> ...etc
>>
>> How to change this code?
>>
>>
>> --
>> SY, Konstantin.
--
SY, Konstantin.
|
|
|
Powered by
FUDForum. Page generated in 0.13344 seconds