Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » How to run code right after plugin startup?
How to run code right after plugin startup? [message #1403776] Sat, 26 July 2014 20:22 Go to next message
Stefan Surkamp is currently offline Stefan SurkampFriend
Messages: 4
Registered: June 2014
Junior Member
Hi!
How can I run some code right after start() has finished?

If I put my code inside the start() method I get an error:
org.eclipse.core.runtime.CoreException: Plug-in JavaGamificationPlugin was unable to load class [...]
and
java.lang.NullPointerException


I think, this is because other needed data is not yet loaded - so is there any method that runs right after start() is finished?

Best regards.
Re: How to run code right after plugin startup? [message #1404108 is a reply to message #1403776] Tue, 29 July 2014 16:16 Go to previous message
Stefan Surkamp is currently offline Stefan SurkampFriend
Messages: 4
Registered: June 2014
Junior Member
I solved the issue with org.eclipse.core.runtime.jobs and the org.eclipse.ui.startup extension point.
Previous Topic:Static and dynamic files
Next Topic:New plugin wizard templates up-to-date with E4?
Goto Forum:
  


Current Time: Thu Mar 28 16:21:52 GMT 2024

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

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

Back to the top