Re: Java Call Hierarchy Bug?

2024-06-19 Thread Mitch Claborn

Any further feedback on this?

Mitch

On 6/14/24 12:30, Mitch Claborn wrote:
See attached zip file with minimal source and a screen shot of what I 
see in the Java Call Hierarchy output. I contend that test1()::Test1 
should not appear in the output, because it is not a caller of 
getFullSku()::OrderDetail which is stated (or at least strongly implied) 
in the hierarchy display.


The display would be accurate if the 2nd line was getFullSku()::IOrderItem.

It would be considerably more useful in my situation if the 2nd line 
remained as shown and the results only included uses of 
getFullSku()::OrderDetail.


Mitch

On 6/14/24 12:02, Pieter van den Hombergh wrote:
add the full code of hierarchy and caller or at least a minimal 
working example.


at first glance I see nothing odd here. Maybe a matter of 
misunderstanding?


met vriendelijke groet
Pieter van den Hombergh

Op vr 14 jun 2024, 18:10 schreef Mitch Claborn <mailto:mitch...@claborn.net>>:


    See details below. This seems like a bug. Do you agree? Want to 
confirm

    before I file a bug report.

    Class OrderDetailBase defines method: public String getSku(). I am
    doing
    a Java Call Hierarchy on this method.

    Class OrderDetail is a subclass of OrderDetailBase and defines this
    method that calls getSku(): public String getFullSku(). This 
method is

    also defined in interface IOrderItem which is implemented by
    OrderDetail.

    Cart is another class that implements IOrderItem.

    The Java Call Hierarchy display shows this:
    level 0: OrderDetailBase.getSku()
    level 1: OrderDetail.getFullSku()
    level 2: a usage of Cart.getFullSku()

    This level 2 entry seems like the bug. It shouldn't be showing
    usages of
    Cart.getFullSku(), only OrderDetail.getFullSku(). I'm guessing 
that the

    Hierarchy display is showing uses of IOrderItem.getFullSku() rather
    than
    OrderDetail.getFullSku().


    --     Mitch

    -
    To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
    <mailto:users-unsubscr...@netbeans.apache.org>
    For additional commands, e-mail: users-h...@netbeans.apache.org
    <mailto:users-h...@netbeans.apache.org>

    For further information about the NetBeans mailing lists, visit:
    https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
    <https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists>




-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Java Call Hierarchy Bug?

2024-06-14 Thread Mitch Claborn
See attached zip file with minimal source and a screen shot of what I 
see in the Java Call Hierarchy output. I contend that test1()::Test1 
should not appear in the output, because it is not a caller of 
getFullSku()::OrderDetail which is stated (or at least strongly implied) 
in the hierarchy display.


The display would be accurate if the 2nd line was getFullSku()::IOrderItem.

It would be considerably more useful in my situation if the 2nd line 
remained as shown and the results only included uses of 
getFullSku()::OrderDetail.


Mitch

On 6/14/24 12:02, Pieter van den Hombergh wrote:
add the full code of hierarchy and caller or at least a minimal working 
example.


at first glance I see nothing odd here. Maybe a matter of misunderstanding?

met vriendelijke groet
Pieter van den Hombergh

Op vr 14 jun 2024, 18:10 schreef Mitch Claborn <mailto:mitch...@claborn.net>>:


See details below. This seems like a bug. Do you agree? Want to confirm
before I file a bug report.

Class OrderDetailBase defines method: public String getSku(). I am
doing
a Java Call Hierarchy on this method.

Class OrderDetail is a subclass of OrderDetailBase and defines this
method that calls getSku(): public String getFullSku(). This method is
also defined in interface IOrderItem which is implemented by
OrderDetail.

Cart is another class that implements IOrderItem.

The Java Call Hierarchy display shows this:
level 0: OrderDetailBase.getSku()
level 1: OrderDetail.getFullSku()
level 2: a usage of Cart.getFullSku()

