|
|
|
|
|
Re: Source links in console [message #1829258 is a reply to message #1829251] |
Mon, 29 June 2020 18:14 |
Emmanuel Chebbi Messages: 123 Registered: February 2018 |
Senior Member |
|
|
You'll find several resources on the internet; I can personally recommend Eclipse IDE Plug-in Development: Plug-ins, Features, Update Sites and IDE Extensions on Vogella.
Roughly (and off the top of my head), here are the steps to create the plug-in:
- Download the latest Eclipse IDE for RCP and RAP developers release (it features tools for plug-in development)
- File > New > Plug-in Project
- Fill a project name > Next > Finish
- The MANIFEST.MF should open. Otherwise, open it (it's in the META-INF folder).
- Go to the Extensions tab > Add... > Uncheck "Show only extension points from the required plug-ins" > Select "org.eclipse.ui.console.consolePatternMatchListeners" > Finish
- A dialog will show up to warn about a missing dependency, say "Yes"
- Still in the MANIFEST.MF editor, you should see a few fields to the right. Fill regex with the regex you want to match.
- Click on class to open the Java class creation wizard, then Finish. This class, linked by the StackOverflow comment I referenced above, demonstrates how to match a regex and adds an hyperlink on it.
Complete the class and... you'll be done!
You can test the plug-in by right-click on the project > Run As > Eclipse Application.
|
|
|
Re: Source links in console [message #1829965 is a reply to message #1829258] |
Tue, 14 July 2020 22:08 |
joseph newcomer Messages: 15 Registered: July 2017 |
Junior Member |
|
|
I am considering the idea of putting some regex recognition hooks in my output; life would be easier if I could do something like markdown output to get colors, font changes, hyperlinks, etc. Is there any way to tell if I am running under the IDE, or should I just add a -decorate option to my command line? My centralized logging code and option infrastructure would make this truly trivial to do, once I have the plugin working (in fact, if there is a console Markdown plugin, that would be heavenly). But thank you for the detailed set of steps. I am, of course, familiar with the notion of plugins, and even have delivered products that support plugins, but the details of how to get one written are where the devil is residing.
I also don't understand the "Eclipse for..." model. If I download the latest version of Eclipse RCP and RAP, is that a completely different Eclipse than the one I am using for Java? Do I now have to manage two eclipse installations?
|
|
|
Powered by
FUDForum. Page generated in 0.08672 seconds