Re: Netbeans 12.1: Cannot access java.lang?

2020-11-28 Thread Owen Thomas
When removing NetBeans 12 prior to reinstallation. I find a folder in my home folder called .nbi. This looks like something NetBeans created, so I removed it too. After reinstallation, and noting that the .nbi folder had appeared as expected, I started NetBeans and found no change. NetBeans is sti

Re: Netbeans 12.1: Cannot access java.lang?

2020-11-28 Thread Owen Thomas
I actually installed Open JDK 11 because version 12 doesn't exist. I didn't do anything to my NetBeans install... perhaps I'll reinstall it again... I've observed no change, and I have no idea. Help appreciated. On Sun, 29 Nov 2020 at 16:48, Owen Thomas wrote: > I did find something on Stack Ov

Re: Netbeans 12.1: Cannot access java.lang?

2020-11-28 Thread Owen Thomas
I did find something on Stack Overflow about using a JDK that is later than the installed version of NetBeans. I have installed OpenJDK 14. I think this advice is dubious,

How to disable this annoying thing

2020-11-28 Thread Greenberg, Gary
I am working with NB 12.0 in Win10 Pro. Practically right after opening active projects, Netbeans started a task "Downloading Sources" [cid:image002.png@01D6C5CF.4FBB37A0] This task always sits at 1% completion and never finishes. If I can kill this task (which happens only in ΒΌ of attempts) it is

Netbeans 12.1: Cannot access java.lang?

2020-11-28 Thread Owen Thomas
Hello. I've just installed 12.1 on a new computer I have acquired. When I restart NetBeans after deleting my cache, I get the attached error telling me the IDE cannot find java.lang. I have no idea why this error is appearing, and would appreciate some advice. Thanks in advance for your help.

Re: How to get Project from custom action ?

2020-11-28 Thread Laszlo Kishalmi
Pretty easy. If you have the FileObject (that cna be acquired by the DataObject if needed), Then get use the: http://bits.netbeans.org/dev/javadoc/org-netbeans-modules-projectapi/org/netbeans/api/project/FileOwnerQuery.html#getOwner-org.openide.filesystems.FileObject- On 11/28/20 3:13 PM, Orlya

RE: How to get Project from custom action ?

2020-11-28 Thread Orlyanskiy Vladimir
Do you mean replace DataObject to Project as I have done in new example? In this case my action is disabled in context menu. I have added picture with example. I need to know DataObject/File and Project in one time. If I will know Project how can I find what DataObject/File has been selected

Re: How to get Project from custom action ?

2020-11-28 Thread Geertjan Wielenga
Replace DataObject with Project. Gj On Sat, 28 Nov 2020 at 23:38, Orlyanskiy Vladimir wrote: > Hello. > > I try to create module with new action for existing file type. > > I have created action with code that I have put below. > > I have problem with loading Project in method actionPerformed.

How to get Project from custom action ?

2020-11-28 Thread Orlyanskiy Vladimir
Hello. I try to create module with new action for existing file type. I have created action with code that I have put below. I have problem with loading Project in method actionPerformed. Project is null in both cases. How to load current Project from action ? @ActionID( categ