Re: Correct place for plugin development questions

2018-05-25 Thread sgparry
I think I have worked out the problem and a solution: Sources sources = ProjectUtils.getSources(project); SourceGroup sourceGroup = sources.getSourceGroups(JavaProjectConstants.SOURCES_TYPE_JAVA)[0]; FileObject sgRoot = sourceGroup.getRootFolder();

Re: Correct place for plugin development questions

2018-05-25 Thread sgparry
The plugin is Fred Vinet's ANTLR4 plug in. The plugin adds ANTLR4 support to Netbeans, i.e. syntax checking / highlighting / completion of the grammar and an automated build via ANT or Maven. IT implements a very useful "Add ANTLR support" menu option to the file menu which adapts an ANT or Mave

Re: Correct place for plugin development questions

2018-05-25 Thread sgparry
Sorry, I misunderstood what you were getting at. FQN is: org.netbeans.modules.java.api.common.classpath.ClassPathModifier On 2018/05/25 12:57:10, Peter Nabbefeld wrote: > > Hi Stephen, > > the package is exported as public (not friend), so You should be able to > look for the implementation

Re: Correct place for plugin development questions

2018-05-25 Thread sgparry
I'll try looking up the pcpmi if the visibility will let me - The pcpmi can at least provide a list of the extensible source groups, which should lead to the right value for the second parameter to addLibraries. How do get the list of types for parameter 3 I wonder? On 2018/05/25 11:57:42, Pete

Re: Correct place for plugin development questions

2018-05-25 Thread sgparry
Hi Peter, Thanks for the quick reply. The plugin adds a library to the classpath, currently by rewriting the projevct properties file. I am trying to use the API instead. I can get it working using ProjectClassPathExtender but not ProjectClassPathModifier, which gives me: Java.lang.UnsupportedOpe

Plugin development

2018-05-25 Thread sgparry
I am currently developing a fix for a bug in a NB 8.2 plugin but I am running into an issue regarding ProjectClassPathModifier versus ProjectClassPathExtender. Can someone please direct me to the correct place to ask a question on such an issue? Thanks. -

Correct place for plugin development questions

2018-05-25 Thread sgparry
Hi, Can someone please direct me to the correct place for asking questions regarding plugin devlopment? I am having trouble contributing a fix to a bug in a third-party NB 8 plugin - I have a fix using the deprecated ProjectClassPathExtender class but I want to use the replacement ProjectClassPa