Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Adding an extra buildCommand to the javaNature(Is it possible to customize an existing JDT nature)
Adding an extra buildCommand to the javaNature [message #1782510] Sun, 25 February 2018 01:42 Go to next message
Mario Jauvin is currently offline Mario JauvinFriend
Messages: 94
Registered: October 2015
Member
I have a Eclipse extension org.eclipse.core.resources.builders that I would like to have added to all projects that have the org.eclipse.jdt.core.javanature. Is this possible? Google has not helped.
Re: Adding an extra buildCommand to the javaNature [message #1782512 is a reply to message #1782510] Sun, 25 February 2018 06:36 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
No, it's impossible. :-P Just kidding. You could register a class that implements org.eclipse.ui.IStartup like this:
   <extension
         point="org.eclipse.ui.startup">
      <startup
            class="org.eclipse.oomph.setup.ui.EarlyStartup">
      </startup>
   </extension>
Then you could look at all the projects in the workspace, find the ones with a Java nature, and add your builder if the project doesn't already have that. You could, at that point, also use org.eclipse.core.resources.IWorkspace.addResourceChangeListener(IResourceChangeListener) to monitor new projects being opened or created in the workspace to add your builder to those as well.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Adding an extra buildCommand to the javaNature [message #1784215 is a reply to message #1782512] Fri, 23 March 2018 15:35 Go to previous message
Mario Jauvin is currently offline Mario JauvinFriend
Messages: 94
Registered: October 2015
Member
Thanks this is very useful.
Previous Topic:Getting java.lang.RuntimeException: No application id has been found. on running product file
Next Topic:Single-Click Rebuild Project
Goto Forum:
  


Current Time: Fri Apr 26 19:13:28 GMT 2024

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

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

Back to the top