I'd really like a NetBeans plugin similar to the Eclipse/IntelliJ IDEA ones.
If the protocol was publicly documented I'd be willing to take a stab at creating one.
NetBeans Plugin
Re: NetBeans Plugin
Hello,
Thank you for your idea and for your help!
It is not publicly documented at this time but we could easily do so: since the IDE plugin only has to use our tiny library "logmx-goto-source.jar" (included in the "lib" directory of LogMX), we will just have to make its Javadoc public. The protocol is very easy: the IDE plugin listens to a TCP socket and receives strings like:
Only the "test" and "preview" commands (i.e. requests) expect an answer from the IDE:
Xavier
Thank you for your idea and for your help!
![Smile :)](./images/smilies/icon_e_smile.gif)
It is not publicly documented at this time but we could easily do so: since the IDE plugin only has to use our tiny library "logmx-goto-source.jar" (included in the "lib" directory of LogMX), we will just have to make its Javadoc public. The protocol is very easy: the IDE plugin listens to a TCP socket and receives strings like:
Code: Select all
cmd="test|goto|preview" [method="<method>" file="<file>" line="-1|<line>"]
- the "ok" string for "test" command (used by LogMX configuration dialog),
- the source code excerpt for "preview" command.
Xavier
Re: NetBeans Plugin
Hello,
Here is the documented API for the required library (<LogMXDir>/lib/logmx-goto-source.jar): http://logmx.com/dev/ide-plugins/api
For your convenience, here is also a downloadable version: Please let me know if you have any question or trouble.
Xavier
Here is the documented API for the required library (<LogMXDir>/lib/logmx-goto-source.jar): http://logmx.com/dev/ide-plugins/api
For your convenience, here is also a downloadable version: Please let me know if you have any question or trouble.
Xavier
Re: NetBeans Plugin
Thanks so much - I'll see what I can do.
Re: NetBeans Plugin
Sorry, I forgot to give you the first steps:
- Create an implementation of PluginLogger in order to allow the plug-in to log messages using IDE log system
- Create an implementation of GotoSourceManager in order to allow the plug-in to get source file excerpts and to open source files in the IDE
- Write some code that can read/write a PluginConfig using the IDE persistence/settings mechanism
- When the plug-in is activated (i.e. when the IDE starts it) do something similar to:
Code: Select all
PluginConfig config = new PluginConfig(...); GotoSourceManager srcMgr = ... PluginLogger logger = ... SocketListener sockListener = SocketListener.getInstance(srcMgr, logger); sockListener.setConfig(config); sockListener.stop(); // just in case the IDE calls this code several times if (config.isEnabled()) { sockListener.start(); }
Re: NetBeans Plugin
Thanks - that made things super easy! I've posted my first creation on GitHub if you'd like to take a look at it. https://github.com/GIngleby16/LogMXNetBeans
It's not officially signed or published anywhere yet so you'll have to manually install it - instructions are in the WIKI.
If you want to create an official LightySoft branded plugin feel free to use my code as a starting point.
Let me know if there are an licensing concerns I need to address.
Thanks again for sharing this API. I can now jump to code in my preferred IDE!
-Graeme
It's not officially signed or published anywhere yet so you'll have to manually install it - instructions are in the WIKI.
If you want to create an official LightySoft branded plugin feel free to use my code as a starting point.
Let me know if there are an licensing concerns I need to address.
Thanks again for sharing this API. I can now jump to code in my preferred IDE!
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
-Graeme
Re: NetBeans Plugin
Amazing! Thanks!
We will study this repo in order to make an official plug-in to include in the next releases
(if you are OK with that of course).
Please send me an e-mail at support@logmx.com (subject "NetBeans Plugin") so that you we can setup the way we make it official (like for example the contact info that you want to appear in the "about" section, if any).
Xavier
We will study this repo in order to make an official plug-in to include in the next releases
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Please send me an e-mail at support@logmx.com (subject "NetBeans Plugin") so that you we can setup the way we make it official (like for example the contact info that you want to appear in the "about" section, if any).
Xavier