Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How to create IVMConnector implementation?
How to create IVMConnector implementation? [message #1798162] Tue, 13 November 2018 09:15 Go to next message
Eclipse UserFriend
Hi, I would like to create an IVMConnector implementation and add it as one of the org.eclipse.jdt.launching.vmConnectors extension points. I initially tried to do this as an experiment by downloading the whole of Eclipse (git clone -b R4_6_maintenance --recursive git://git.eclipse.org/gitroot/platform/eclipse.platform.releng.aggregator.git), building it, then adding my new class to eclipse.jdt.debug/org.eclipse.jdt.launching and also plugin.xml and rebuilding the org.eclipse.jdt.launching jar. I ran into a couple of issues:

  • the maven build kept reverting to the baseline classes in the jar until I modified jgit.dirtyWorkingTree-platformDefault
  • the resulting jar is still not recognized by my existing Eclipse and I think this may be a jar signing issue. Can't seem to find a quick answer to this.

So I'm guessing that I should be creating a plugin for this from scratch. Is this likely to work, are all the things I need going to be available as bundle exports? Any recommended guides or examples on writing such a plugin? I'm hoping to include both the IVMConnector and the VirtualMachine implementations in the jar.

Thanks,

David
Re: How to create IVMConnector implementation? [message #1798165 is a reply to message #1798162] Tue, 13 November 2018 09:32 Go to previous messageGo to next message
Eclipse UserFriend
Hi

Cloning and tweaking the entire Eclipse platform goes against pretty much the primary architectural design goal of Eclipse. Even if it works for you, it will never work for anyone trying to re-use your achievements.

You extend Eclipse by adding plugins that define extensions of extension points, so yes this should work.

Occasionally when using a small piece of Eclipse as an example, you may run into problems with private/internal packaging. In the short term you can workaround the problem by copying code as selectively as possible to your own plugin. In the long term you should raise a Bugzilla so that the required functionality is publicly accessible.

Regards

Ed Willink

Re: How to create IVMConnector implementation? [message #1798170 is a reply to message #1798165] Tue, 13 November 2018 10:05 Go to previous message
Eclipse UserFriend
Hi, thanks. Reason for downloading the whole thing was that I mistakenly thought it would be quicker to do a POC by modifying an existing plugin rather than starting from scratch.

Also at some point I want to try adding new buttons to the tool bar that contains the "Resume", "Suspend", "Terminate" etc buttons. I'd assumed that kind of thing wouldn't be possible via an extension but if it is, great.

Cheers,

David
Previous Topic:Invalid Property Category Path Erro
Next Topic:Test Application with NFC in JavaFX, Problem with Libraries
Goto Forum:
  


Current Time: Sat Aug 30 13:44:54 EDT 2025

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

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

Back to the top