Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Reloading plugin.xml
Reloading plugin.xml [message #289986] Tue, 16 August 2005 10:08 Go to next message
Eclipse UserFriend
Originally posted by: prachi.chitnis.tcs.com

Hi
I am developing a plugin for Eclipse3.0 that modifies its own plugin.xml
file .
The problem is that even after i restart my Eclipse, the changes are in
plugin.xml are not reflectd in the plug-in.
according to Eclipse documentations, eclipse rescans all the plug-ins
folder and loads on restart.

This problem does not occur when i run the plugin as runtime-workbench ,
when the plug-in is reloaded with new configurations.

please help... as reloading the plugin.xml is vital to my project.
-regards
Prachi
Re: Reloading plugin.xml [message #289987 is a reply to message #289986] Tue, 16 August 2005 10:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Daniel.Hirscher.innovations.de

Prachi,

> I am developing a plugin for Eclipse3.0 that modifies its own plugin.xml
> file .

What if your plug-in must run on a system where you do not have
write permission on your plug-in folder (Linux/UNIX)?
What if PDE decides to JAR your plug-in?

Don't expect that you can write to your plug-in directory!

> The problem is that even after i restart my Eclipse, the changes are in
> plugin.xml are not reflectd in the plug-in.
> according to Eclipse documentations, eclipse rescans all the plug-ins
> folder and loads on restart.

Eclipse rescans only if you use -clean as command line argument.


Daniel
Re: Reloading plugin.xml [message #289988 is a reply to message #289987] Tue, 16 August 2005 10:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: prachi.chitnis.tcs.com

Thanx Daniel for the promt reply. atleast the plugin is working now..
I was wondering if there is any way by which i can reload plugin.xml in
the PluginName Class.
Re: Reloading plugin.xml [message #289991 is a reply to message #289988] Tue, 16 August 2005 12:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sunil_kamath.nohotspammail.com

"Prachi Chitnis" <prachi.chitnis@tcs.com> wrote in message
news:dc4eda34c59abb1d1b9bff377696ba3a$1@www.eclipse.org...
> Thanx Daniel for the promt reply. atleast the plugin is working now..
> I was wondering if there is any way by which i can reload plugin.xml in
> the PluginName Class.
>

It is an extremely bad idea to modify the plugin.xml at runtime.
What exactly are you trying to achieve which needs this functionality?
---
Sunil
Re: Reloading plugin.xml [message #289996 is a reply to message #289991] Tue, 16 August 2005 13:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: prachi.chitnis.tcs.com

Hi Sunil,
we are trying to develop a "hot-keys plugin" to insert code snippets in
the java editor.
Eclipse3.0 does not seem to have any API for binding a key to a
command/action at runtime. Hence we need to modify the plugin.xml and add
new actions,commands and keybindings at runtime.
But the main draw back is that this will be activated next time I open
Eclipse and that too with -clean argument.
I am looking despeartely for solution.
Thanks in advance
Prachi
Re: Reloading plugin.xml [message #289998 is a reply to message #289996] Tue, 16 August 2005 15:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sunil_kamath.nohotspammail.com

"Prachi Chitnis" <prachi.chitnis@tcs.com> wrote in message
news:6da0a61cd0b0772ad578ce0e26a00b2f$1@www.eclipse.org...
> Hi Sunil,
> we are trying to develop a "hot-keys plugin" to insert code snippets in
> the java editor.
> Eclipse3.0 does not seem to have any API for binding a key to a
> command/action at runtime. Hence we need to modify the plugin.xml and add
> new actions,commands and keybindings at runtime.
> But the main draw back is that this will be activated next time I open
> Eclipse and that too with -clean argument.
> I am looking despeartely for solution.
> Thanks in advance
> Prachi
>
There has been a lot of discussion on this newsgroup recently on how to do
key bindings at runtime.
I suggest you look at how the Keys preference page does it.
---
Sunil
Re: Reloading plugin.xml [message #289999 is a reply to message #289998] Tue, 16 August 2005 15:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: prachi.chitnis.tcs.com

Hi sunil,
i had been a part of that discussion, and I had sent in a link about the
bug file for runtime key-binding. It seems that although earlier and later
versions of eclipse do support runtime key binding.. it is missing in
Eclipse3.0
regards
Prachi
Re: Reloading plugin.xml [message #290034 is a reply to message #289996] Wed, 17 August 2005 21:48 Go to previous message
Eclipse UserFriend
Originally posted by: pascal.ibm.canada

I'm not sure if keybindings are dynamic in 3.0, but if they are then why
don't you simply create a new plugin on the fly and install it using the
osgi apis (BundleContext.install()).


PaScaL

Prachi Chitnis wrote:
> Hi Sunil,
> we are trying to develop a "hot-keys plugin" to insert code snippets in
> the java editor.
> Eclipse3.0 does not seem to have any API for binding a key to a
> command/action at runtime. Hence we need to modify the plugin.xml and
> add new actions,commands and keybindings at runtime.
> But the main draw back is that this will be activated next time I open
> Eclipse and that too with -clean argument.
> I am looking despeartely for solution.
> Thanks in advance
> Prachi
>
>
Previous Topic:ftp plugin working in 3.1?
Next Topic:Eclipse CVS Plugin
Goto Forum:
  


Current Time: Thu Jul 17 21:32:53 EDT 2025

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

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

Back to the top