This level 2 entry seems like the bug. It shouldn't be showing
usages of
Cart.getFullSku(), only OrderDetail.getFullSku(). I'm guessing that the
Hierarchy display is showing uses of IOrderItem.getFullSku() rather
than
OrderDetail.getFullSku().


-- 
Mitch


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
<mailto:users-unsubscr...@netbeans.apache.org>
For additional commands, e-mail: users-h...@netbeans.apache.org
<mailto:users-h...@netbeans.apache.org>

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
<https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists>
<>

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Java Call Hierarchy Bug?

2024-06-14 Thread Mitch Claborn
See details below. This seems like a bug. Do you agree? Want to confirm 
before I file a bug report.


Class OrderDetailBase defines method: public String getSku(). I am doing 
a Java Call Hierarchy on this method.


Class OrderDetail is a subclass of OrderDetailBase and defines this 
method that calls getSku(): public String getFullSku(). This method is 
also defined in interface IOrderItem which is implemented by OrderDetail.


Cart is another class that implements IOrderItem.

The Java Call Hierarchy display shows this:
level 0: OrderDetailBase.getSku()
level 1: OrderDetail.getFullSku()
level 2: a usage of Cart.getFullSku()

This level 2 entry seems like the bug. It shouldn't be showing usages of 
Cart.getFullSku(), only OrderDetail.getFullSku(). I'm guessing that the 
Hierarchy display is showing uses of IOrderItem.getFullSku() rather than 
OrderDetail.getFullSku().



--
Mitch

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Compile error but no line indicators

2024-06-13 Thread Mitch Claborn

I submitted a bug: https://github.com/apache/netbeans/issues/7467

Mitch

On 6/13/24 09:47, Ernie Rael wrote:

On 24/06/12 8:10 PM, Owen Thomas wrote:
I have experienced this as well. The best that I have been able to do 
is rely on build output. Don't know if anyone else is looking into 
this problem. It gets tedious when this happens for a complex build. 
It seems to happen for me most often when there is a problem with 
generic parameters.


I see this occasionally, where clearing the cache fixes it. It's 
difficult to come up with steps to reproduce it. Not sure what you can 
look it without being able to reproduce it.


I have always wondered if some kind of verify-cache/validate-cache is 
around or available. It might be expensive to run. But if you're in a 
situation where it happens frequently, turning it on might help finding 
the problem.


-ernie


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Compile error but no line indicators

2024-06-12 Thread Mitch Claborn
This happens to me occasionally, usually when editing a fairly large 
java file. The icon in the tab will show a red indicator for a compile 
error, but there are no red indicators on the right gutter to show which 
lines have the error(s). If I'm lucky enough to find one the errors on 
my own, the method call will be in italics, showing an error, but there 
is no red indicator on the right.


Re-opening NetBeans does not help, nor does re-opening the file in 
question. The only way I've found to recover is to close NetBeans, 
delete the cache directory, then re-open NetBeans.


Any ideas? Maybe a bug?

--
Mitch

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Cloned and floated window not behaving

2023-12-06 Thread Mitch Claborn

+1 for scroll lock

Mitch

On 12/6/23 10:20, Ernie Rael wrote:

On 23/12/06 7:47 AM, Mitch Claborn wrote:
Editing a Java class. I'm creating a new version of a method in that 
class and want the old version in a separate window for reference. I 
clone the current window then float it and scroll to the old version 
of the method in the floated window and put that window on a different 
monitor.


When I make changes in the same file in the main NB window the floated 
window doesn't stay where it was, but scrolls to where I'm making 
edits in the main window.


Is that the expected behavior?

That's long standing (like forever) behavior, probably a swing issue. 
IIRC, the "cloned" window only scrolls when lines are added/removed 
earlier in the file than the position being displayed.


jVi fixed it (back in NB-6.x I think, or maybe even when jVi was only on 
JBuilder); posted an issue but NB wasn't interested in the fix. See 
FreezeViewport.java in the jVi sources.


-ernie


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Cloned and floated window not behaving

