Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » 2 plugin development questions
2 plugin development questions [message #211355] Mon, 15 March 2004 11:21 Go to next message
Eclipse UserFriend
Originally posted by: darkit.mail.ru

Hi alls,

I've got 2 questions:

1 - how can i get directory for plugins home or I can retrive ECLIPSE_HO=
ME =

and append "plugins"
2 - I created a simple Hello World plugin. How can i know in =

IWorkbenchWindowActionDelegate which plugin call him?
I tried in public void run(IAction action) invoke my function:
private void findDepends() {
ResourcesPlugin plugin =3D ResourcesPlugin.getPlugin();
URL pluginDir =3D plugin.find(new Path(".."));
System.out.println(pluginDir);
...
}
and got exception :

Unhandled event loop exception
Reason:
org/eclipse/core/resources/ResourcesPlugin

How can i get plugin wich called my ActionDelefate ?

Thank's
Re: 2 plugin development questions [message #211423 is a reply to message #211355] Mon, 15 March 2004 12:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

Max Grigoriev wrote:

> Hi alls,
>
> I've got 2 questions:
>
> 1 - how can i get directory for plugins home or I can retrive
> ECLIPSE_HOME and append "plugins"
You can't. There is no "plugins" home. The plugins reside where they
were installed. This can be in multiple locations.

> 2 - I created a simple Hello World plugin. How can i know in
> IWorkbenchWindowActionDelegate which plugin call him?
>
There is no concept of a plugin calling your action. What do you need
this for? Maybe we can come up with what is really needed.

> Thank's
>

--
Thanks, Rich Kulp

Re: 2 plugin development questions [message #211872 is a reply to message #211423] Tue, 16 March 2004 06:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: darkit.mail.ru

Often I install a plugin and it doesn't work, because it requeries anoth=
er =

plugins.
So i want to write a plugin which iterate over all installed plugins and=
=

show me which ones i have to install.
I'm a beginner at eclipse and maybe solution has already existed. ;)

On Mon, 15 Mar 2004 12:00:14 -0500, Rich Kulp =

<richkulp@NO.SPAM.us.ibm.com> wrote:

>
>
> Max Grigoriev wrote:
>
>> Hi alls,
>> I've got 2 questions:
>> 1 - how can i get directory for plugins home or I can retrive =

>> ECLIPSE_HOME and append "plugins"
> You can't. There is no "plugins" home. The plugins reside where they =

> were installed. This can be in multiple locations.
>
>> 2 - I created a simple Hello World plugin. How can i know in =

>> IWorkbenchWindowActionDelegate which plugin call him?
>>
> There is no concept of a plugin calling your action. What do you need =
=

> this for? Maybe we can come up with what is really needed.
>
>> Thank's
Re: 2 plugin development questions [message #211940 is a reply to message #211872] Tue, 16 March 2004 09:39 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

I presume when you say install a plugin, you actually mean import the
plugin into your workspace for development. That is different then
install. Installing a plugin means making it available for Eclipse to
use as a plugin, and if a required plugin is not there, looking at all
of the installed plugins won't help because it isn't there to be found.

Please read:

http://www.eclipse.org/articles/Article-PDE-does-plugins/PDE -intro.html

This will explain how you do plugin development.


--
Thanks, Rich Kulp

Previous Topic:org.eclipse.swt.SWTError: No more handles
Next Topic:how can get mapping between comman and keystroke
Goto Forum:
  


Current Time: Mon Apr 28 01:58:46 EDT 2025

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

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

Back to the top