RE: How to disable this annoying thing

2020-11-29 Thread Greenberg, Gary
I did change this setting under Options->Java->Maven->Dependencies.
When I clicked on OK to apply these changes, Netbeans showed me a popup window 
“Performing lengthy operation” and hung.
I have killed it after approximately 40 minutes. When I restarted Netbeans 
options were not saved.
I did it again and now it took only 5 minutes to save.
Meanwhile it did start “Downloading Javadoc” and that process stalled at 24%.
About dozen attempts to cancel it did not succeed.
Now my question is: Why these processes are immortal and how do I cancel its 
execution?

Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggree...@visa.com
M: 650-269-7902

[EmailSig-TaglineVersion]

From: Geertjan Wielenga 
Sent: Sunday, November 29, 2020 12:54 AM
To: Greenberg, Gary 
Cc: users@netbeans.apache.org
Subject: Re: How to disable this annoying thing


Take a look in the Maven section in the Java tab of the Options window.

Gj

On Sun, 29 Nov 2020 at 06:47, Greenberg, Gary 
mailto:ggree...@visa.com.invalid>> wrote:
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@01D6C678.98B285E0]
This task always sits at 1% completion and never finishes.
If I can kill this task (which happens only in ¼ of attempts) it is restarted 
in few minutes.
It makes Netbeans very sluggish.
All these jar files already in my .m2 repository.
What it is trying to achieve and how can I get rid of this task?
Regards,
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggree...@visa.com
M: 650-269-7902

[EmailSig-TaglineVersion]



Re: Searching the mailing list

2020-11-29 Thread HRH
 Thank you Davide. I always wanted to know the answer, but too afraid to ask :-)

On Sunday, November 29, 2020, 9:31:16 PM GMT+3:30, Davide Grandi 
 wrote:  
 
  
https://lists.apache.org/list.html?users@netbeans.apache.org
 
