Re: Netbeans template files

2023-05-05 Thread Tim de Vries
I publish this way. I might test and have [signed&|unsigned]/multiples, 
online. While I'm alive.


Tim

On 2023-04-28 5:15 a.m., Bradley Willcott wrote:
The version I'm talking about, is coming from the pom.xml file. It is 
also available to the NB environment as it appears in the Project's 
Properties window. I would have thought it would be of use to many 
others who would be including the current project version number in 
their new class files. I have been manually replacing it in each file 
after creation for a while now, and was hoping for a more automated 
(computer driven) solution. After all, why use a computer if it can't 
be taught to do at least the repetitive tasks?


Thanks.

On 28/4/23 19:06, Andreas Reichel wrote:

Unfortunately not really.
If I do understand your requirements then I'd think about 3 steps:

1 get the version from git or mercurial
2 update your project template accordingly per script
3 create a hook which runs this update on every new tag created or commit

Cheers

On 28 Apr 2023 11:59, Bradley Willcott  wrote:

Hi Andreas.
Ok.
Can you help me?

Brad.

On 28/4/23 18:56, Andreas Reichel wrote:

Bradley.

It is safe to ignore Tim's emails as it is only auto
generated rubbish trolling the list.

On 28 Apr 2023 11:45, Bradley Willcott
  wrote:

Hi Tim.
Please explain, where and how. I am looking to provide
this info to the Template files in NB. I am not looking
to modify NB code.

Thanks,
Brad.

On 28/4/23 08:14, Tim de Vries wrote:

yeah, but they dont want me to say.

Define a global Data.Your_VERSION and post process :
on?Create to do your work.

On 24/04/2023 6:26 a.m., Bradley Willcott wrote:

Hi there.
I would like to have the project version
automatically included in the class comments of
new classes.

For example:

/**
  * NewClass class description.
  *
  * @author mailto:bw.opensou...@yahoo.com;  
>Bradley Willcott
  *
  * @since 1.0.0
  * @version 1.0.0
  */

This is currently set through the global
User.properties file. However, this does not
reflect the current version of the project.
I am working on a Java project using the Maven
build environment.

Any thought on how to do this?
Thank you.
Brad.









Re: Context aware keymapping + macro

2023-05-05 Thread Tim de Vries

Sure, modify the code to suit.

Tim

On 2023-05-05 12:43 p.m., Mitch Claborn wrote:
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"



-
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



Re: Console: ascii characters not shown correctly

2023-05-05 Thread Tim de Vries

Are you using ANSI Escape codes for Netbeans Console Output?

On 2023-05-01 9:46 a.m., Geert Vancompernolle wrote:

I have the following line in my Java application:

mLogger.info("╔╗"); 



but I see this in the debug console of NB17:

01-05-2023 17:43:22 INFO HomeControl - 
╔��������������������������������������������������������������������������������╗


How can I get the correct ascii characters in NB17?  Previous versions 
of NB (e.g. NB12.5) showed this correctly




-
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 template files

2023-05-05 Thread Tim de Vries

Use everything to everyone's advantage.

Y/N/Maybe...

On 2023-04-28 5:15 a.m., Bradley Willcott wrote:
The version I'm talking about, is coming from the pom.xml file. It is 
also available to the NB environment as it appears in the Project's 
Properties window. I would have thought it would be of use to many 
others who would be including the current project version number in 
their new class files. I have been manually replacing it in each file 
after creation for a while now, and was hoping for a more automated 
(computer driven) solution. After all, why use a computer if it can't 
be taught to do at least the repetitive tasks?


Thanks.

On 28/4/23 19:06, Andreas Reichel wrote:

Unfortunately not really.
If I do understand your requirements then I'd think about 3 steps:

1 get the version from git or mercurial
2 update your project template accordingly per script
3 create a hook which runs this update on every new tag created or commit

Cheers

On 28 Apr 2023 11:59, Bradley Willcott  wrote:

Hi Andreas.
Ok.
Can you help me?

Brad.

On 28/4/23 18:56, Andreas Reichel wrote:

Bradley.

It is safe to ignore Tim's emails as it is only auto
generated rubbish trolling the list.

On 28 Apr 2023 11:45, Bradley Willcott
  wrote:

Hi Tim.
Please explain, where and how. I am looking to provide
this info to the Template files in NB. I am not looking
to modify NB code.

Thanks,
Brad.

On 28/4/23 08:14, Tim de Vries wrote:

yeah, but they dont want me to say.

Define a global Data.Your_VERSION and post process :
on?Create to do your work.

On 24/04/2023 6:26 a.m., Bradley Willcott wrote:

Hi there.
I would like to have the project version
automatically included in the class comments of
new classes.

For example:

/**
  * NewClass class description.
  *
  * @author mailto:bw.opensou...@yahoo.com;  
>Bradley Willcott
  *
  * @since 1.0.0
  * @version 1.0.0
  */

This is currently set through the global
User.properties file. However, this does not
reflect the current version of the project.
I am working on a Java project using the Maven
build environment.

Any thought on how to do this?
Thank you.
Brad.