Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Activator start() method won't get called.
Activator start() method won't get called. [message #505849] Tue, 05 January 2010 05:56 Go to next message
Eclipse UserFriend
Hi!

My plugin has the following requirement: If any *.JAVA file has changed on the workspace, the last launched java file with a main() has to be launched again.

I have succesfully created an IResourceChangeListener implementation, but i have two problems.

1. Somehow my Activator class start() method won't get called, so i cannot call ResourcesPlugin.getWorkspace().addResourceChangeListener in the start method.

2. I cannot figured it out how to call the last launched java class from my IResourceChangeListener.

Thanks for any help.
Re: Activator start() method won't get called. [message #506699 is a reply to message #505849] Fri, 08 January 2010 15:52 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

try using the org.eclipse.ui.startup extension point to register an early startup.

Implement the IStartup interface and add your ResourceChangeListeners in the earlyStartup method calling:

ResourcesPlugin.getWorkspace().addResourceChangeListener(Listener);


Best,

Artur
Re: Activator start() method won't get called. [message #506862 is a reply to message #505849] Mon, 11 January 2010 03:01 Go to previous message
Eclipse UserFriend
It works, Thanks.
Previous Topic:import of root files, root folders - but will be flatten
Next Topic:Activator start() method won't get called.
Goto Forum:
  


Current Time: Fri Jul 04 02:30:45 EDT 2025

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

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

Back to the top