Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How can i activate my plugin on loading Eclipse IDE
How can i activate my plugin on loading Eclipse IDE [message #87080] Wed, 02 July 2003 00:40 Go to next message
Eclipse UserFriend
Hi,

I like to load my plugin as soon as the Eclipse IDE is loaded how can i do
that. Currently i am able to activate the plugin when ever i come across a
plugin point like menu, toolbar or some property pages. But i need to
activate as soon as the Eclipse IDE is loaded.
Re: How can i activate my plugin on loading Eclipse IDE [message #87094 is a reply to message #87080] Wed, 02 July 2003 01:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: burner.zclipse.org

On Wed, 02 Jul 2003 04:40:54 +0000, Easwar wrote:

> Hi,
>
> I like to load my plugin as soon as the Eclipse IDE is loaded how can i do
> that. Currently i am able to activate the plugin when ever i come across a
> plugin point like menu, toolbar or some property pages. But i need to
> activate as soon as the Eclipse IDE is loaded.

See the org.eclipse.ui.startup extension point.

http://dev.eclipse.org/help21/index.jsp?topic=/org.eclipse.p latform.doc.isv/reference/extension-points/org_eclipse_ui_st artup.html
Re: How can i activate my plugin on loading Eclipse IDE [message #87179 is a reply to message #87094] Wed, 02 July 2003 06:04 Go to previous messageGo to next message
Eclipse UserFriend
Hi

thanx for the valuable suggestion. I tried this i was able to do but i
face another problem. At this point i like to load certain libraries. How
can i give them. I have had all my required libraries in the <runtime>
tag. But it is not getting loaded.
Re: How can i activate my plugin on loading Eclipse IDE [message #87467 is a reply to message #87179] Wed, 02 July 2003 11:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: burner.zclipse.org

On Wed, 02 Jul 2003 10:04:47 +0000, Easwar wrote:

> Hi
>
> thanx for the valuable suggestion. I tried this i was able to do but i
> face another problem. At this point i like to load certain libraries. How
> can i give them. I have had all my required libraries in the <runtime>
> tag. But it is not getting loaded.

hm... it should be working... did you right click on your plugin.xml and
update the classpath?

mike
Re: How can i activate my plugin on loading Eclipse IDE [message #87867 is a reply to message #87467] Thu, 03 July 2003 01:55 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I tried to update the classpath of the plugin.xml. I also like to tell u
an important thing that i run thru the runtime workbench. Even then the
libraries are not getting loaded which i specified in the plugin.xml file

Thanx for ur valuable replies. Pls give a suggestion for this problem too

bye
Easwar.
Re: How can i activate my plugin on loading Eclipse IDE [message #88301 is a reply to message #87867] Thu, 03 July 2003 13:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: burner.zclipse.org

On Thu, 03 Jul 2003 05:55:29 +0000, Easwar wrote:

> Hi,
>
> I tried to update the classpath of the plugin.xml. I also like to tell u
> an important thing that i run thru the runtime workbench. Even then the
> libraries are not getting loaded which i specified in the plugin.xml
file

That's weird. I do the same thing in my plugins and it works.


> Thanx for ur valuable replies. Pls give a suggestion for this problem
> too

I don't really have any other suggestions at this point :-(

mike

>
> bye
> Easwar.
Re: How can i activate my plugin on loading Eclipse IDE [message #88794 is a reply to message #88301] Fri, 04 July 2003 03:14 Go to previous messageGo to next message
Eclipse UserFriend
Hi mike,

Thanx for all ur valuable replies.

It worked for me when i updated the classpath and then restarted the ide
and ran the application then it worked fine.

bye
Easwar
Re: How can i activate my plugin on loading Eclipse IDE [message #89265 is a reply to message #88794] Fri, 04 July 2003 15:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: burner.zclipse.org

On Fri, 04 Jul 2003 07:14:15 +0000, Easwar wrote:

> Hi mike,
>
> Thanx for all ur valuable replies.
>
> It worked for me when i updated the classpath and then restarted the ide
> and ran the application then it worked fine.

Great! Glad to hear it.

mike

>
> bye
> Easwar
Re: How can i activate my plugin on loading Eclipse IDE [message #90754 is a reply to message #87080] Thu, 10 July 2003 01:52 Go to previous messageGo to next message
Eclipse UserFriend
Hi Rich,

I agree with u that it is not the only plugin which is going to run. The
reason for which i need it to be run at the startup is that because my
plugin will be activated only if i encounter a plugin point such as a
menu,toolbar or a property page like that. If i want to perform some
action when i delete a project where in i delete it without encountering a
plugin point then i wont be able to perform any action. That is why i
wanted to load the plugin at the startup.

Plz guide me if there is any other viable option to do the above said
scenario.

Easwar
Re: How can i activate my plugin on loading Eclipse IDE [message #91013 is a reply to message #90754] Thu, 10 July 2003 10:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NOSPAM.us.ibm.com

Take a look at:

http://www.eclipsecorner.org/articles/Article-Resource-delta s/resource-deltas.html


And scroll down near the bottom to "Save Participents" and link to the
classes listed too. Particularly ISaveParticipent.saving() comment.

Rich
Re: How can i activate my plugin on loading Eclipse IDE [message #94735 is a reply to message #91013] Wed, 16 July 2003 07:44 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Even in this case i need some of my classes to be invoked inorder to have
an access to the ISaveParticipant, which would be done on the activating
of my plugin. And also the actions that have to be done is depeendent on
my plugin.

Pls let me know whether the claim of min is right or wrong.

cheers

Easwar
Re: How can i activate my plugin on loading Eclipse IDE [message #94965 is a reply to message #94735] Wed, 16 July 2003 11:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NOSPAM.us.ibm.com

The main question is, What do you need to do when the project is
deleted? Is it something that can wait until your plugin is next
activated (for whatever reason) and gets told about the delete through
the save participant? Is it something that Eclipse itself can handle
using a specific extension point?

Then we can determine if it is really necessary to do it at startup.

I'm not saying there is never a need for startup, but if you take a look
at all of the fancy things the basic Eclipse does and it itself doesn't
have any startup plugins.

Rich
Re: How can i activate my plugin on loading Eclipse IDE [message #95573 is a reply to message #94965] Thu, 17 July 2003 03:25 Go to previous messageGo to next message
Eclipse UserFriend
> The main question is, What do you need to do when the project is
> deleted?

I am creating a UML model with the java files of the project. When i
delete one of the files i need to remove it from the model. So i need to
have my plugin to be loaded so that i can perform those operations.

Give me any suggestions for doing this if not by loading the plugin during
the startup.

When i try to do that initially from the early startup method my initial
settings are done as it runs in a separate thread. Then when i encounter
the plugin points i am unable to load some classes. It gives me a
NoClassDefFound Error.

plz provide a good suggestion.

cheers
Easwar
Re: How can i activate my plugin on loading Eclipse IDE [message #95787 is a reply to message #95573] Thu, 17 July 2003 11:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NOSPAM.us.ibm.com

I would suggest adding a builder to the project. Then whenever anything
changes, your builder will run and it can add or remove things from you
UML model.

You can have an action (menu item) to add/remove your builder from the
project. The user can then use this action to add it to projects that
should be modeled in your UML model.

That way it will be activated when needed when something changes.

See http://www.eclipsecorner.org/articles/index.html

--
Thanks, Rich Kulp

Re: How can i activate my plugin on loading Eclipse IDE [message #96148 is a reply to message #95787] Fri, 18 July 2003 01:00 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I am unable to get what do u exactly mean by builder. Plz help me in
knowing what that builder exactly means and how to activate it.

cheers
Easwar
Re: How can i activate my plugin on loading Eclipse IDE [message #96606 is a reply to message #96148] Fri, 18 July 2003 11:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NOSPAM.us.ibm.com

Did you read the article listed in the append?

A builder is attached to a project. Every time any resource in the
project changes, the builder is told of the changes and gets to do builds.

For example, the java compiler is a builder. Whenever changes are made
the java builder for the project is run. It sees what was changed,
recompiles those java files, sees what other java files may be affected
and needs to be recompiled, and recompiles those.

For your case, your builder could be told what java files where added,
changed, or deleted, for a project, and so you can then go and modify
your UML files.

Rich
Re: How can i activate my plugin on loading Eclipse IDE [message #96651 is a reply to message #96606] Fri, 18 July 2003 12:06 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NOSPAM.us.ibm.com

In addition the advantage of the builder is that you don't need to
specifically activate your plugin, you don't need to specifically add
and remove yourself as resource change listeners. The builder concept
handles this for you.

Rich
Previous Topic:IE Browser Crashes when viewing Eclipse Info Center
Next Topic:linked resources
Goto Forum:
  


Current Time: Fri May 09 14:14:01 EDT 2025

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

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

Back to the top