Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » rename all plugin's properties
rename all plugin's properties [message #79753] Sat, 21 June 2003 06:26 Go to next message
Eclipse UserFriend
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 #80799 is a reply to message #79753] Mon, 23 June 2003 12:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: John_Arthorne.oti.com_

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
>
Re: rename all plugin's properties [message #83397 is a reply to message #80799] Thu, 26 June 2003 17:15 Go to previous messageGo to next message
Eclipse UserFriend
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
>>
>
Re: rename all plugin's properties [message #84397 is a reply to message #83397] Fri, 27 June 2003 18:19 Go to previous message
Eclipse UserFriend
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
>>>
>>
>
Previous Topic:IProject.setDescription throwing CoreException without any visible reason.
Next Topic:JRE redefinition launch error
Goto Forum:
  


Current Time: Sun May 11 09:34:25 EDT 2025

Powered by FUDForum. Page generated in 0.03234 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top