rename all plugin's properties [message #79753] |
Sat, 21 June 2003 06:26  |
Eclipse User |
|
|
|
Hi,
I have recently renamed the packages of my plugin, and
also renamed all project properties' qualified names.
What is the best way to update all properties which are already stored
to have the new names ?
I would like to iterate over all project's properties, find the ones
that start with the old name and rename them. However it seems that
iterating over all project's properties is not possible. Is there
another way around ?
Genady
|
|
|
|
|
Re: rename all plugin's properties [message #84397 is a reply to message #83397] |
Fri, 27 June 2003 18:19  |
Eclipse User |
|
|
|
Originally posted by: John_Arthorne.oti.com_
For the most part we have avoided renaming any plugins or property keys.
If we have done renaming, then we have had to add backwards
compatibility code to manually remove the old keys. Typically we will
use a metadata version stamp, so we can quickly check if the metadata
version number has changed, and then recompute from scratch or convert
as necessary. Yes, there are internal methods that do something
similar, but nothing in the API.
--
Genady wrote:
> You understood me right. It looks like there is such option, but it's
> just not an API. Am I right about it?
>
> What did you (eclipse developers) do when you renamed the plugins?
>
> Genady
>
> John Arthorne wrote:
>
>> There's no way to iterate over all of a project's properties (I assume
>> you mean either IResource session or persistent properties). You can
>> only interete over all resources (for example with IResourceVisitor),
>> and check each one for the desired property. In the case of session
>> properties, the resource proxy visitor allows you to do this in a very
>> efficient way... see IResourceProxyVisitor for more details.
>> Apologies if I misunderstood what you meant by "properties", it's a
>> bit of an overloaded term.
>> --
>>
>>
>> Genady wrote:
>>
>>> Hi,
>>>
>>> I have recently renamed the packages of my plugin, and
>>> also renamed all project properties' qualified names.
>>>
>>> What is the best way to update all properties which are already
>>> stored to have the new names ?
>>>
>>> I would like to iterate over all project's properties, find the ones
>>> that start with the old name and rename them. However it seems that
>>> iterating over all project's properties is not possible. Is there
>>> another way around ?
>>>
>>> Genady
>>>
>>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03234 seconds