Creating a new Link opener

0 votes
asked Mar 24, 2020 in Question / help by davidg10 (120 points)
Hello,

Im currently trying to adapt plantuml so that I can link back from a diagram directly to the source. To do this I have decided to implement a new linkopener - call it StateLinkOpener (as im primarily working with states). The problem is after defining this class and adding a reference to it in plugin.xml (like the other link openers), it seems that in Activator.java the linkopener is never obtained as an extension in the method processLinkOpeners().

Any ideas on how to fix this would be greatly appreciated,

David

1 Answer

0 votes
answered Mar 26, 2020 by anonymous
The answer was to add the following to the plugin.xml file along with the other linkOpeners;

<linkOpener
            linkOpenerClass="net.sourceforge.plantuml.eclipse.utils.StateLinkOpener">
 </linkOpener>
...