Take a look at some of the tutorials that make use of those kinds of classes, e.g., this one:
https://platform.netbeans.org/tutorials/nbm-hyperlink.html https://platform.netbeans.org/tutorials/nbm-javacc-parser.html http://bits.netbeans.org/dev/javadoc/org-netbeans-modules-lexer/architecture-summary.html Rather follow patterns from tutorials and from the javadoc than doing it some other way. Also, try and take a look at how other implementations are doing what it is you're trying to do -- those friends you refer to could be useful in terms of how they implement similar solutions. Gj On Wed, Jul 11, 2018 at 12:37 PM, Peter Nabbefeld <peter.nabbef...@gmx.de> wrote: > > Hello, > > I'm -still looking through some parts of the code, while extending the > module otherwise. I just found this trace in the log/output window, which I > probably just didn't notice before (because a bunch of other logging > messages follows): > > INFO [org.netbeans.spi.lexer.MutableTextInput]: !!WARNING!! Missing > READ-LOCK when accessing TokenHierarchy: input-source:org.netbeans.modu > les.editor.NbEditorDocument@51afa06c, mimeType='text/html', > kitClass=null, length=976, version=1, file=org.netbeans.modules.html > .HtmlDataObject@6c020887[/home/peter/NetBeansProjects/Wicket > -Test-1/src/java/com/myapp/wicket/CustomerTestPage.html@1c06400f:4586c553] > java.lang.Exception > [catch] at org.netbeans.lib.lexer.TokenHierarchyOperation.ensureReadLoc > ked(TokenHierarchyOperation.java:407) > at org.netbeans.lib.lexer.TokenHierarchyOperation.tokenSequence > (TokenHierarchyOperation.java:431) > at org.netbeans.api.lexer.TokenHierarchy.tokenSequence(TokenHie > rarchy.java:201) > at org.netbeans.modules.web.wicket.tree.HtmlTreeBuilder.analyze > (HtmlTreeBuilder.java:55) > at org.netbeans.modules.web.wicket.tree.HtmlTreeBuilder.getTree > (HtmlTreeBuilder.java:46) > at org.netbeans.modules.web.wicket.verification.WicketProblemAn > notationProvider.annotate(WicketProblemAnnotationProvider.java:180) > at org.netbeans.modules.web.wicket.verification.WicketProblemAn > notationProvider.annotate(WicketProblemAnnotationProvider.java:170) > at org.netbeans.modules.web.wicket.verification.WicketProblemAn > notationProvider.annotate(WicketProblemAnnotationProvider.java:117) > at org.netbeans.modules.web.wicket.verification.WicketProblemAn > notationProvider.annotate(WicketProblemAnnotationProvider.java:88) > at org.openide.text.CloneableEditorSupport.ensureAnnotationsLoa > ded(CloneableEditorSupport.java:393) > at org.openide.text.CloneableEditorInitializer.initAnnotations( > CloneableEditorInitializer.java:643) > at org.openide.text.CloneableEditorInitializer.run(CloneableEdi > torInitializer.java:351) > at org.openide.util.RequestProcessor$Task.run(RequestProcessor. > java:1443) > at org.netbeans.modules.openide.util.GlobalLookup.execute(Globa > lLookup.java:68) > at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303) > at org.openide.util.RequestProcessor$Processor.run( > RequestProcessor.java:2058) > > How do I set the read lock? > > Code is on GitHub: > https://github.com/OldGrumble/NBWicketSupport/ > > For compilation and test please follow the README, as the repository > contains some non-working code (I've requested the necessary access to > html.editor and html.editor.lib with NETBEANS-1035). > > Kind regards > > Peter > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org > For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > >