Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » [registry] how to refresh?
[registry] how to refresh? [message #176532] Wed, 07 January 2004 08:37 Go to next message
Simon Li is currently offline Simon LiFriend
Messages: 16
Registered: July 2009
Junior Member
Hi,

Can anyone tell me how to refresh the plugin registry?
Actually I was killed by a rather "easy" issue: can't rename a plugin jar
file after it was installed.

My step by step error reproduce instruction:

1. A clear install of 3.0M6, start eclipse by:
eclipse.exe -vm D:\java\j2sdk1.4.2_02\bin\javaw.exe -data
D:\study\eclipse3.0 -vmargs -Xmx512M
2. Follow the online tutorial and create a sample plugin: Helloworld
3. Create a directory org.eclipse.examples.helloworld under
\eclipseroot\plugins,
copy helloworld.jar and plugin.xml to that directory.
4. Restart eclipse, and the sample works properly. from main menu window ->
open view -> other,
we can see "Hello greetings" under "Hello" catalog.
5. Modify plugin.xml:
change the jar file name from "helloworld.jar" to "helloworldtest6.jar",
change the category name from "Hello" to "Hello6"
change the view name from "Hello Greetings" to "Hello Greetings6"
6. Rebuild the project and update jar files and plugin.xml in
\eclipseroot\plugins\org.eclipse.examples.helloworld
7. Restart eclipse but from main menu window -> open view -> other, no
changes happen.

I managed to refresh the registry by deleting the following files in
\eclipseroot\.config
..bundledata
..state
..registry,
but I think this is not the right way.

8. if we delete \eclipseroot\plugins\org.eclipse.examples.helloworld,
restart eclipse and an error occurs, the eclipse UI is restored to empty
resource perspective.

My enviorment:
eclipse 3.0M6
j2sdk1.4.2_02
windows 2000 sp4

Any comments? Thanks for reading such long, :)

Simon
Re: [registry] how to refresh? [message #178327 is a reply to message #176532] Mon, 12 January 2004 02:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jeff_mcaffer.ca.ibm.com

Simon

There is a bug in the platform currently. Deleting the .config dir is the
safest way of getting Eclipse to flush all cached info etc. The problem
will be fixed in the next week or so.

Jeff

"Simon Li" <ali_fred@21cn.com> wrote in message
news:btgger$pqc$1@eclipse.org...
> Hi,
>
> Can anyone tell me how to refresh the plugin registry?
> Actually I was killed by a rather "easy" issue: can't rename a plugin jar
> file after it was installed.
>
> My step by step error reproduce instruction:
>
> 1. A clear install of 3.0M6, start eclipse by:
> eclipse.exe -vm D:\java\j2sdk1.4.2_02\bin\javaw.exe -data
> D:\study\eclipse3.0 -vmargs -Xmx512M
> 2. Follow the online tutorial and create a sample plugin: Helloworld
> 3. Create a directory org.eclipse.examples.helloworld under
> \eclipseroot\plugins,
> copy helloworld.jar and plugin.xml to that directory.
> 4. Restart eclipse, and the sample works properly. from main menu
window ->
> open view -> other,
> we can see "Hello greetings" under "Hello" catalog.
> 5. Modify plugin.xml:
> change the jar file name from "helloworld.jar" to "helloworldtest6.jar",
> change the category name from "Hello" to "Hello6"
> change the view name from "Hello Greetings" to "Hello Greetings6"
> 6. Rebuild the project and update jar files and plugin.xml in
> \eclipseroot\plugins\org.eclipse.examples.helloworld
> 7. Restart eclipse but from main menu window -> open view -> other, no
> changes happen.
>
> I managed to refresh the registry by deleting the following files in
> \eclipseroot\.config
> .bundledata
> .state
> .registry,
> but I think this is not the right way.
>
> 8. if we delete \eclipseroot\plugins\org.eclipse.examples.helloworld,
> restart eclipse and an error occurs, the eclipse UI is restored to empty
> resource perspective.
>
> My enviorment:
> eclipse 3.0M6
> j2sdk1.4.2_02
> windows 2000 sp4
>
> Any comments? Thanks for reading such long, :)
>
> Simon
>
>
Re: [registry] how to refresh? [message #178384 is a reply to message #178327] Mon, 12 January 2004 06:38 Go to previous message
Simon Li is currently offline Simon LiFriend
Messages: 16
Registered: July 2009
Junior Member
Thank you, Jeff. I also noticed the "[M6] Changed plug-ins not recognized"
thread.

Simon

"Jeff McAffer" <jeff_mcaffer@ca.ibm.com> wrote in message
news:btt1vc$rlv$1@eclipse.org...
> Simon
>
> There is a bug in the platform currently. Deleting the .config dir is the
> safest way of getting Eclipse to flush all cached info etc. The problem
> will be fixed in the next week or so.
>
> Jeff
>
> "Simon Li" <ali_fred@21cn.com> wrote in message
> news:btgger$pqc$1@eclipse.org...
> > Can anyone tell me how to refresh the plugin registry?
> > Actually I was killed by a rather "easy" issue: can't rename a plugin
jar
> > file after it was installed.
Previous Topic:java.lang.UnsatisfiedLinkError
Next Topic:how to disable/hide a Perspective programmatically?
Goto Forum:
  


Current Time: Sat Aug 10 07:40:29 GMT 2024

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

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

Back to the top