2023-12-06 Thread Mitch Claborn
Editing a Java class. I'm creating a new version of a method in that 
class and want the old version in a separate window for reference. I 
clone the current window then float it and scroll to the old version of 
the method in the floated window and put that window on a different 
monitor.


When I make changes in the same file in the main NB window the floated 
window doesn't stay where it was, but scrolls to where I'm making edits 
in the main window.


Is that the expected behavior?

--
Mitch

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Getter/Setter templates

2023-10-23 Thread Mitch Claborn
Where are the customizable templates for the getters and setters 
generated with Generate > Getter and Setter ?


--
Mitch

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Context aware keymapping + macro

2023-05-05 Thread Mitch Claborn
Is it possible to have a macro that is invoked via a key mapping to 
operate differently depending on the contexts in which it is invoked 
(e.g. editing Java vs editing HTML)? Or to have that key mapping invoke 
a different macro based on the context? If so, how?


Example:
When editing a Java file Ctrl+Shift+D inserts "hello Java"
When editing an HTML file Ctrl+Shift+D inserts "hello HTML"

--
Mitch

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Context aware keymapping + macro

2023-03-03 Thread Mitch Claborn
Is it possible to have a macro that is invoked via a key mapping to 
operate differently depending on the contexts in which it is invoked 
(e.g. editing Java vs editing HTML)? Or to have that key mapping invoke 
a different macro based on the context? If so, how?


Example:
When editing a Java file Ctrl+Shift+D inserts "hello Java"
When editing an HTML file Ctrl+Shift+D inserts "hello HTML"

--
Mitch

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Web Project compile on save not working?

2022-12-02 Thread Mitch Claborn

I'm not sure what happened, but it started working again. Weird.

Mitch

On 12/2/22 11:54, Mitch Claborn wrote:

NB 15 on Xubuntu 20.04

I have a web project with "Compile on Save" set. When I change a java 
source file and save it, the timestamp on the corresponding class file 
in build/web/WEB-INF/classes does not change.


I'm 112.5% sure that this worked in NB 12. I'm fairly certain that it 
was working yesterday in NB 15.


What am I missing?



-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Web Project compile on save not working?

2022-12-02 Thread Mitch Claborn

NB 15 on Xubuntu 20.04

I have a web project with "Compile on Save" set. When I change a java 
source file and save it, the timestamp on the corresponding class file 
in build/web/WEB-INF/classes does not change.


I'm 112.5% sure that this worked in NB 12. I'm fairly certain that it 
was working yesterday in NB 15.


What am I missing?

--
Mitch

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Remove breakpoint in JSP file

2022-09-15 Thread Mitch Claborn

Perfect! Thank you.


Mitch

On 9/15/22 11:14, Thomas Kellerer wrote:

Mitch Claborn schrieb am 15.09.2022 um 17:58:

NetBeans 12.6

Somehow I ended up with a breakpoint in a JSP file. How can I get rid
of it? I've tried right click > Toggle Line Breakpoint but it does
not remove the breakpoint. I can enable/disable it with a right
click, not that that helps anything.


You can display the list of all break points through "Window -> 
Debugging -> Breakpoints"


 From there you should be able to delete everything.





-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Remove breakpoint in JSP file

2022-09-15 Thread Mitch Claborn

NetBeans 12.6

Somehow I ended up with a breakpoint in a JSP file. How can I get rid of 
it? I've tried right click > Toggle Line Breakpoint but it does not 
remove the breakpoint. I can enable/disable it with a right click, not 
that that helps anything.


--

Mitch

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Generate setters that return this

2022-09-06 Thread Mitch Claborn
Yes, I suppose Builder is the more correct term. The question is the 
same: Is there a way in NetBeans to generate those?



Mitch

On 9/6/22 11:52, Greenberg, Gary wrote:

I think you are confusing setters with builders.
Setters do not return anything, but builders do return this.
Lookup design patterns.

-Original Message-
From: Mitch Claborn 
Sent: Tuesday, September 6, 2022 5:49 AM
To: users@netbeans.apache.org
Subject: Re: Generate setters that return this

