You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Sean Carrick <se...@pekinsoft.com> on 2022/01/17 00:54:48 UTC

Updating an Old Plugin and Having Issues

Hey All!

I am updating an old plugin to bring it up to NetBeans 12.6 and have run
into an issue. The old code is using
*org.netbeans.modules.form.FormEditorSupport*i, but when I try to include
it, it does not seem to be found.

Did this class get moved to a different module? Was it dropped altogether?

What I am attempting to update is locating the variables (edit-blocked)
section in the form class and get its offset so that I can declare
variables just below it. The original code is:

if (c instanceof FormEditorSupport) {
    doc = c.getDocument();
    pos = ((FormEditorSupport)
c).getVariablesSection().getStartPosition().getOffset();
} else {
    // ... rest of code goes on for lines and lines ...

IF someone can point me in the right direction, it will be greatly
appreciated!

Sincerely,

Sean Carrick
Owner - PekinSOFT Systems
sean@pekinsoft.com
(309) 989-0672

Re: Updating an Old Plugin and Having Issues

Posted by Michael Bien <mb...@gmail.com>.
the class seems to be still there
https://github.com/apache/netbeans/blob/c084119009d2e0f736f225d706bc1827af283501/java/form.nb/src/org/netbeans/modules/nbform/FormEditorSupport.java

which is in org.netbeans.modules.form.nb but it doesn't appear to be 
public API unless i overlooked something.

have you updated the dependencies? To access it you might need to depend 
on the implementation version, and keep that version in sync.

"Additionally, sometimes a module wishes to get unrestricted access to 
non-public packages of an API module. This is discouraged, but possible 
if such module declares a /direct/ dependency on the API module using an 
implementation version dependency - this kind of dependency indicates 
that the client module is prepared to track every idiosyncrasy of the 
API module, and knows how to safely use "
https://bits.netbeans.org/11.1/javadoc/org-openide-modules/org/openide/modules/doc-files/api.html


-michael


On 17.01.22 01:54, Sean Carrick wrote:
> Hey All!
>
> I am updating an old plugin to bring it up to NetBeans 12.6 and have 
> run into an issue. The old code is using 
> /org.netbeans.modules.form.FormEditorSupport/i, but when I try to 
> include it, it does not seem to be found.
>
> Did this class get moved to a different module? Was it dropped altogether?
>
> What I am attempting to update is locating the variables 
> (edit-blocked) section in the form class and get its offset so that I 
> can declare variables just below it. The original code is:
>
> if (c instanceof FormEditorSupport) {
>     doc = c.getDocument();
>     pos = ((FormEditorSupport) 
> c).getVariablesSection().getStartPosition().getOffset();
> } else {
>     // ... rest of code goes on for lines and lines ...
>
> IF someone can point me in the right direction, it will be greatly 
> appreciated!
>
> Sincerely,
>
> Sean Carrick
> Owner - PekinSOFT Systems
> sean@pekinsoft.com
> (309) 989-0672


Re: Updating an Old Plugin and Having Issues

Posted by Sean Carrick <se...@pekinsoft.com>.
For further clarification on the use of the *FormEditorSupport* use in the
plugin, here is the relevant code:

            Document doc = ec.getDocument();
            int pos;
            if (ec instanceof FormEditorSupport) {
                // in form's source add before the variables section
                doc = ec.getDocument();
                pos =
((FormEditorSupport)ec).getVariablesSection().getStartPosition().getOffset();
            } else {
                // in general java source add at the end of the class
                Integer result = new ClassTask<Integer>(sourceFile) {
                    @Override
                    Integer run(CompilationController controller, ClassTree
classTree, TypeElement classElement) {
                        return (int)
controller.getTrees().getSourcePositions().getEndPosition(
                                controller.getCompilationUnit(), classTree);
                    }
                }.execute();
                javax.swing.text.Element docRoot =
doc.getDefaultRootElement();
                pos =
docRoot.getElement(docRoot.getElementIndex(result.intValue()))
                        .getStartOffset();
            }

This code is just to place generated code above the guarded variable block
on a form class, or at the end of the class in a standard (non-Matisse)
Java class.

What is the proper, current NB API for accomplishing the same thing? Any
other pointers than the two above that do not involve kludges, hacks, or
workarounds would be great. Worse case scenario, I'll have to go to the
kludge, hack, or workaround to get it working, but I would prefer not to...
Thanks to Peter and Michael for their assistance, and to anyone else who is
able to help.

Sincerely,

Sean Carrick
Owner - PekinSOFT Systems
sean@pekinsoft.com
(309) 989-0672


On Thu, Jan 20, 2022 at 7:11 AM Sean Carrick <se...@pekinsoft.com> wrote:

> Peter,
>
> WOW! I've *never* been called "inspiring" before...at least not in a
> positive way😉
>
> Does your application edit forms?
>>
> In regards to this, yes, my plugin does form editing. It allows for visual
> creation of specific code via a dialog box. Fields in the dialog are filled
> in as needed, then code is generated behind the scenes.
>
> I found a GitHub repot for it at
>>
>> https://github.com/szymach/incubator-netbeans/blob/master/form.nb/src/org/netbeans/modules/nbform/FormEditorSupport.java
>> if it helps you.
>>
>
> I haven't checked that link yet, but even if it would fix my error, I'm
> afraid that it wouldn't solve my problem...What I mean is I don't want to
> just put in kludges to get this old thing to work. I want to get it updated
> to work properly with the current NB API.
>
> Perhaps a little more information about this old plugin would be
> useful...I have completely reworked the old JSR-296 Swing Application
> Framework, bringing it up from its kludged JDK6/7 (Mustang) code to JDK11.
> I have "spoken" with the original author who "wished me luck", and that
> part paid off. Then I found the source for the old AppFramework plugin and
> decided to see if I could get it up to snuff and working with my revision
> of the original library. That is the "old plugin" that I'm working on
> updating, where I came across this use of *FormEditorSupport* for
> locating the guarded blocks in the source code.
>
> I have read through the API documentation, but I am not good with the NB
> API at all (I thought that by trying to rework this old plugin I would
> learn some stuff). I can't even figure out how to find anything on the
> GitHub repo to be able to see how to replace the class being used in the
> old plugin with the correct NB API to do what it was doing.
>
> Just as a test, I installed NB 6.8 and 7.2 and opened the plugin source in
> each of those. Apparently, that referenced class was *never* public, so I
> don't understand how the original authors of the plugin ever accessed it in
> the first place. I figured that I would learn a lot about the NB API by
> doing this, but this is starting to get insane...😉
>
> Sincerely,
>
> Sean Carrick
>
> Owner - PekinSOFT Systems
> sean@pekinsoft.com
> (309) 989-0672
>
>
> On Wed, Jan 19, 2022 at 2:27 AM Peter Blemel <pb...@hotmail.com> wrote:
>
>> I'm making a little progress on this.  When compiling a different,
>> unrelated module, I was getting the following error:
>>
>> The module C:\Program
>> Files\NetBeans-12.6\netbeans\java\modules\org-netbeans-modules-form.jar has
>> no public packages and so cannot be compiled against
>>
>> I assume that in your case, the lack of any public packages is why you
>> can't find the FormEditorSupport class. In my case, I found an offending
>> module of mine that was depending on the "Form Editor" module for no reason
>> that I can remember. My application doesn't edit Forms and I don't recall
>> ever having any such dependency.  I removed the dependency, and am no
>> longer getting any errors related to the org.netbeans.modules.form module.
>>
>> Does your application edit forms?  I found a GitHub repot for it at
>>
>> https://github.com/szymach/incubator-netbeans/blob/master/form.nb/src/org/netbeans/modules/nbform/FormEditorSupport.java
>> if it helps you.
>>
>> Not much help, I'm sure ... but the cobwebs are slowly clearing for me.
>> As for my application, it now launches in 12.6 🙂.  My application startup,
>> custom project type, and custom file types all seem to be working, which is
>> encouraging.  My menus are not arranged the way that they were previously,
>> which probably has something to do with the layers.
>>
>> Unfortunately, when I open one of my files the TopComponent briefly shows
>> and then disappears.  I set breakpoints in both componentShowing() and
>> componentClosed().  The debugger stops in both, so some kind of error must
>> be silently causing my TC to close.  Unfortunately, there's nothing in the
>> logs.
>>
>> I guess I need to go work through the latest MultiView tutorial and see
>> if something has changed that I need to be aware of.
>>
>> I hope you're also making progress.
>>
>> Cheers,
>> Peter
>>
>> ________________________________
>> From: Peter Blemel <pb...@hotmail.com>
>> Sent: Tuesday, January 18, 2022 10:59 AM
>> To: dev@netbeans.apache.org <de...@netbeans.apache.org>; NetBeans Mailing
>> List <us...@netbeans.apache.org>
>> Subject: Re: Updating an Old Plugin and Having Issues
>>
>> Just to be clear, I am working in Netbeans 12.6 on both computers.
>> Absolute Layout works at home, but at my office it throws
>>
>> java.io.IOException: no module org.netbeans.modules.form
>> at
>> org.netbeans.modules.apisupport.project.queries.ModuleProjectClassPathExtender.addLibraries(ModuleProjectClassPathExtender.java:108)
>> at
>> org.netbeans.spi.java.project.classpath.ProjectClassPathModifierImplementation$Accessor.addLibraries(ProjectClassPathModifierImplementation.java:401)
>> at
>> org.netbeans.api.java.project.classpath.ProjectClassPathModifier.addLibraries(ProjectClassPathModifier.java:86)
>> at
>> org.netbeans.modules.nbform.project.ClassSourceResolver$LibraryEntry.addToProjectClassPath(ClassSourceResolver.java:208)
>> at
>> org.netbeans.modules.form.project.ClassSource.addToProjectClassPath(ClassSource.java:89)
>> at
>> org.netbeans.modules.form.project.ClassPathUtils$2.run(ClassPathUtils.java:245)
>> at
>> org.netbeans.modules.progress.ui.RunOffEDTImpl$ProgressBackgroundRunner.runBackground(RunOffEDTImpl.java:465)
>> at
>> org.netbeans.modules.progress.ui.AbstractWindowRunner.call(AbstractWindowRunner.java:86)
>> at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
>> at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
>> at
>> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
>> at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
>> at
>> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
>>
>> ________________________________
>> From: Peter Blemel <pb...@hotmail.com>
>> Sent: Tuesday, January 18, 2022 10:54 AM
>> To: dev@netbeans.apache.org <de...@netbeans.apache.org>; NetBeans Mailing
>> List <us...@netbeans.apache.org>
>> Subject: Re: Updating an Old Plugin and Having Issues
>>
>> Sean,
>>
>> Your post inspired me to dust off an old Platform application of mine (a
>> general Predicate Logic editor, among other things).  Hopefully, I can get
>> back into the swing of things enough to be of some use around this mailing
>> list 🙂.
>>
>> My application was using Platform 6.8. I'm trying to get it running in
>> 12.6. There's been some Platform module refactoring since 6,8, but in
>> general I just had to add module dependencies to get everything to compile.
>>
>> Where this is relevant to you is that I ran into a problem with old Form
>> Editor autocode that depends on the old Swing Layout Extensions Integration
>> (or whatever it was called, specifically it used
>> org.jdesktop.layout.GroupLayout).  On my home system, I was able to change
>> the layout to "Absolute" from "Free Design" and everything worked great. I
>> just tried doing the same thing on my work desktop, and I ran into a "no
>> module org.netbeans.modules.form" error.
>>
>> I don't know the difference between the two systems, except possibly that
>> 1) this office machine has only has 12.0 on it and 2) is running a newer
>> Open JDK 17 that I just installed.  The home machine had 12.0 and 12.2 that
>> I uninstalled to make room for 12.6. I am not sure which JDK it uses,
>> possibly 11 (I will have to drive home to check, my VPN is one-way).
>>
>> I will need to ferret out what the difference between the two machines
>> is. One seems to have no problem with the form module. The other does.
>>
>> Best,
>> Peter
>>
>> [cid:81db9cc6-8e29-42ba-aec7-d6a0d3c3f72f]
>> [cid:72bf27bc-9b5c-49d0-bcdf-30b29545f19b]
>>
>> ________________________________
>> From: Sean Carrick <se...@pekinsoft.com>
>> Sent: Sunday, January 16, 2022 5:54 PM
>> To: dev@netbeans.apache.org <de...@netbeans.apache.org>; NetBeans Mailing
>> List <us...@netbeans.apache.org>
>> Subject: Updating an Old Plugin and Having Issues
>>
>> Hey All!
>>
>> I am updating an old plugin to bring it up to NetBeans 12.6 and have run
>> into an issue. The old code is using
>> *org.netbeans.modules.form.FormEditorSupport*i, but when I try to include
>> it, it does not seem to be found.
>>
>> Did this class get moved to a different module? Was it dropped altogether?
>>
>> What I am attempting to update is locating the variables (edit-blocked)
>> section in the form class and get its offset so that I can declare
>> variables just below it. The original code is:
>>
>> if (c instanceof FormEditorSupport) {
>>     doc = c.getDocument();
>>     pos = ((FormEditorSupport)
>> c).getVariablesSection().getStartPosition().getOffset();
>> } else {
>>     // ... rest of code goes on for lines and lines ...
>>
>> IF someone can point me in the right direction, it will be greatly
>> appreciated!
>>
>> Sincerely,
>>
>> Sean Carrick
>> Owner - PekinSOFT Systems
>> sean@pekinsoft.com
>> (309) 989-0672
>>
>

Re: Updating an Old Plugin and Having Issues

Posted by Sean Carrick <se...@pekinsoft.com>.
Peter,

WOW! I've *never* been called "inspiring" before...at least not in a
positive way😉

Does your application edit forms?
>
In regards to this, yes, my plugin does form editing. It allows for visual
creation of specific code via a dialog box. Fields in the dialog are filled
in as needed, then code is generated behind the scenes.

I found a GitHub repot for it at
>
> https://github.com/szymach/incubator-netbeans/blob/master/form.nb/src/org/netbeans/modules/nbform/FormEditorSupport.java
> if it helps you.
>

I haven't checked that link yet, but even if it would fix my error, I'm
afraid that it wouldn't solve my problem...What I mean is I don't want to
just put in kludges to get this old thing to work. I want to get it updated
to work properly with the current NB API.

Perhaps a little more information about this old plugin would be useful...I
have completely reworked the old JSR-296 Swing Application Framework,
bringing it up from its kludged JDK6/7 (Mustang) code to JDK11. I have
"spoken" with the original author who "wished me luck", and that part paid
off. Then I found the source for the old AppFramework plugin and decided to
see if I could get it up to snuff and working with my revision of the
original library. That is the "old plugin" that I'm working on updating,
where I came across this use of *FormEditorSupport* for locating the
guarded blocks in the source code.

I have read through the API documentation, but I am not good with the NB
API at all (I thought that by trying to rework this old plugin I would
learn some stuff). I can't even figure out how to find anything on the
GitHub repo to be able to see how to replace the class being used in the
old plugin with the correct NB API to do what it was doing.

Just as a test, I installed NB 6.8 and 7.2 and opened the plugin source in
each of those. Apparently, that referenced class was *never* public, so I
don't understand how the original authors of the plugin ever accessed it in
the first place. I figured that I would learn a lot about the NB API by
doing this, but this is starting to get insane...😉

Sincerely,

Sean Carrick

Owner - PekinSOFT Systems
sean@pekinsoft.com
(309) 989-0672


On Wed, Jan 19, 2022 at 2:27 AM Peter Blemel <pb...@hotmail.com> wrote:

> I'm making a little progress on this.  When compiling a different,
> unrelated module, I was getting the following error:
>
> The module C:\Program
> Files\NetBeans-12.6\netbeans\java\modules\org-netbeans-modules-form.jar has
> no public packages and so cannot be compiled against
>
> I assume that in your case, the lack of any public packages is why you
> can't find the FormEditorSupport class. In my case, I found an offending
> module of mine that was depending on the "Form Editor" module for no reason
> that I can remember. My application doesn't edit Forms and I don't recall
> ever having any such dependency.  I removed the dependency, and am no
> longer getting any errors related to the org.netbeans.modules.form module.
>
> Does your application edit forms?  I found a GitHub repot for it at
>
> https://github.com/szymach/incubator-netbeans/blob/master/form.nb/src/org/netbeans/modules/nbform/FormEditorSupport.java
> if it helps you.
>
> Not much help, I'm sure ... but the cobwebs are slowly clearing for me. As
> for my application, it now launches in 12.6 🙂.  My application startup,
> custom project type, and custom file types all seem to be working, which is
> encouraging.  My menus are not arranged the way that they were previously,
> which probably has something to do with the layers.
>
> Unfortunately, when I open one of my files the TopComponent briefly shows
> and then disappears.  I set breakpoints in both componentShowing() and
> componentClosed().  The debugger stops in both, so some kind of error must
> be silently causing my TC to close.  Unfortunately, there's nothing in the
> logs.
>
> I guess I need to go work through the latest MultiView tutorial and see if
> something has changed that I need to be aware of.
>
> I hope you're also making progress.
>
> Cheers,
> Peter
>
> ________________________________
> From: Peter Blemel <pb...@hotmail.com>
> Sent: Tuesday, January 18, 2022 10:59 AM
> To: dev@netbeans.apache.org <de...@netbeans.apache.org>; NetBeans Mailing
> List <us...@netbeans.apache.org>
> Subject: Re: Updating an Old Plugin and Having Issues
>
> Just to be clear, I am working in Netbeans 12.6 on both computers.
> Absolute Layout works at home, but at my office it throws
>
> java.io.IOException: no module org.netbeans.modules.form
> at
> org.netbeans.modules.apisupport.project.queries.ModuleProjectClassPathExtender.addLibraries(ModuleProjectClassPathExtender.java:108)
> at
> org.netbeans.spi.java.project.classpath.ProjectClassPathModifierImplementation$Accessor.addLibraries(ProjectClassPathModifierImplementation.java:401)
> at
> org.netbeans.api.java.project.classpath.ProjectClassPathModifier.addLibraries(ProjectClassPathModifier.java:86)
> at
> org.netbeans.modules.nbform.project.ClassSourceResolver$LibraryEntry.addToProjectClassPath(ClassSourceResolver.java:208)
> at
> org.netbeans.modules.form.project.ClassSource.addToProjectClassPath(ClassSource.java:89)
> at
> org.netbeans.modules.form.project.ClassPathUtils$2.run(ClassPathUtils.java:245)
> at
> org.netbeans.modules.progress.ui.RunOffEDTImpl$ProgressBackgroundRunner.runBackground(RunOffEDTImpl.java:465)
> at
> org.netbeans.modules.progress.ui.AbstractWindowRunner.call(AbstractWindowRunner.java:86)
> at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
> at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
> at
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
> at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
> at
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
>
> ________________________________
> From: Peter Blemel <pb...@hotmail.com>
> Sent: Tuesday, January 18, 2022 10:54 AM
> To: dev@netbeans.apache.org <de...@netbeans.apache.org>; NetBeans Mailing
> List <us...@netbeans.apache.org>
> Subject: Re: Updating an Old Plugin and Having Issues
>
> Sean,
>
> Your post inspired me to dust off an old Platform application of mine (a
> general Predicate Logic editor, among other things).  Hopefully, I can get
> back into the swing of things enough to be of some use around this mailing
> list 🙂.
>
> My application was using Platform 6.8. I'm trying to get it running in
> 12.6. There's been some Platform module refactoring since 6,8, but in
> general I just had to add module dependencies to get everything to compile.
>
> Where this is relevant to you is that I ran into a problem with old Form
> Editor autocode that depends on the old Swing Layout Extensions Integration
> (or whatever it was called, specifically it used
> org.jdesktop.layout.GroupLayout).  On my home system, I was able to change
> the layout to "Absolute" from "Free Design" and everything worked great. I
> just tried doing the same thing on my work desktop, and I ran into a "no
> module org.netbeans.modules.form" error.
>
> I don't know the difference between the two systems, except possibly that
> 1) this office machine has only has 12.0 on it and 2) is running a newer
> Open JDK 17 that I just installed.  The home machine had 12.0 and 12.2 that
> I uninstalled to make room for 12.6. I am not sure which JDK it uses,
> possibly 11 (I will have to drive home to check, my VPN is one-way).
>
> I will need to ferret out what the difference between the two machines is.
> One seems to have no problem with the form module. The other does.
>
> Best,
> Peter
>
> [cid:81db9cc6-8e29-42ba-aec7-d6a0d3c3f72f]
> [cid:72bf27bc-9b5c-49d0-bcdf-30b29545f19b]
>
> ________________________________
> From: Sean Carrick <se...@pekinsoft.com>
> Sent: Sunday, January 16, 2022 5:54 PM
> To: dev@netbeans.apache.org <de...@netbeans.apache.org>; NetBeans Mailing
> List <us...@netbeans.apache.org>
> Subject: Updating an Old Plugin and Having Issues
>
> Hey All!
>
> I am updating an old plugin to bring it up to NetBeans 12.6 and have run
> into an issue. The old code is using
> *org.netbeans.modules.form.FormEditorSupport*i, but when I try to include
> it, it does not seem to be found.
>
> Did this class get moved to a different module? Was it dropped altogether?
>
> What I am attempting to update is locating the variables (edit-blocked)
> section in the form class and get its offset so that I can declare
> variables just below it. The original code is:
>
> if (c instanceof FormEditorSupport) {
>     doc = c.getDocument();
>     pos = ((FormEditorSupport)
> c).getVariablesSection().getStartPosition().getOffset();
> } else {
>     // ... rest of code goes on for lines and lines ...
>
> IF someone can point me in the right direction, it will be greatly
> appreciated!
>
> Sincerely,
>
> Sean Carrick
> Owner - PekinSOFT Systems
> sean@pekinsoft.com
> (309) 989-0672
>

Re: Updating an Old Plugin and Having Issues

Posted by Peter Blemel <pb...@hotmail.com>.
Thanks.  For my project, I just punted and used a different layout for now. It's taken me a while to dust off this project, but once I get it running again, I'll go back and work these issues. My big focus so far has been getting rid of as many of my old layer files as I can, switching them over to annotations where I can.

Peter
________________________________
From: Eric Bresie <eb...@gmail.com>
Sent: Saturday, January 29, 2022 8:10 AM
To: Netbeans Developer List <de...@netbeans.apache.org>
Cc: NetBeans Mailing List <us...@netbeans.apache.org>
Subject: Re: Updating an Old Plugin and Having Issues

Assume this may have to do with the module's public/private/friend API
(i.e. if not accessible may appear missing).  May want to check out some of
the references below.

(1) https://netbeans.apache.org/wiki/API_Design.asciidoc
(2)
https://cwiki.apache.org/confluence/display/NETBEANS/Public+vs+Friend+API
(3) https://www.mail-archive.com/dev@netbeans.apache.org/msg09274.html

Eric Bresie
ebresie@gmail.com


On Thu, Jan 27, 2022 at 10:19 PM Peter Blemel <pb...@hotmail.com> wrote:

> Sean,
>
> I'm back to working on my old platform applications ... I have a form
> using AbsoluteLayout.  When I try to edit it, it throws the following.  The
> work around is to pick another layout other than Absolute, but I'm curious
> whether you've had any more luck with that module?
>
> Thanks,
> Peter
>
> java.io.IOException: no module org.netbeans.modules.form
> at
> org.netbeans.modules.apisupport.project.queries.ModuleProjectClassPathExtender.addLibraries(ModuleProjectClassPathExtender.java:108)
> at
> org.netbeans.spi.java.project.classpath.ProjectClassPathModifierImplementation$Accessor.addLibraries(ProjectClassPathModifierImplementation.java:401)
> at
> org.netbeans.api.java.project.classpath.ProjectClassPathModifier.addLibraries(ProjectClassPathModifier.java:86)
> at
> org.netbeans.modules.nbform.project.ClassSourceResolver$LibraryEntry.addToProjectClassPath(ClassSourceResolver.java:208)
> at
> org.netbeans.modules.form.project.ClassSource.addToProjectClassPath(ClassSource.java:89)
> at
> org.netbeans.modules.form.project.ClassPathUtils$2.run(ClassPathUtils.java:245)
> at
> org.netbeans.modules.progress.ui.RunOffEDTImpl$ProgressBackgroundRunner.runBackground(RunOffEDTImpl.java:465)
> at
> org.netbeans.modules.progress.ui.AbstractWindowRunner.call(AbstractWindowRunner.java:86)
> at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
> at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
> at
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
> at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
> at
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
> Caused by:
> ________________________________
> From: Peter Blemel <pb...@hotmail.com>
> Sent: Wednesday, January 19, 2022 1:27 AM
> To: dev@netbeans.apache.org <de...@netbeans.apache.org>; NetBeans Mailing
> List <us...@netbeans.apache.org>
> Subject: Re: Updating an Old Plugin and Having Issues
>
> I'm making a little progress on this.  When compiling a different,
> unrelated module, I was getting the following error:
>
> The module C:\Program
> Files\NetBeans-12.6\netbeans\java\modules\org-netbeans-modules-form.jar has
> no public packages and so cannot be compiled against
>
> I assume that in your case, the lack of any public packages is why you
> can't find the FormEditorSupport class. In my case, I found an offending
> module of mine that was depending on the "Form Editor" module for no reason
> that I can remember. My application doesn't edit Forms and I don't recall
> ever having any such dependency.  I removed the dependency, and am no
> longer getting any errors related to the org.netbeans.modules.form module.
>
> Does your application edit forms?  I found a GitHub repot for it at
>
> https://github.com/szymach/incubator-netbeans/blob/master/form.nb/src/org/netbeans/modules/nbform/FormEditorSupport.java
> if it helps you.
>
> Not much help, I'm sure ... but the cobwebs are slowly clearing for me. As
> for my application, it now launches in 12.6 🙂.  My application startup,
> custom project type, and custom file types all seem to be working, which is
> encouraging.  My menus are not arranged the way that they were previously,
> which probably has something to do with the layers.
>
> Unfortunately, when I open one of my files the TopComponent briefly shows
> and then disappears.  I set breakpoints in both componentShowing() and
> componentClosed().  The debugger stops in both, so some kind of error must
> be silently causing my TC to close.  Unfortunately, there's nothing in the
> logs.
>
> I guess I need to go work through the latest MultiView tutorial and see if
> something has changed that I need to be aware of.
>
> I hope you're also making progress.
>
> Cheers,
> Peter
>
> ________________________________
> From: Peter Blemel <pb...@hotmail.com>
> Sent: Tuesday, January 18, 2022 10:59 AM
> To: dev@netbeans.apache.org <de...@netbeans.apache.org>; NetBeans Mailing
> List <us...@netbeans.apache.org>
> Subject: Re: Updating an Old Plugin and Having Issues
>
> Just to be clear, I am working in Netbeans 12.6 on both computers.
> Absolute Layout works at home, but at my office it throws
>
> java.io.IOException: no module org.netbeans.modules.form
> at
> org.netbeans.modules.apisupport.project.queries.ModuleProjectClassPathExtender.addLibraries(ModuleProjectClassPathExtender.java:108)
> at
> org.netbeans.spi.java.project.classpath.ProjectClassPathModifierImplementation$Accessor.addLibraries(ProjectClassPathModifierImplementation.java:401)
> at
> org.netbeans.api.java.project.classpath.ProjectClassPathModifier.addLibraries(ProjectClassPathModifier.java:86)
> at
> org.netbeans.modules.nbform.project.ClassSourceResolver$LibraryEntry.addToProjectClassPath(ClassSourceResolver.java:208)
> at
> org.netbeans.modules.form.project.ClassSource.addToProjectClassPath(ClassSource.java:89)
> at
> org.netbeans.modules.form.project.ClassPathUtils$2.run(ClassPathUtils.java:245)
> at
> org.netbeans.modules.progress.ui.RunOffEDTImpl$ProgressBackgroundRunner.runBackground(RunOffEDTImpl.java:465)
> at
> org.netbeans.modules.progress.ui.AbstractWindowRunner.call(AbstractWindowRunner.java:86)
> at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
> at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
> at
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
> at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
> at
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
>
> ________________________________
> From: Peter Blemel <pb...@hotmail.com>
> Sent: Tuesday, January 18, 2022 10:54 AM
> To: dev@netbeans.apache.org <de...@netbeans.apache.org>; NetBeans Mailing
> List <us...@netbeans.apache.org>
> Subject: Re: Updating an Old Plugin and Having Issues
>
> Sean,
>
> Your post inspired me to dust off an old Platform application of mine (a
> general Predicate Logic editor, among other things).  Hopefully, I can get
> back into the swing of things enough to be of some use around this mailing
> list 🙂.
>
> My application was using Platform 6.8. I'm trying to get it running in
> 12.6. There's been some Platform module refactoring since 6,8, but in
> general I just had to add module dependencies to get everything to compile.
>
> Where this is relevant to you is that I ran into a problem with old Form
> Editor autocode that depends on the old Swing Layout Extensions Integration
> (or whatever it was called, specifically it used
> org.jdesktop.layout.GroupLayout).  On my home system, I was able to change
> the layout to "Absolute" from "Free Design" and everything worked great. I
> just tried doing the same thing on my work desktop, and I ran into a "no
> module org.netbeans.modules.form" error.
>
> I don't know the difference between the two systems, except possibly that
> 1) this office machine has only has 12.0 on it and 2) is running a newer
> Open JDK 17 that I just installed.  The home machine had 12.0 and 12.2 that
> I uninstalled to make room for 12.6. I am not sure which JDK it uses,
> possibly 11 (I will have to drive home to check, my VPN is one-way).
>
> I will need to ferret out what the difference between the two machines is.
> One seems to have no problem with the form module. The other does.
>
> Best,
> Peter
>
> [cid:81db9cc6-8e29-42ba-aec7-d6a0d3c3f72f]
> [cid:72bf27bc-9b5c-49d0-bcdf-30b29545f19b]
>
> ________________________________
> From: Sean Carrick <se...@pekinsoft.com>
> Sent: Sunday, January 16, 2022 5:54 PM
> To: dev@netbeans.apache.org <de...@netbeans.apache.org>; NetBeans Mailing
> List <us...@netbeans.apache.org>
> Subject: Updating an Old Plugin and Having Issues
>
> Hey All!
>
> I am updating an old plugin to bring it up to NetBeans 12.6 and have run
> into an issue. The old code is using
> *org.netbeans.modules.form.FormEditorSupport*i, but when I try to include
> it, it does not seem to be found.
>
> Did this class get moved to a different module? Was it dropped altogether?
>
> What I am attempting to update is locating the variables (edit-blocked)
> section in the form class and get its offset so that I can declare
> variables just below it. The original code is:
>
> if (c instanceof FormEditorSupport) {
>     doc = c.getDocument();
>     pos = ((FormEditorSupport)
> c).getVariablesSection().getStartPosition().getOffset();
> } else {
>     // ... rest of code goes on for lines and lines ...
>
> IF someone can point me in the right direction, it will be greatly
> appreciated!
>
> Sincerely,
>
> Sean Carrick
> Owner - PekinSOFT Systems
> sean@pekinsoft.com
> (309) 989-0672
>

Re: Updating an Old Plugin and Having Issues

Posted by Eric Bresie <eb...@gmail.com>.
Assume this may have to do with the module's public/private/friend API
(i.e. if not accessible may appear missing).  May want to check out some of
the references below.

(1) https://netbeans.apache.org/wiki/API_Design.asciidoc
(2)
https://cwiki.apache.org/confluence/display/NETBEANS/Public+vs+Friend+API
(3) https://www.mail-archive.com/dev@netbeans.apache.org/msg09274.html

Eric Bresie
ebresie@gmail.com


On Thu, Jan 27, 2022 at 10:19 PM Peter Blemel <pb...@hotmail.com> wrote:

> Sean,
>
> I'm back to working on my old platform applications ... I have a form
> using AbsoluteLayout.  When I try to edit it, it throws the following.  The
> work around is to pick another layout other than Absolute, but I'm curious
> whether you've had any more luck with that module?
>
> Thanks,
> Peter
>
> java.io.IOException: no module org.netbeans.modules.form
> at
> org.netbeans.modules.apisupport.project.queries.ModuleProjectClassPathExtender.addLibraries(ModuleProjectClassPathExtender.java:108)
> at
> org.netbeans.spi.java.project.classpath.ProjectClassPathModifierImplementation$Accessor.addLibraries(ProjectClassPathModifierImplementation.java:401)
> at
> org.netbeans.api.java.project.classpath.ProjectClassPathModifier.addLibraries(ProjectClassPathModifier.java:86)
> at
> org.netbeans.modules.nbform.project.ClassSourceResolver$LibraryEntry.addToProjectClassPath(ClassSourceResolver.java:208)
> at
> org.netbeans.modules.form.project.ClassSource.addToProjectClassPath(ClassSource.java:89)
> at
> org.netbeans.modules.form.project.ClassPathUtils$2.run(ClassPathUtils.java:245)
> at
> org.netbeans.modules.progress.ui.RunOffEDTImpl$ProgressBackgroundRunner.runBackground(RunOffEDTImpl.java:465)
> at
> org.netbeans.modules.progress.ui.AbstractWindowRunner.call(AbstractWindowRunner.java:86)
> at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
> at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
> at
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
> at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
> at
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
> Caused by:
> ________________________________
> From: Peter Blemel <pb...@hotmail.com>
> Sent: Wednesday, January 19, 2022 1:27 AM
> To: dev@netbeans.apache.org <de...@netbeans.apache.org>; NetBeans Mailing
> List <us...@netbeans.apache.org>
> Subject: Re: Updating an Old Plugin and Having Issues
>
> I'm making a little progress on this.  When compiling a different,
> unrelated module, I was getting the following error:
>
> The module C:\Program
> Files\NetBeans-12.6\netbeans\java\modules\org-netbeans-modules-form.jar has
> no public packages and so cannot be compiled against
>
> I assume that in your case, the lack of any public packages is why you
> can't find the FormEditorSupport class. In my case, I found an offending
> module of mine that was depending on the "Form Editor" module for no reason
> that I can remember. My application doesn't edit Forms and I don't recall
> ever having any such dependency.  I removed the dependency, and am no
> longer getting any errors related to the org.netbeans.modules.form module.
>
> Does your application edit forms?  I found a GitHub repot for it at
>
> https://github.com/szymach/incubator-netbeans/blob/master/form.nb/src/org/netbeans/modules/nbform/FormEditorSupport.java
> if it helps you.
>
> Not much help, I'm sure ... but the cobwebs are slowly clearing for me. As
> for my application, it now launches in 12.6 🙂.  My application startup,
> custom project type, and custom file types all seem to be working, which is
> encouraging.  My menus are not arranged the way that they were previously,
> which probably has something to do with the layers.
>
> Unfortunately, when I open one of my files the TopComponent briefly shows
> and then disappears.  I set breakpoints in both componentShowing() and
> componentClosed().  The debugger stops in both, so some kind of error must
> be silently causing my TC to close.  Unfortunately, there's nothing in the
> logs.
>
> I guess I need to go work through the latest MultiView tutorial and see if
> something has changed that I need to be aware of.
>
> I hope you're also making progress.
>
> Cheers,
> Peter
>
> ________________________________
> From: Peter Blemel <pb...@hotmail.com>
> Sent: Tuesday, January 18, 2022 10:59 AM
> To: dev@netbeans.apache.org <de...@netbeans.apache.org>; NetBeans Mailing
> List <us...@netbeans.apache.org>
> Subject: Re: Updating an Old Plugin and Having Issues
>
> Just to be clear, I am working in Netbeans 12.6 on both computers.
> Absolute Layout works at home, but at my office it throws
>
> java.io.IOException: no module org.netbeans.modules.form
> at
> org.netbeans.modules.apisupport.project.queries.ModuleProjectClassPathExtender.addLibraries(ModuleProjectClassPathExtender.java:108)
> at
> org.netbeans.spi.java.project.classpath.ProjectClassPathModifierImplementation$Accessor.addLibraries(ProjectClassPathModifierImplementation.java:401)
> at
> org.netbeans.api.java.project.classpath.ProjectClassPathModifier.addLibraries(ProjectClassPathModifier.java:86)
> at
> org.netbeans.modules.nbform.project.ClassSourceResolver$LibraryEntry.addToProjectClassPath(ClassSourceResolver.java:208)
> at
> org.netbeans.modules.form.project.ClassSource.addToProjectClassPath(ClassSource.java:89)
> at
> org.netbeans.modules.form.project.ClassPathUtils$2.run(ClassPathUtils.java:245)
> at
> org.netbeans.modules.progress.ui.RunOffEDTImpl$ProgressBackgroundRunner.runBackground(RunOffEDTImpl.java:465)
> at
> org.netbeans.modules.progress.ui.AbstractWindowRunner.call(AbstractWindowRunner.java:86)
> at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
> at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
> at
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
> at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
> at
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
>
> ________________________________
> From: Peter Blemel <pb...@hotmail.com>
> Sent: Tuesday, January 18, 2022 10:54 AM
> To: dev@netbeans.apache.org <de...@netbeans.apache.org>; NetBeans Mailing
> List <us...@netbeans.apache.org>
> Subject: Re: Updating an Old Plugin and Having Issues
>
> Sean,
>
> Your post inspired me to dust off an old Platform application of mine (a
> general Predicate Logic editor, among other things).  Hopefully, I can get
> back into the swing of things enough to be of some use around this mailing
> list 🙂.
>
> My application was using Platform 6.8. I'm trying to get it running in
> 12.6. There's been some Platform module refactoring since 6,8, but in
> general I just had to add module dependencies to get everything to compile.
>
> Where this is relevant to you is that I ran into a problem with old Form
> Editor autocode that depends on the old Swing Layout Extensions Integration
> (or whatever it was called, specifically it used
> org.jdesktop.layout.GroupLayout).  On my home system, I was able to change
> the layout to "Absolute" from "Free Design" and everything worked great. I
> just tried doing the same thing on my work desktop, and I ran into a "no
> module org.netbeans.modules.form" error.
>
> I don't know the difference between the two systems, except possibly that
> 1) this office machine has only has 12.0 on it and 2) is running a newer
> Open JDK 17 that I just installed.  The home machine had 12.0 and 12.2 that
> I uninstalled to make room for 12.6. I am not sure which JDK it uses,
> possibly 11 (I will have to drive home to check, my VPN is one-way).
>
> I will need to ferret out what the difference between the two machines is.
> One seems to have no problem with the form module. The other does.
>
> Best,
> Peter
>
> [cid:81db9cc6-8e29-42ba-aec7-d6a0d3c3f72f]
> [cid:72bf27bc-9b5c-49d0-bcdf-30b29545f19b]
>
> ________________________________
> From: Sean Carrick <se...@pekinsoft.com>
> Sent: Sunday, January 16, 2022 5:54 PM
> To: dev@netbeans.apache.org <de...@netbeans.apache.org>; NetBeans Mailing
> List <us...@netbeans.apache.org>
> Subject: Updating an Old Plugin and Having Issues
>
> Hey All!
>
> I am updating an old plugin to bring it up to NetBeans 12.6 and have run
> into an issue. The old code is using
> *org.netbeans.modules.form.FormEditorSupport*i, but when I try to include
> it, it does not seem to be found.
>
> Did this class get moved to a different module? Was it dropped altogether?
>
> What I am attempting to update is locating the variables (edit-blocked)
> section in the form class and get its offset so that I can declare
> variables just below it. The original code is:
>
> if (c instanceof FormEditorSupport) {
>     doc = c.getDocument();
>     pos = ((FormEditorSupport)
> c).getVariablesSection().getStartPosition().getOffset();
> } else {
>     // ... rest of code goes on for lines and lines ...
>
> IF someone can point me in the right direction, it will be greatly
> appreciated!
>
> Sincerely,
>
> Sean Carrick
> Owner - PekinSOFT Systems
> sean@pekinsoft.com
> (309) 989-0672
>

Re: Updating an Old Plugin and Having Issues

Posted by Eric Bresie <eb...@gmail.com>.
Assume this may have to do with the module's public/private/friend API
(i.e. if not accessible may appear missing).  May want to check out some of
the references below.

(1) https://netbeans.apache.org/wiki/API_Design.asciidoc
(2)
https://cwiki.apache.org/confluence/display/NETBEANS/Public+vs+Friend+API
(3) https://www.mail-archive.com/dev@netbeans.apache.org/msg09274.html

Eric Bresie
ebresie@gmail.com


On Thu, Jan 27, 2022 at 10:19 PM Peter Blemel <pb...@hotmail.com> wrote:

> Sean,
>
> I'm back to working on my old platform applications ... I have a form
> using AbsoluteLayout.  When I try to edit it, it throws the following.  The
> work around is to pick another layout other than Absolute, but I'm curious
> whether you've had any more luck with that module?
>
> Thanks,
> Peter
>
> java.io.IOException: no module org.netbeans.modules.form
> at
> org.netbeans.modules.apisupport.project.queries.ModuleProjectClassPathExtender.addLibraries(ModuleProjectClassPathExtender.java:108)
> at
> org.netbeans.spi.java.project.classpath.ProjectClassPathModifierImplementation$Accessor.addLibraries(ProjectClassPathModifierImplementation.java:401)
> at
> org.netbeans.api.java.project.classpath.ProjectClassPathModifier.addLibraries(ProjectClassPathModifier.java:86)
> at
> org.netbeans.modules.nbform.project.ClassSourceResolver$LibraryEntry.addToProjectClassPath(ClassSourceResolver.java:208)
> at
> org.netbeans.modules.form.project.ClassSource.addToProjectClassPath(ClassSource.java:89)
> at
> org.netbeans.modules.form.project.ClassPathUtils$2.run(ClassPathUtils.java:245)
> at
> org.netbeans.modules.progress.ui.RunOffEDTImpl$ProgressBackgroundRunner.runBackground(RunOffEDTImpl.java:465)
> at
> org.netbeans.modules.progress.ui.AbstractWindowRunner.call(AbstractWindowRunner.java:86)
> at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
> at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
> at
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
> at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
> at
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
> Caused by:
> ________________________________
> From: Peter Blemel <pb...@hotmail.com>
> Sent: Wednesday, January 19, 2022 1:27 AM
> To: dev@netbeans.apache.org <de...@netbeans.apache.org>; NetBeans Mailing
> List <us...@netbeans.apache.org>
> Subject: Re: Updating an Old Plugin and Having Issues
>
> I'm making a little progress on this.  When compiling a different,
> unrelated module, I was getting the following error:
>
> The module C:\Program
> Files\NetBeans-12.6\netbeans\java\modules\org-netbeans-modules-form.jar has
> no public packages and so cannot be compiled against
>
> I assume that in your case, the lack of any public packages is why you
> can't find the FormEditorSupport class. In my case, I found an offending
> module of mine that was depending on the "Form Editor" module for no reason
> that I can remember. My application doesn't edit Forms and I don't recall
> ever having any such dependency.  I removed the dependency, and am no
> longer getting any errors related to the org.netbeans.modules.form module.
>
> Does your application edit forms?  I found a GitHub repot for it at
>
> https://github.com/szymach/incubator-netbeans/blob/master/form.nb/src/org/netbeans/modules/nbform/FormEditorSupport.java
> if it helps you.
>
> Not much help, I'm sure ... but the cobwebs are slowly clearing for me. As
> for my application, it now launches in 12.6 🙂.  My application startup,
> custom project type, and custom file types all seem to be working, which is
> encouraging.  My menus are not arranged the way that they were previously,
> which probably has something to do with the layers.
>
> Unfortunately, when I open one of my files the TopComponent briefly shows
> and then disappears.  I set breakpoints in both componentShowing() and
> componentClosed().  The debugger stops in both, so some kind of error must
> be silently causing my TC to close.  Unfortunately, there's nothing in the
> logs.
>
> I guess I need to go work through the latest MultiView tutorial and see if
> something has changed that I need to be aware of.
>
> I hope you're also making progress.
>
> Cheers,
> Peter
>
> ________________________________
> From: Peter Blemel <pb...@hotmail.com>
> Sent: Tuesday, January 18, 2022 10:59 AM
> To: dev@netbeans.apache.org <de...@netbeans.apache.org>; NetBeans Mailing
> List <us...@netbeans.apache.org>
> Subject: Re: Updating an Old Plugin and Having Issues
>
> Just to be clear, I am working in Netbeans 12.6 on both computers.
> Absolute Layout works at home, but at my office it throws
>
> java.io.IOException: no module org.netbeans.modules.form
> at
> org.netbeans.modules.apisupport.project.queries.ModuleProjectClassPathExtender.addLibraries(ModuleProjectClassPathExtender.java:108)
> at
> org.netbeans.spi.java.project.classpath.ProjectClassPathModifierImplementation$Accessor.addLibraries(ProjectClassPathModifierImplementation.java:401)
> at
> org.netbeans.api.java.project.classpath.ProjectClassPathModifier.addLibraries(ProjectClassPathModifier.java:86)
> at
> org.netbeans.modules.nbform.project.ClassSourceResolver$LibraryEntry.addToProjectClassPath(ClassSourceResolver.java:208)
> at
> org.netbeans.modules.form.project.ClassSource.addToProjectClassPath(ClassSource.java:89)
> at
> org.netbeans.modules.form.project.ClassPathUtils$2.run(ClassPathUtils.java:245)
> at
> org.netbeans.modules.progress.ui.RunOffEDTImpl$ProgressBackgroundRunner.runBackground(RunOffEDTImpl.java:465)
> at
> org.netbeans.modules.progress.ui.AbstractWindowRunner.call(AbstractWindowRunner.java:86)
> at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
> at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
> at
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
> at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
> at
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
>
> ________________________________
> From: Peter Blemel <pb...@hotmail.com>
> Sent: Tuesday, January 18, 2022 10:54 AM
> To: dev@netbeans.apache.org <de...@netbeans.apache.org>; NetBeans Mailing
> List <us...@netbeans.apache.org>
> Subject: Re: Updating an Old Plugin and Having Issues
>
> Sean,
>
> Your post inspired me to dust off an old Platform application of mine (a
> general Predicate Logic editor, among other things).  Hopefully, I can get
> back into the swing of things enough to be of some use around this mailing
> list 🙂.
>
> My application was using Platform 6.8. I'm trying to get it running in
> 12.6. There's been some Platform module refactoring since 6,8, but in
> general I just had to add module dependencies to get everything to compile.
>
> Where this is relevant to you is that I ran into a problem with old Form
> Editor autocode that depends on the old Swing Layout Extensions Integration
> (or whatever it was called, specifically it used
> org.jdesktop.layout.GroupLayout).  On my home system, I was able to change
> the layout to "Absolute" from "Free Design" and everything worked great. I
> just tried doing the same thing on my work desktop, and I ran into a "no
> module org.netbeans.modules.form" error.
>
> I don't know the difference between the two systems, except possibly that
> 1) this office machine has only has 12.0 on it and 2) is running a newer
> Open JDK 17 that I just installed.  The home machine had 12.0 and 12.2 that
> I uninstalled to make room for 12.6. I am not sure which JDK it uses,
> possibly 11 (I will have to drive home to check, my VPN is one-way).
>
> I will need to ferret out what the difference between the two machines is.
> One seems to have no problem with the form module. The other does.
>
> Best,
> Peter
>
> [cid:81db9cc6-8e29-42ba-aec7-d6a0d3c3f72f]
> [cid:72bf27bc-9b5c-49d0-bcdf-30b29545f19b]
>
> ________________________________
> From: Sean Carrick <se...@pekinsoft.com>
> Sent: Sunday, January 16, 2022 5:54 PM
> To: dev@netbeans.apache.org <de...@netbeans.apache.org>; NetBeans Mailing
> List <us...@netbeans.apache.org>
> Subject: Updating an Old Plugin and Having Issues
>
> Hey All!
>
> I am updating an old plugin to bring it up to NetBeans 12.6 and have run
> into an issue. The old code is using
> *org.netbeans.modules.form.FormEditorSupport*i, but when I try to include
> it, it does not seem to be found.
>
> Did this class get moved to a different module? Was it dropped altogether?
>
> What I am attempting to update is locating the variables (edit-blocked)
> section in the form class and get its offset so that I can declare
> variables just below it. The original code is:
>
> if (c instanceof FormEditorSupport) {
>     doc = c.getDocument();
>     pos = ((FormEditorSupport)
> c).getVariablesSection().getStartPosition().getOffset();
> } else {
>     // ... rest of code goes on for lines and lines ...
>
> IF someone can point me in the right direction, it will be greatly
> appreciated!
>
> Sincerely,
>
> Sean Carrick
> Owner - PekinSOFT Systems
> sean@pekinsoft.com
> (309) 989-0672
>

Re: Updating an Old Plugin and Having Issues

Posted by Peter Blemel <pb...@hotmail.com>.
Sean,

I'm back to working on my old platform applications ... I have a form using AbsoluteLayout.  When I try to edit it, it throws the following.  The work around is to pick another layout other than Absolute, but I'm curious whether you've had any more luck with that module?

Thanks,
Peter

java.io.IOException: no module org.netbeans.modules.form
at org.netbeans.modules.apisupport.project.queries.ModuleProjectClassPathExtender.addLibraries(ModuleProjectClassPathExtender.java:108)
at org.netbeans.spi.java.project.classpath.ProjectClassPathModifierImplementation$Accessor.addLibraries(ProjectClassPathModifierImplementation.java:401)
at org.netbeans.api.java.project.classpath.ProjectClassPathModifier.addLibraries(ProjectClassPathModifier.java:86)
at org.netbeans.modules.nbform.project.ClassSourceResolver$LibraryEntry.addToProjectClassPath(ClassSourceResolver.java:208)
at org.netbeans.modules.form.project.ClassSource.addToProjectClassPath(ClassSource.java:89)
at org.netbeans.modules.form.project.ClassPathUtils$2.run(ClassPathUtils.java:245)
at org.netbeans.modules.progress.ui.RunOffEDTImpl$ProgressBackgroundRunner.runBackground(RunOffEDTImpl.java:465)
at org.netbeans.modules.progress.ui.AbstractWindowRunner.call(AbstractWindowRunner.java:86)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Caused by:
________________________________
From: Peter Blemel <pb...@hotmail.com>
Sent: Wednesday, January 19, 2022 1:27 AM
To: dev@netbeans.apache.org <de...@netbeans.apache.org>; NetBeans Mailing List <us...@netbeans.apache.org>
Subject: Re: Updating an Old Plugin and Having Issues

I'm making a little progress on this.  When compiling a different, unrelated module, I was getting the following error:

The module C:\Program Files\NetBeans-12.6\netbeans\java\modules\org-netbeans-modules-form.jar has no public packages and so cannot be compiled against

I assume that in your case, the lack of any public packages is why you can't find the FormEditorSupport class. In my case, I found an offending module of mine that was depending on the "Form Editor" module for no reason that I can remember. My application doesn't edit Forms and I don't recall ever having any such dependency.  I removed the dependency, and am no longer getting any errors related to the org.netbeans.modules.form module.

Does your application edit forms?  I found a GitHub repot for it at
https://github.com/szymach/incubator-netbeans/blob/master/form.nb/src/org/netbeans/modules/nbform/FormEditorSupport.java
if it helps you.

Not much help, I'm sure ... but the cobwebs are slowly clearing for me. As for my application, it now launches in 12.6 🙂.  My application startup, custom project type, and custom file types all seem to be working, which is encouraging.  My menus are not arranged the way that they were previously, which probably has something to do with the layers.

Unfortunately, when I open one of my files the TopComponent briefly shows and then disappears.  I set breakpoints in both componentShowing() and componentClosed().  The debugger stops in both, so some kind of error must be silently causing my TC to close.  Unfortunately, there's nothing in the logs.

I guess I need to go work through the latest MultiView tutorial and see if something has changed that I need to be aware of.

I hope you're also making progress.

Cheers,
Peter

________________________________
From: Peter Blemel <pb...@hotmail.com>
Sent: Tuesday, January 18, 2022 10:59 AM
To: dev@netbeans.apache.org <de...@netbeans.apache.org>; NetBeans Mailing List <us...@netbeans.apache.org>
Subject: Re: Updating an Old Plugin and Having Issues

Just to be clear, I am working in Netbeans 12.6 on both computers.  Absolute Layout works at home, but at my office it throws

java.io.IOException: no module org.netbeans.modules.form
at org.netbeans.modules.apisupport.project.queries.ModuleProjectClassPathExtender.addLibraries(ModuleProjectClassPathExtender.java:108)
at org.netbeans.spi.java.project.classpath.ProjectClassPathModifierImplementation$Accessor.addLibraries(ProjectClassPathModifierImplementation.java:401)
at org.netbeans.api.java.project.classpath.ProjectClassPathModifier.addLibraries(ProjectClassPathModifier.java:86)
at org.netbeans.modules.nbform.project.ClassSourceResolver$LibraryEntry.addToProjectClassPath(ClassSourceResolver.java:208)
at org.netbeans.modules.form.project.ClassSource.addToProjectClassPath(ClassSource.java:89)
at org.netbeans.modules.form.project.ClassPathUtils$2.run(ClassPathUtils.java:245)
at org.netbeans.modules.progress.ui.RunOffEDTImpl$ProgressBackgroundRunner.runBackground(RunOffEDTImpl.java:465)
at org.netbeans.modules.progress.ui.AbstractWindowRunner.call(AbstractWindowRunner.java:86)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

________________________________
From: Peter Blemel <pb...@hotmail.com>
Sent: Tuesday, January 18, 2022 10:54 AM
To: dev@netbeans.apache.org <de...@netbeans.apache.org>; NetBeans Mailing List <us...@netbeans.apache.org>
Subject: Re: Updating an Old Plugin and Having Issues

Sean,

Your post inspired me to dust off an old Platform application of mine (a general Predicate Logic editor, among other things).  Hopefully, I can get back into the swing of things enough to be of some use around this mailing list 🙂.

My application was using Platform 6.8. I'm trying to get it running in 12.6. There's been some Platform module refactoring since 6,8, but in general I just had to add module dependencies to get everything to compile.

Where this is relevant to you is that I ran into a problem with old Form Editor autocode that depends on the old Swing Layout Extensions Integration (or whatever it was called, specifically it used org.jdesktop.layout.GroupLayout).  On my home system, I was able to change the layout to "Absolute" from "Free Design" and everything worked great. I just tried doing the same thing on my work desktop, and I ran into a "no module org.netbeans.modules.form" error.

I don't know the difference between the two systems, except possibly that 1) this office machine has only has 12.0 on it and 2) is running a newer Open JDK 17 that I just installed.  The home machine had 12.0 and 12.2 that I uninstalled to make room for 12.6. I am not sure which JDK it uses, possibly 11 (I will have to drive home to check, my VPN is one-way).

I will need to ferret out what the difference between the two machines is. One seems to have no problem with the form module. The other does.

Best,
Peter

[cid:81db9cc6-8e29-42ba-aec7-d6a0d3c3f72f]
[cid:72bf27bc-9b5c-49d0-bcdf-30b29545f19b]

________________________________
From: Sean Carrick <se...@pekinsoft.com>
Sent: Sunday, January 16, 2022 5:54 PM
To: dev@netbeans.apache.org <de...@netbeans.apache.org>; NetBeans Mailing List <us...@netbeans.apache.org>
Subject: Updating an Old Plugin and Having Issues

Hey All!

I am updating an old plugin to bring it up to NetBeans 12.6 and have run
into an issue. The old code is using
*org.netbeans.modules.form.FormEditorSupport*i, but when I try to include
it, it does not seem to be found.

Did this class get moved to a different module? Was it dropped altogether?

What I am attempting to update is locating the variables (edit-blocked)
section in the form class and get its offset so that I can declare
variables just below it. The original code is:

if (c instanceof FormEditorSupport) {
    doc = c.getDocument();
    pos = ((FormEditorSupport)
c).getVariablesSection().getStartPosition().getOffset();
} else {
    // ... rest of code goes on for lines and lines ...

IF someone can point me in the right direction, it will be greatly
appreciated!

Sincerely,

Sean Carrick
Owner - PekinSOFT Systems
sean@pekinsoft.com
(309) 989-0672

Re: Updating an Old Plugin and Having Issues

Posted by Peter Blemel <pb...@hotmail.com>.
I'm making a little progress on this.  When compiling a different, unrelated module, I was getting the following error:

The module C:\Program Files\NetBeans-12.6\netbeans\java\modules\org-netbeans-modules-form.jar has no public packages and so cannot be compiled against

I assume that in your case, the lack of any public packages is why you can't find the FormEditorSupport class. In my case, I found an offending module of mine that was depending on the "Form Editor" module for no reason that I can remember. My application doesn't edit Forms and I don't recall ever having any such dependency.  I removed the dependency, and am no longer getting any errors related to the org.netbeans.modules.form module.

Does your application edit forms?  I found a GitHub repot for it at
https://github.com/szymach/incubator-netbeans/blob/master/form.nb/src/org/netbeans/modules/nbform/FormEditorSupport.java
if it helps you.

Not much help, I'm sure ... but the cobwebs are slowly clearing for me. As for my application, it now launches in 12.6 🙂.  My application startup, custom project type, and custom file types all seem to be working, which is encouraging.  My menus are not arranged the way that they were previously, which probably has something to do with the layers.

Unfortunately, when I open one of my files the TopComponent briefly shows and then disappears.  I set breakpoints in both componentShowing() and componentClosed().  The debugger stops in both, so some kind of error must be silently causing my TC to close.  Unfortunately, there's nothing in the logs.

I guess I need to go work through the latest MultiView tutorial and see if something has changed that I need to be aware of.

I hope you're also making progress.

Cheers,
Peter

________________________________
From: Peter Blemel <pb...@hotmail.com>
Sent: Tuesday, January 18, 2022 10:59 AM
To: dev@netbeans.apache.org <de...@netbeans.apache.org>; NetBeans Mailing List <us...@netbeans.apache.org>
Subject: Re: Updating an Old Plugin and Having Issues

Just to be clear, I am working in Netbeans 12.6 on both computers.  Absolute Layout works at home, but at my office it throws

java.io.IOException: no module org.netbeans.modules.form
at org.netbeans.modules.apisupport.project.queries.ModuleProjectClassPathExtender.addLibraries(ModuleProjectClassPathExtender.java:108)
at org.netbeans.spi.java.project.classpath.ProjectClassPathModifierImplementation$Accessor.addLibraries(ProjectClassPathModifierImplementation.java:401)
at org.netbeans.api.java.project.classpath.ProjectClassPathModifier.addLibraries(ProjectClassPathModifier.java:86)
at org.netbeans.modules.nbform.project.ClassSourceResolver$LibraryEntry.addToProjectClassPath(ClassSourceResolver.java:208)
at org.netbeans.modules.form.project.ClassSource.addToProjectClassPath(ClassSource.java:89)
at org.netbeans.modules.form.project.ClassPathUtils$2.run(ClassPathUtils.java:245)
at org.netbeans.modules.progress.ui.RunOffEDTImpl$ProgressBackgroundRunner.runBackground(RunOffEDTImpl.java:465)
at org.netbeans.modules.progress.ui.AbstractWindowRunner.call(AbstractWindowRunner.java:86)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

________________________________
From: Peter Blemel <pb...@hotmail.com>
Sent: Tuesday, January 18, 2022 10:54 AM
To: dev@netbeans.apache.org <de...@netbeans.apache.org>; NetBeans Mailing List <us...@netbeans.apache.org>
Subject: Re: Updating an Old Plugin and Having Issues

Sean,

Your post inspired me to dust off an old Platform application of mine (a general Predicate Logic editor, among other things).  Hopefully, I can get back into the swing of things enough to be of some use around this mailing list 🙂.

My application was using Platform 6.8. I'm trying to get it running in 12.6. There's been some Platform module refactoring since 6,8, but in general I just had to add module dependencies to get everything to compile.

Where this is relevant to you is that I ran into a problem with old Form Editor autocode that depends on the old Swing Layout Extensions Integration (or whatever it was called, specifically it used org.jdesktop.layout.GroupLayout).  On my home system, I was able to change the layout to "Absolute" from "Free Design" and everything worked great. I just tried doing the same thing on my work desktop, and I ran into a "no module org.netbeans.modules.form" error.

I don't know the difference between the two systems, except possibly that 1) this office machine has only has 12.0 on it and 2) is running a newer Open JDK 17 that I just installed.  The home machine had 12.0 and 12.2 that I uninstalled to make room for 12.6. I am not sure which JDK it uses, possibly 11 (I will have to drive home to check, my VPN is one-way).

I will need to ferret out what the difference between the two machines is. One seems to have no problem with the form module. The other does.

Best,
Peter

[cid:81db9cc6-8e29-42ba-aec7-d6a0d3c3f72f]
[cid:72bf27bc-9b5c-49d0-bcdf-30b29545f19b]

________________________________
From: Sean Carrick <se...@pekinsoft.com>
Sent: Sunday, January 16, 2022 5:54 PM
To: dev@netbeans.apache.org <de...@netbeans.apache.org>; NetBeans Mailing List <us...@netbeans.apache.org>
Subject: Updating an Old Plugin and Having Issues

Hey All!

I am updating an old plugin to bring it up to NetBeans 12.6 and have run
into an issue. The old code is using
*org.netbeans.modules.form.FormEditorSupport*i, but when I try to include
it, it does not seem to be found.

Did this class get moved to a different module? Was it dropped altogether?

What I am attempting to update is locating the variables (edit-blocked)
section in the form class and get its offset so that I can declare
variables just below it. The original code is:

if (c instanceof FormEditorSupport) {
    doc = c.getDocument();
    pos = ((FormEditorSupport)
c).getVariablesSection().getStartPosition().getOffset();
} else {
    // ... rest of code goes on for lines and lines ...

IF someone can point me in the right direction, it will be greatly
appreciated!

Sincerely,

Sean Carrick
Owner - PekinSOFT Systems
sean@pekinsoft.com
(309) 989-0672

Re: Updating an Old Plugin and Having Issues

Posted by Peter Blemel <pb...@hotmail.com>.
Just to be clear, I am working in Netbeans 12.6 on both computers.  Absolute Layout works at home, but at my office it throws

java.io.IOException: no module org.netbeans.modules.form
at org.netbeans.modules.apisupport.project.queries.ModuleProjectClassPathExtender.addLibraries(ModuleProjectClassPathExtender.java:108)
at org.netbeans.spi.java.project.classpath.ProjectClassPathModifierImplementation$Accessor.addLibraries(ProjectClassPathModifierImplementation.java:401)
at org.netbeans.api.java.project.classpath.ProjectClassPathModifier.addLibraries(ProjectClassPathModifier.java:86)
at org.netbeans.modules.nbform.project.ClassSourceResolver$LibraryEntry.addToProjectClassPath(ClassSourceResolver.java:208)
at org.netbeans.modules.form.project.ClassSource.addToProjectClassPath(ClassSource.java:89)
at org.netbeans.modules.form.project.ClassPathUtils$2.run(ClassPathUtils.java:245)
at org.netbeans.modules.progress.ui.RunOffEDTImpl$ProgressBackgroundRunner.runBackground(RunOffEDTImpl.java:465)
at org.netbeans.modules.progress.ui.AbstractWindowRunner.call(AbstractWindowRunner.java:86)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

________________________________
From: Peter Blemel <pb...@hotmail.com>
Sent: Tuesday, January 18, 2022 10:54 AM
To: dev@netbeans.apache.org <de...@netbeans.apache.org>; NetBeans Mailing List <us...@netbeans.apache.org>
Subject: Re: Updating an Old Plugin and Having Issues

Sean,

Your post inspired me to dust off an old Platform application of mine (a general Predicate Logic editor, among other things).  Hopefully, I can get back into the swing of things enough to be of some use around this mailing list 🙂.

My application was using Platform 6.8. I'm trying to get it running in 12.6. There's been some Platform module refactoring since 6,8, but in general I just had to add module dependencies to get everything to compile.

Where this is relevant to you is that I ran into a problem with old Form Editor autocode that depends on the old Swing Layout Extensions Integration (or whatever it was called, specifically it used org.jdesktop.layout.GroupLayout).  On my home system, I was able to change the layout to "Absolute" from "Free Design" and everything worked great. I just tried doing the same thing on my work desktop, and I ran into a "no module org.netbeans.modules.form" error.

I don't know the difference between the two systems, except possibly that 1) this office machine has only has 12.0 on it and 2) is running a newer Open JDK 17 that I just installed.  The home machine had 12.0 and 12.2 that I uninstalled to make room for 12.6. I am not sure which JDK it uses, possibly 11 (I will have to drive home to check, my VPN is one-way).

I will need to ferret out what the difference between the two machines is. One seems to have no problem with the form module. The other does.

Best,
Peter

[cid:81db9cc6-8e29-42ba-aec7-d6a0d3c3f72f]
[cid:72bf27bc-9b5c-49d0-bcdf-30b29545f19b]

________________________________
From: Sean Carrick <se...@pekinsoft.com>
Sent: Sunday, January 16, 2022 5:54 PM
To: dev@netbeans.apache.org <de...@netbeans.apache.org>; NetBeans Mailing List <us...@netbeans.apache.org>
Subject: Updating an Old Plugin and Having Issues

Hey All!

I am updating an old plugin to bring it up to NetBeans 12.6 and have run
into an issue. The old code is using
*org.netbeans.modules.form.FormEditorSupport*i, but when I try to include
it, it does not seem to be found.

Did this class get moved to a different module? Was it dropped altogether?

What I am attempting to update is locating the variables (edit-blocked)
section in the form class and get its offset so that I can declare
variables just below it. The original code is:

if (c instanceof FormEditorSupport) {
    doc = c.getDocument();
    pos = ((FormEditorSupport)
c).getVariablesSection().getStartPosition().getOffset();
} else {
    // ... rest of code goes on for lines and lines ...

IF someone can point me in the right direction, it will be greatly
appreciated!

Sincerely,

Sean Carrick
Owner - PekinSOFT Systems
sean@pekinsoft.com
(309) 989-0672

Re: Updating an Old Plugin and Having Issues

Posted by Peter Blemel <pb...@hotmail.com>.
Sean,

Your post inspired me to dust off an old Platform application of mine (a general Predicate Logic editor, among other things).  Hopefully, I can get back into the swing of things enough to be of some use around this mailing list 🙂.

My application was using Platform 6.8. I'm trying to get it running in 12.6. There's been some Platform module refactoring since 6,8, but in general I just had to add module dependencies to get everything to compile.

Where this is relevant to you is that I ran into a problem with old Form Editor autocode that depends on the old Swing Layout Extensions Integration (or whatever it was called, specifically it used org.jdesktop.layout.GroupLayout).  On my home system, I was able to change the layout to "Absolute" from "Free Design" and everything worked great. I just tried doing the same thing on my work desktop, and I ran into a "no module org.netbeans.modules.form" error.

I don't know the difference between the two systems, except possibly that 1) this office machine has only has 12.0 on it and 2) is running a newer Open JDK 17 that I just installed.  The home machine had 12.0 and 12.2 that I uninstalled to make room for 12.6. I am not sure which JDK it uses, possibly 11 (I will have to drive home to check, my VPN is one-way).

I will need to ferret out what the difference between the two machines is. One seems to have no problem with the form module. The other does.

Best,
Peter

[cid:81db9cc6-8e29-42ba-aec7-d6a0d3c3f72f]
[cid:72bf27bc-9b5c-49d0-bcdf-30b29545f19b]

________________________________
From: Sean Carrick <se...@pekinsoft.com>
Sent: Sunday, January 16, 2022 5:54 PM
To: dev@netbeans.apache.org <de...@netbeans.apache.org>; NetBeans Mailing List <us...@netbeans.apache.org>
Subject: Updating an Old Plugin and Having Issues

Hey All!

I am updating an old plugin to bring it up to NetBeans 12.6 and have run
into an issue. The old code is using
*org.netbeans.modules.form.FormEditorSupport*i, but when I try to include
it, it does not seem to be found.

Did this class get moved to a different module? Was it dropped altogether?

What I am attempting to update is locating the variables (edit-blocked)
section in the form class and get its offset so that I can declare
variables just below it. The original code is:

if (c instanceof FormEditorSupport) {
    doc = c.getDocument();
    pos = ((FormEditorSupport)
c).getVariablesSection().getStartPosition().getOffset();
} else {
    // ... rest of code goes on for lines and lines ...

IF someone can point me in the right direction, it will be greatly
appreciated!

Sincerely,

Sean Carrick
Owner - PekinSOFT Systems
sean@pekinsoft.com
(309) 989-0672

Re: Updating an Old Plugin and Having Issues

Posted by Michael Bien <mb...@gmail.com>.
the class seems to be still there
https://github.com/apache/netbeans/blob/c084119009d2e0f736f225d706bc1827af283501/java/form.nb/src/org/netbeans/modules/nbform/FormEditorSupport.java

which is in org.netbeans.modules.form.nb but it doesn't appear to be 
public API unless i overlooked something.

have you updated the dependencies? To access it you might need to depend 
on the implementation version, and keep that version in sync.

"Additionally, sometimes a module wishes to get unrestricted access to 
non-public packages of an API module. This is discouraged, but possible 
if such module declares a /direct/ dependency on the API module using an 
implementation version dependency - this kind of dependency indicates 
that the client module is prepared to track every idiosyncrasy of the 
API module, and knows how to safely use "
https://bits.netbeans.org/11.1/javadoc/org-openide-modules/org/openide/modules/doc-files/api.html


-michael


On 17.01.22 01:54, Sean Carrick wrote:
> Hey All!
>
> I am updating an old plugin to bring it up to NetBeans 12.6 and have 
> run into an issue. The old code is using 
> /org.netbeans.modules.form.FormEditorSupport/i, but when I try to 
> include it, it does not seem to be found.
>
> Did this class get moved to a different module? Was it dropped altogether?
>
> What I am attempting to update is locating the variables 
> (edit-blocked) section in the form class and get its offset so that I 
> can declare variables just below it. The original code is:
>
> if (c instanceof FormEditorSupport) {
>     doc = c.getDocument();
>     pos = ((FormEditorSupport) 
> c).getVariablesSection().getStartPosition().getOffset();
> } else {
>     // ... rest of code goes on for lines and lines ...
>
> IF someone can point me in the right direction, it will be greatly 
> appreciated!
>
> Sincerely,
>
> Sean Carrick
> Owner - PekinSOFT Systems
> sean@pekinsoft.com
> (309) 989-0672