(from https://netbeans.apache.org/community/mailing-lists.html)
 
 cheers,
 
    Davide
 
 On 29/11/2020 18:45, HRH wrote:
  
 
 Hi, 
  How does one search the Netbeans mailing list for a given topic? 
  Thanks
   -- 
Ing. Davide Grandi
email: davide.gra...@email.it
mobile   : +39 339 7468 778
linkedin : http://linkedin.com/in/davidegrandi   

Re: Searching the mailing list

2020-11-29 Thread Davide Grandi

https://lists.apache.org/list.html?users@netbeans.apache.org

(from https://netbeans.apache.org/community/mailing-lists.html)

cheers,

    Davide

On 29/11/2020 18:45, HRH wrote:

Hi,

How does one search the Netbeans mailing list for a given topic?

Thanks


--
Ing. Davide Grandi
email: davide.gra...@email.it
mobile   : +39 339 7468 778
linkedin : http://linkedin.com/in/davidegrandi



Searching the mailing list

2020-11-29 Thread HRH
Hi,
How does one search the Netbeans mailing list for a given topic?
Thanks


RE: How to get Project from custom action ?

2020-11-29 Thread Orlyanskiy Vladimir
Thank you!

 

From: Laszlo Kishalmi  
Sent: Sunday, November 29, 2020 2:56 AM
To: users@netbeans.apache.org
Subject: Re: How to get Project from custom action ?

 

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, Orlyanskiy Vladimir wrote:

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 
for action?

 

package org.vorlyanskiy.netbeans.groovy;

 

import java.awt.event.ActionEvent;

import java.awt.event.ActionListener;

import java.util.Collection;

import org.netbeans.api.project.Project;

import org.openide.awt.ActionID;

import org.openide.awt.ActionReference;

import org.openide.awt.ActionReferences;

import org.openide.awt.ActionRegistration;

import org.openide.loaders.DataObject;

import org.openide.util.Lookup;

import org.openide.util.NbBundle.Messages;

import org.openide.util.Utilities;

 

@ActionID(

category = "Build",

id = "org.vorlyanskiy.netbeans.groovy.SomeAction"

)

@ActionRegistration(

displayName = "#CTL_SomeAction"

)

@ActionReferences({

@ActionReference(path = "Loaders/text/x-groovy/Actions", position = 566),

})

@Messages("CTL_SomeAction=My Action")

public final class SomeAction implements ActionListener {

 

private final Project context;

 

public SomeAction(Project context) {

this.context = context;

}

 

@Override

public void actionPerformed(ActionEvent ev) {

Project project = 
Utilities.actionsGlobalContext().lookup(Project.class);

Project project2 = context.getLookup().lookup(Project.class);

}

}

 

 



 

From: Geertjan Wielenga   
 
Sent: Sunday, November 29, 2020 1:41 AM
To: Orlyanskiy Vladimir   
Cc: users@netbeans.apache.org  
Subject: Re: How to get Project from custom action ?

 

Replace DataObject with Project.

 

Gj

 

On Sat, 28 Nov 2020 at 23:38, Orlyanskiy Vladimir mailto:en...@mail.ru.invalid> > 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. Project is null 
in both cases.

How to load current Project from action ?

 

 

@ActionID(

category = "Build",

id = "org.xxx.netbeans.groovy.SomeAction"

)

@ActionRegistration(

displayName = "#CTL_SomeAction"

)

@ActionReferences({

@ActionReference(path = "Loaders/text/x-groovy/Actions", position = 566),

})

@Messages("CTL_SomeAction=My Action")

public final class SomeAction implements ActionListener {

 

private final DataObject context;

 

public SomeAction(DataObject context) {

this.context = context;

}

 

@Override

public void actionPerformed(ActionEvent ev) {

Project project = 
Utilities.actionsGlobalContext().lookup(Project.class);

Project project2 = context.getLookup().lookup(Project.class);

}

}

 





Re: Netbeans 12.1: Cannot access java.lang?

2020-11-29 Thread Geertjan Wielenga
Most applicable is this: what must someone do to see the problem, please?

Gj

On Sun, 29 Nov 2020 at 10:52, Owen Thomas 
wrote:

> Which log files are applicable?
>
> On Sun, 29 Nov 2020 at 20:51, Owen Thomas 
> wrote:
>
>> Yes, my apologies Geertjan. It's Ubuntu 20.04.1.
>>
>> On Sun, 29 Nov 2020 at 19:53, Geertjan Wielenga <
>> geertjan.wiele...@googlemail.com> wrote:
>>
>>> What is the operating system on the new laptop you have acquired?
>>>
>>> Can you include that information every time you write to this mailing
>>> list?
>>>
>>> Gj
>>>
>>> On Sun, 29 Nov 2020 at 08:18, Owen Thomas 
>>> wrote:
>>>
 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 still telling
 me it cannot find java.lang.

 I have installed netbeans three times, first two times over version 14
 of the Open JDK and the third time over version 12 of the Open JDK. I have
 no idea what is wrong.

 On Sun, 29 Nov 2020 at 17:50, Owen Thomas 
 wrote:

> 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 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, but I am going
>> to follow it now by uninstalling 14 and installing 12. I'll post 
>> something
>> saying how I get on.
>>
>> On Sun, 29 Nov 2020 at 16:32, Owen Thomas 
>> wrote:
>>
>>> 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.
>>>
>>>   Owen.
>>>
>>


Re: Netbeans 12.1: Cannot access java.lang?

2020-11-29 Thread Owen Thomas
Which log files are applicable?

On Sun, 29 Nov 2020 at 20:51, Owen Thomas 
wrote:

> Yes, my apologies Geertjan. It's Ubuntu 20.04.1.
>
> On Sun, 29 Nov 2020 at 19:53, Geertjan Wielenga <
> geertjan.wiele...@googlemail.com> wrote:
>
>> What is the operating system on the new laptop you have acquired?
>>
>> Can you include that information every time you write to this mailing
>> list?
>>
>> Gj
>>
>> On Sun, 29 Nov 2020 at 08:18, Owen Thomas 
>> wrote:
>>
>>> 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 still telling
>>> me it cannot find java.lang.
>>>
>>> I have installed netbeans three times, first two times over version 14
>>> of the Open JDK and the third time over version 12 of the Open JDK. I have
>>> no idea what is wrong.
>>>
>>> On Sun, 29 Nov 2020 at 17:50, Owen Thomas 
>>> wrote:
>>>
 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 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, but I am going
> to follow it now by uninstalling 14 and installing 12. I'll post something
> saying how I get on.
>
> On Sun, 29 Nov 2020 at 16:32, Owen Thomas 
> wrote:
>
>> 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.
>>
>>   Owen.
>>
>


Re: Netbeans 12.1: Cannot access java.lang?

2020-11-29 Thread Owen Thomas
Yes, my apologies Geertjan. It's Ubuntu 20.04.1.

On Sun, 29 Nov 2020 at 19:53, Geertjan Wielenga <
geertjan.wiele...@googlemail.com> wrote:

> What is the operating system on the new laptop you have acquired?
>
> Can you include that information every time you write to this mailing list?
>
> Gj
>
> On Sun, 29 Nov 2020 at 08:18, Owen Thomas 
> wrote:
>
>> 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 still telling
>> me it cannot find java.lang.
>>
>> I have installed netbeans three times, first two times over version 14 of
>> the Open JDK and the third time over version 12 of the Open JDK. I have no
>> idea what is wrong.
>>
>> On Sun, 29 Nov 2020 at 17:50, Owen Thomas 
>> wrote:
>>
>>> 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 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, but I am going
 to follow it now by uninstalling 14 and installing 12. I'll post something
 saying how I get on.

 On Sun, 29 Nov 2020 at 16:32, Owen Thomas 
 wrote:

> 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.
>
>   Owen.
>



Re: How to disable this annoying thing

2020-11-29 Thread Geertjan Wielenga
Take a look in the Maven section in the Java tab of the Options window.

Gj

On Sun, 29 Nov 2020 at 06:47, Greenberg, Gary 
wrote:

> I am working with NB 12.0 in Win10 Pro.
>
> Practically right after opening active projects, Netbeans started a task
> “Downloading Sources”
>
> This task always sits at 1% completion and never finishes.
>
> If I can kill this task (which happens only in ¼ of attempts) it is
> restarted in few minutes.
>
> It makes Netbeans very sluggish.
>
> All these jar files already in my .m2 repository.
>
> What it is trying to achieve and how can I get rid of this task?
>
> Regards,
>
> Gary Greenberg
>
> Staff Software Engineer
>
> Data Product Development, BI-A
>
> E: ggree...@visa.com
>
> M: 650-269-7902
>
>
>
> [image: EmailSig-TaglineVersion]
>
>
>


Re: Netbeans 12.1: Cannot access java.lang?

2020-11-29 Thread Geertjan Wielenga
What is the operating system on the new laptop you have acquired?

Can you include that information every time you write to this mailing list?

Gj

On Sun, 29 Nov 2020 at 08:18, Owen Thomas 
wrote:

> 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 still telling
> me it cannot find java.lang.
>
> I have installed netbeans three times, first two times over version 14 of
> the Open JDK and the third time over version 12 of the Open JDK. I have no
> idea what is wrong.
>
> On Sun, 29 Nov 2020 at 17:50, Owen Thomas 
> wrote:
>
>> 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 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, but I am going
>>> to follow it now by uninstalling 14 and installing 12. I'll post something
>>> saying how I get on.
>>>
>>> On Sun, 29 Nov 2020 at 16:32, Owen Thomas 
>>> wrote:
>>>
 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.

   Owen.

>>>