I assume from the lack of response that this is not currently possible and 
would require development. Does anyone have an idea of how much work would be 
required to develop this?


Mitch

On 8/30/22 13:40, Mitch Claborn wrote:

The "Generate Getters and Setters" dialog generates setters plain Java
setters with return type "void". Many times I'd like the setter to
return "this" instead. Is there a way to have those generated
automatically?



-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blistsdata=05%7C01%7Cggreenbe%40visa.com%7Cd6af7d4be6a24329ebde08da90063d98%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C0%7C637980653738217386%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7Csdata=1Ejwm399RgNZOE4haI%2FCnRfTp6MH2uJI3hX8hC8L1Z0%3Dreserved=0


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Generate setters that return this

2022-09-06 Thread Mitch Claborn
I assume from the lack of response that this is not currently possible 
and would require development. Does anyone have an idea of how much work 
would be required to develop this?



Mitch

On 8/30/22 13:40, Mitch Claborn wrote:
The "Generate Getters and Setters" dialog generates setters plain Java 
setters with return type "void". Many times I'd like the setter to 
return "this" instead. Is there a way to have those generated 
automatically?




-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Generate setters that return this

2022-08-30 Thread Mitch Claborn
The "Generate Getters and Setters" dialog generates setters plain Java 
setters with return type "void". Many times I'd like the setter to 
return "this" instead. Is there a way to have those generated 
automatically?


--

Mitch

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



(Linux) installer: default value of netbeans_jdkhome

2022-01-19 Thread Mitch Claborn
It would be helpful if the Linux installer would read the value of 
netbeans.con (netbeans_jdkhome) from the previously installed version 
and use that as the default in the installer dialog.

--

Mitch

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Java Copy Paste plugin

2022-01-15 Thread Mitch Claborn

Interested: +1
Willing to test: +1


Mitch

On 1/15/22 11:39 AM, Andreas Reichel wrote:

Greetings All.

Apologies upfront for leaning myself far out of the window. I have 
written similar stuff before for myself in order to copy'n paste SQL 
from Java and back from Java Code to SQL.

(You may look for JSQLFormatter ar Github as reference.)

I could turn that into a generic revival of that plugin, but I wonder:

1) how many users were interested in and ready to test any code and

2) why did such an obvious feature never made it into Netbeans itself 
please?


Warm regards
Andreas

On Sat, 2022-01-15 at 11:26 -0600, Mitch Claborn wrote:

Yes, that's the one.

Does anyone have time to revive that project? If I was competent in
NetBeans development I would do so, but I just don't have the time to
get up to speed and maintain the project.


Mitch

On 1/14/22 7:27 PM, Juan Algaba wrote:

Was it this one?
http://web.archive.org/web/20210304034453/http://plugins.netbeans.org/plugin/2748/java-text-copy-paste-module 
<http://web.archive.org/web/20210304034453/http://plugins.netbeans.org/plugin/2748/java-text-copy-paste-module>


I was gonna say that you could compile it from source, but
unfortunately it doesn't list any. Not even on the creators github
account.
I'm afraid this may be lost to the sands of time :(

On Fri, Jan 14, 2022 at 9:05 AM Mitch Claborn <mailto:mitch...@claborn.net>> wrote:


Back in earlier versions of NetBeans (12.2?) I was using a plugin called
"Java Copy Paste". You could select a multi-line String constant and
copy it as plain text, eliminating the surrounding double quotes. I used
it frequently.

I can no longer find it to install. Can anyone help?

--

Mitch

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org 
<mailto:users-unsubscr...@netbeans.apache.org>
For additional commands, e-mail: users-h...@netbeans.apache.org 
<mailto:users-h...@netbeans.apache.org>


For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists 
<https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists>





--
- Juan Algaba

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org 
<mailto:users-unsubscr...@netbeans.apache.org>
For additional commands, e-mail: users-h...@netbeans.apache.org 
<mailto:users-h...@netbeans.apache.org>


