[registry] how to refresh? [message #176532] |
Wed, 07 January 2004 03:37  |
Eclipse User |
|
|
|
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] |
Sun, 11 January 2004 21:50   |
Eclipse User |
|
|
|
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 01:38  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.07832 seconds