For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists 
<https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists>




-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org 
<mailto:users-unsubscr...@netbeans.apache.org>
For additional commands, e-mail: users-h...@netbeans.apache.org 
<mailto:users-h...@netbeans.apache.org>


For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists 
<https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists>






-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Java Copy Paste plugin

2022-01-15 Thread Mitch Claborn

Yes, that's the one.

Does anyone have time to revive that project? If I was competent in 
NetBeans development I would do so, but I just don't have the time to 
get up to speed and maintain the project.



Mitch

On 1/14/22 7:27 PM, Juan Algaba wrote:

Was it this one?
http://web.archive.org/web/20210304034453/http://plugins.netbeans.org/plugin/2748/java-text-copy-paste-module

I was gonna say that you could compile it from source, but
unfortunately it doesn't list any. Not even on the creators github
account.
I'm afraid this may be lost to the sands of time :(

On Fri, Jan 14, 2022 at 9:05 AM Mitch Claborn  wrote:


Back in earlier versions of NetBeans (12.2?) I was using a plugin called
"Java Copy Paste". You could select a multi-line String constant and
copy it as plain text, eliminating the surrounding double quotes. I used
it frequently.

I can no longer find it to install. Can anyone help?

--

Mitch

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




--
- Juan Algaba

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Java Copy Paste plugin

2022-01-14 Thread Mitch Claborn
Back in earlier versions of NetBeans (12.2?) I was using a plugin called 
"Java Copy Paste". You could select a multi-line String constant and 
copy it as plain text, eliminating the surrounding double quotes. I used 
it frequently.


I can no longer find it to install. Can anyone help?

--

Mitch

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



git show history like --follow

2021-12-06 Thread Mitch Claborn
I'm working with a git repo that is a consolidation of several different 
repos. Many of the files have slightly different paths in the new repo 
vs the old, so in NetBeans, Git Show History only shows back to when the 
repos were combined.


git log --follow from the command line works to show history from the 
previous repo also. Is there a way to do that in NetBeans?

--

Mitch

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Line breaks in String literals

2021-12-05 Thread Mitch Claborn
When editing Java source in NetBeans 12.5, if you paste in between a 
pair of double quotes some clipboard contents that contain line breaks, 
the editor breaks the String literal into multiple lines and puts the 
plus sign for string concatenation at the END of the lines.


If you press Enter in the middle of an existing String literal, it is 
broken into two lines with the plus sign for concatenation at the 
BEGINNING of the second line.


The disparity between location of the plus signs causes me extra work on 
occasion (when I've pasted in some stuff and then edit it later, adding 
my own breaks).


Does this bother anyone else?
--

Mitch

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Automatic config backup?

2021-10-13 Thread Mitch Claborn
Sweet - I can import from a backed up user directory. That is all I 
need. I already have a nightly full computer back.


Thanks Ernie.


Mitch

On 10/13/21 9:41 AM, Ernie Rael wrote:
Did you see/use Menu>Tools>Options>Import ? Browse to a backed up 
userdir, import Project>ProjectGroups. There are many variations you can 
have around this.


During startup, a plugin could probably backup userdir (make sure cache 
isn't included). I'm not sure what you'd have to do to insure a 
consistent picture. With some digging to find the "Options>Export" 
action, a plugin could probably invoke it around startup; probably wait 
for when UI ready.


Backing it up, a response mentioned rsync, with NetBeans not running 
probably avoids any consistency issues.


-ernie

On 10/13/2021 6:59 AM, Mitch Claborn wrote:
Yesterday I accidentally deleted all of my project groups. I was able 
to recover from a full computer backup, but I had to search around to 
find out where they were stored and then manually restore the files.


To improve my chances of full recovery for the next time I do 
something stupid, I want to start backing up my NetBeans config once a 
day.


It would be extra-super-cool if NetBeans could do that for me. 
Something, like: take a backup on the first startup of NetBeans on a 
calendar day, to a specified directory with a date sensitive filename 
pattern.


Is such a thing possible? Assuming that it is not a current 
capability, is it feasible to write a plugin or a change to the base 
system to accomplish this?




-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Automatic config backup?

2021-10-13 Thread Mitch Claborn
I could do that, but how would I get the backup file in the same format 
that NetBeans produces, so that it would be easy to import/restore when 
needed?


Is the backup zip file just a copy selected files in the .netbeans 
directory?



Mitch

On 10/13/21 9:07 AM, Pieter van den Hombergh wrote:
The quickest approach would be to write a wrap script around the script 
that starts up netbeans.


In that script you could use simple copy or more advanced rsync to 
backup stuff to a destination of your liking. If that destination has 
the date as part of the (dir) name, you would have a daily backup. To 
prevent this to fill up you backup space, the script could drop dirs 
older than say 14 days.


On Wed, Oct 13, 2021, 15:59 Mitch Claborn <mailto:mitch...@claborn.net>> wrote:


Yesterday I accidentally deleted all of my project groups. I was
able to
recover from a full computer backup, but I had to search around to find
out where they were stored and then manually restore the files.

To improve my chances of full recovery for the next time I do something
stupid, I want to start backing up my NetBeans config once a day.

It would be extra-super-cool if NetBeans could do that for me.
Something, like: take a backup on the first startup of NetBeans on a
calendar day, to a specified directory with a date sensitive filename
pattern.

Is such a thing possible? Assuming that it is not a current capability,
is it feasible to write a plugin or a change to the base system to
accomplish this?
-- 


Mitch

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
<mailto:users-unsubscr...@netbeans.apache.org>
For additional commands, e-mail: users-h...@netbeans.apache.org
<mailto:users-h...@netbeans.apache.org>

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
<https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists>



-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Automatic config backup?

2021-10-13 Thread Mitch Claborn
Yesterday I accidentally deleted all of my project groups. I was able to 
recover from a full computer backup, but I had to search around to find 
out where they were stored and then manually restore the files.


To improve my chances of full recovery for the next time I do something 
stupid, I want to start backing up my NetBeans config once a day.


It would be extra-super-cool if NetBeans could do that for me. 
Something, like: take a backup on the first startup of NetBeans on a 
calendar day, to a specified directory with a date sensitive filename 
pattern.


Is such a thing possible? Assuming that it is not a current capability, 
is it feasible to write a plugin or a change to the base system to 
accomplish this?

--

Mitch

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: NetBeans 12.5 - change in code completion pop for "new" ?

2021-10-07 Thread Mitch Claborn

FYI, I created https://issues.apache.org/jira/browse/NETBEANS-6114 for this.


Mitch

On 10/5/21 4:11 PM, Alonso Del Arte wrote:
For what it's worth, I think that was also the behavior in 8.2 and 11.1 
(I'm still on 11.2, long story).


Al

On Tue, Oct 5, 2021 at 4:14 PM Mitch Claborn <mailto:mitch...@claborn.net>> wrote:


I upgraded from 12.0 to 12.5. When I type "new ClassName" using
ctrl+Space in the middle of the class name to finish the class name,
I'm
pretty sure that NB 12.0 was automatically showing the various
constructors in a code completion pop-up, while NB 12.5 requires me to
hit ctrl + Space again. Am I dreaming, or did this change?

I prefer the previous behavior.
-- 


Mitch

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
<mailto:users-unsubscr...@netbeans.apache.org>
For additional commands, e-mail: users-h...@netbeans.apache.org
<mailto:users-h...@netbeans.apache.org>

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
<https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists>



--
Alonso del Arte
Author at SmashWords.com 
<https://www.smashwords.com/profile/view/AlonsoDelarte>

Musician at ReverbNation.com <http://www.reverbnation.com/alonsodelarte>


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



NetBeans 12.5 - change in code completion pop for "new" ?

2021-10-05 Thread Mitch Claborn
I upgraded from 12.0 to 12.5. When I type "new ClassName" using 
ctrl+Space in the middle of the class name to finish the class name, I'm 
pretty sure that NB 12.0 was automatically showing the various 
constructors in a code completion pop-up, while NB 12.5 requires me to 
hit ctrl + Space again. Am I dreaming, or did this change?


I prefer the previous behavior.
--

Mitch

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: removing the "new project" support for Ant projects

2021-04-20 Thread Mitch Claborn
+1 for not eliminating Ant support for new (or existing) projects. We've 
been using Ant for a long time, and it still works just fine for us, so 
there is no payback in converting to Maven.



Mitch

On 4/20/21 12:10 PM, Lisa Ruby wrote:
For those of you who have used Maven for a long time it may seem simple 
and straightforward, but for those of us who haven't it's not. I've 
struggled to try and understand it and figure out how to use it for my 
software project and gave up. And it's a huge amount of overhead, extra 
disk space usage, and more bits and pieces to keep track of that isn't 
justifiable for small simple projects. ANT works just fine for me, and I 
will keep using it for as long as I possibly can. I need to focus my 
time on getting my software out, not on the tools I have to use to do it.


Lisa

On 4/20/2021 10:00 AM, Geertjan Wielenga wrote:
I agree, the Ant-based project creation should be removed and I 
disagree that there should be any kind of conversion between Ant and 
Maven -- that simply will never work and we'll spend the rest of our 
days fixing bugs in that. To convert from Ant to Maven: create a new 
Maven project and copy the Java source files from your Ant project 
into it.


Gj

On Tue, Apr 20, 2021 at 6:58 PM > wrote:


Honestly, I think NB should have an internal conversation about
removing the "new project" support for Ant projects, while still
being able to open existing ones. It just confuses a lot of people
if they're not going to be supported.

I agree, if and ONLY if you provide at least a rudimentary way to
convert ANT projects to Maven projects.   I have been struggling
with this issue too long.  I have hundreds of Ant based projects
that I would love to turn over immediately to Maven... but I can't
, am struggling, and haven't coded a darn line in two months...  I
used to code 10 hours a day ... and now... embarrassed by my
inability to convert.,.

I exaggerate a bit, I still code in "Old" Netbeans 8.2, but I know
the days are numbered...



On 2021-04-20 08:23, Will Hartung wrote:



On Mon, Apr 19, 2021 at 12:55 AM Wayne Gemmell | Connect
mailto:wa...@connect-mobile.co.za>>
wrote:

Is the perception that nobody does Maven EAR's anymore or
that nobody uses EARs? I have a web app that has given me no
shortage of issuse with ant.
I'm trying to move it to Maven. If nobody is using maven then
I need to move to something else. If nobody is using EAR's
anymore then I'm pretty stuck figuring out this Maven issue.

Well, it's several things.
EARs are less popular because their necessity has been greatly
reduced. Session beans can be placed in WARs now, so for many use
cases, a WAR is completely adequate to the task.
However, it's not suitable for all use cases.
Notably, MDBs can not be deployed in WARs. But only as an EJB
either deployed standalone, or bundled within an EAR.
With the hue and cry over micro services and "down with the
monolith", just the idea of a large application bundled in a EAR
is falling out of favor.
Also, there's a history of advocacy underlying this. Sun used
NetBeans as a mechanism to advocate for Java and Java EE. It
behooved them to have something like NetBeans to make Java EE
development easier. So, it was important for NetBeans to have
really first class Java EE support. Bundling the Java EE wizards
and templates along with Glassfish all helped promote that.
Of course, now, with the great Java Diaspora out of Oracle, the
goals and drivers are different.
For your project, if all you have is a web app and some session
beans, then a simple WAR file is good to go. The Ant projects
seem to essentially be deprecated now, so I would not rely on
those for anything. If practical, especially if your project is
young, I would migrate it to Maven. The Maven WAR is a pretty
simple project and seems to work ok. Maven isn't going away any
time soon, Gradle, it's primary competitor, doesn't really have
the traction to overcome it yet, and it's been going for some
time. If nothing else, the pom.xml file has become a de facto
portable project format if, for nothing else, to capture
dependencies.
Honestly, I think NB should have an internal conversation about
removing the "new project" support for Ant projects, while still
being able to open existing ones. It just confuses a lot of
people if they're not going to be supported.
And I still haven't heard any concrete position the project has
on internalizing Maven archetypes used for project wizards, or
the process of adopting that.
Legacy archetypes that used to work in NB 8 are now failing
because they've vanished from Maven central. So, an external
dependency broke an internal feature.
Feel free to follow up 

GUI Form Designer "Enclose In"

2020-10-03 Thread Mitch Claborn
In the GUI form designer, you can select multiple components in the 
Navigator panel, then right click and "Enclose In" to enclose all of 
those components in a Container.  In versions prior to NB 12.0, my 
custom subclass of JPanel would appear in the list to enclose in.  In NB 
12.0 my subclass is not there. How do I get it to show up?


(I do have my subclass in the Palette.)

--

Mitch

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Weird message on git push remote

2020-09-26 Thread Mitch Claborn

NetBeans 12.0, Ubuntu 20.04

When I execute Team -> Remote -> Push to Upstream I get the message: 
Push is about to create a new branch "master" in the remote repository. 
Do you want to continue and create the branch?


But, there is already a "master" branch in the remote repository.

If I go the longer route (Team -> Remote -> Push...) and then select the 
appropriate values for Remote Repository, Local Branch, and Update Local 
References) it proceeds smoothly without that message.


Command line (git push origin master) also works without complaining.

What's going on with the first method? Is it maybe selecting the 
incorrect default values? There are a number of Local Branches from 
which to choose.


--

Mitch


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Plugin install problem NB 12

2020-07-31 Thread Mitch Claborn

I would also be good with that.


Mitch

On 7/31/20 12:31 PM, Scott Palmer wrote:



On Jul 31, 2020, at 12:27 PM, Mitch Claborn  wrote:

The secret here was the "Show details" checkbox at Tools -> Plugins -> 
Installed. I never saw it.

It makes more sense to me for the default for that box to be checked.


It makes more sense to me to get rid of the checkbox completely. The behaviour 
should just be as if “Show details” is always checked. I see no advantage to 
hiding what plugins are actually installed. It has only caused confusion.

Scott


On 7/29/20 8:29 AM, Mitch Claborn wrote:
I'm using NetBeans 12.0 on Ubuntu 18.04.  I need to install an updated version of the 
JRebel plugin. I downloaded the plugin, but when I attempt to install it, I get the 
message: Plugin "JRebel for NetBeans" is already installed.
But, the plugin does not show in the list of installed plug ins. So I can't 
installed directly and I can't remove and reinstall.
Any ideas on how to fix?




-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Plugin install problem NB 12

2020-07-31 Thread Mitch Claborn
The secret here was the "Show details" checkbox at Tools -> Plugins -> 
Installed. I never saw it.


It makes more sense to me for the default for that box to be checked.


Mitch

On 7/29/20 8:29 AM, Mitch Claborn wrote:
I'm using NetBeans 12.0 on Ubuntu 18.04.  I need to install an updated 
version of the JRebel plugin. I downloaded the plugin, but when I 
attempt to install it, I get the message: Plugin "JRebel for NetBeans" 
is already installed.


But, the plugin does not show in the list of installed plug ins. So I 
can't installed directly and I can't remove and reinstall.


Any ideas on how to fix?



-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Plugin install problem NB 12

2020-07-29 Thread Mitch Claborn
I'm using NetBeans 12.0 on Ubuntu 18.04.  I need to install an updated 
version of the JRebel plugin. I downloaded the plugin, but when I 
attempt to install it, I get the message: Plugin "JRebel for NetBeans" 
is already installed.


But, the plugin does not show in the list of installed plug ins. So I 
can't installed directly and I can't remove and reinstall.


Any ideas on how to fix?

--

Mitch


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists