Re: How to build a tailor-made "watches" window

2024-01-04 Thread Peter Cheung
let me answer myself again

DebuggerManager.getDebuggerManager().createWatch(name);

From: Peter Cheung 
Sent: Wednesday, January 3, 2024 12:57 AM
To: dev@netbeans.apache.org 
Subject: How to build a tailor-made "watches" window

Hi
   How to build a tailor-made "watches" window. I am developing RISC-V 
simulator using Netbeans, there is over 100 registers I want to print out on 
screen. It is from different variables such as hashmap and arraylist. What 
function I can call to dump a variable value during debug mode?


Thanks

>From Peter (System Architect, Quantr Limited https://www.quantr.hk , Mobile : 
>96554595)


How to build a tailor-made "watches" window

2024-01-02 Thread Peter Cheung
Hi
   How to build a tailor-made "watches" window. I am developing RISC-V 
simulator using Netbeans, there is over 100 registers I want to print out on 
screen. It is from different variables such as hashmap and arraylist. What 
function I can call to dump a variable value during debug mode?


Thanks

>From Peter (System Architect, Quantr Limited https://www.quantr.hk , Mobile : 
>96554595)


Re: Brad Walker

2023-10-08 Thread Peter Cheung
Hi Brad & All
Shall we start please?


Thanks

From Peter (System Architect, Quantr Limited https://www.quantr.hk , Mobile : 
96554595)


From: Moacir da Roza 
Sent: Sunday, September 3, 2023 7:26 AM
To: dev@netbeans.apache.org 
Subject: Re: Brad Walker

Hi, i followed this steps
https://cwiki.apache.org/confluence/display/NETBEANS/Step+by+step+guide+for+upload+NBM+to+Maven+Central

Em sáb., 2 de set. de 2023 às 19:36, Brad Walker 
escreveu:

> Let me provide some background on what's happening here, so that everyone
> is aware.
>
> I do embedded sw engineering for a living as well as FPGA development. I
> originally reached out to Peter because he has a Verilog plugin that I
> think would be really helpful to expand the scope of the project.
>
> In the past, I have been an active participant in cleaning up the code.
> That has slowed down recently as I have some personal issues going on.
> Nonetheless, Peter has been really proactive, kudos to him, with following
> up with me and asking how to proceed.
>
> I'm happy to mentor this project to help make this happen.
>
> So if someone could provide a list of the high-level steps needed to help
> get this plugin to become part of the portal would be really helpful for
> him and me.
>
> I'm happy to help mentor this and "guide" the work. Having Verilog support
> would be really helpful to those of use that use it as well as grow the
> project.
>
> -brad w.
>
> On Sat, Sep 2, 2023 at 9:39 AM Peter Cheung  wrote:
>
> > Hello
> >Mr Brad Walker contacted me months ago and we replied him, but we got
> > no reply from him. We are ok to share our plugins to Netbeans society.
> > thanks
> > Peter
> >
> >
> > >My name is Brad Walker and I work on the Netbeans project. My real job
> is
> > to work as an embedded developer. And that is why I'm sending this email.
> > >
> > >I'm in need of a good plugin for Verilog support on Netbeans. Would you
> > consider donating this to the Netbeans Foundation? I will make sure it
> gets
> > integrated and made into an >official plugin.
> > >
> > >Thanks for considering this. And if any questions, please let me know.
> > >
> > >Respectfully,
> > >
> > >Brad Walker
> >
>


--
Moacir R.F
Desenvolvedor de Softwares

https://www.moacirrf.com.br <http://www.moacirrf.com.br>


Brad Walker

2023-09-02 Thread Peter Cheung
Hello
   Mr Brad Walker contacted me months ago and we replied him, but we got no 
reply from him. We are ok to share our plugins to Netbeans society.
thanks
Peter


>My name is Brad Walker and I work on the Netbeans project. My real job is to 
>work as an embedded developer. And that is why I'm sending this email.
>
>I'm in need of a good plugin for Verilog support on Netbeans. Would you 
>consider donating this to the Netbeans Foundation? I will make sure it gets 
>integrated and made into an >official plugin.
>
>Thanks for considering this. And if any questions, please let me know.
>
>Respectfully,
>
>Brad Walker


form build icons

2023-04-02 Thread Peter Cheung
Hi
   I have imported my own java swing components, but how can i define the icons?

[cid:ba10a08e-82f1-44c8-9300-23f7f38f2712]


Thanks

>From Peter (System Architect, Quantr Limited https://www.quantr.hk , Mobile : 
>96554595)


Re: reuse existing icon

2023-04-02 Thread Peter Cheung
thanks Eirik

From: Eirik Bakke 
Sent: Friday, March 31, 2023 6:03 AM
To: dev@netbeans.apache.org 
Subject: RE: reuse existing icon

I think you'd need to copy the icon file from the NetBeans codebase and into 
your own module's resources folder, then reference it from iconBase. (Or 
perhaps you can reference the icon in the NetBeans module directly if your 
module has a direct dependency on the NetBeans module; I'm not sure how the 
classloader stuff works here.)

-- Eirik

-Original Message-
From: Peter Cheung 
Sent: Friday, March 24, 2023 10:06 AM
To: dev@netbeans.apache.org
Subject: reuse existing icon

Hi
   I try to extends  the text/x-java and add a new multiview. How to reuse 
existing icon?

@MultiViewElement.Registration(
displayName = "#LBL_Java_Disasm",
//  iconBase = "hk/quantr/jcd/javaLogo16_16.png",   <--- what should i 
fill in here?
mimeType = "text/x-java",
persistenceType = TopComponent.PERSISTENCE_NEVER,
preferredID = "JavaVisual",
position = 22000
)


Thanks

From Peter (System Architect, Quantr Limited 
https://www.quantr.hk<https://www.quantr.hk/> , Mobile : 96554595)


reuse existing icon

2023-03-24 Thread Peter Cheung
Hi
   I try to extends  the text/x-java and add a new multiview. How to reuse 
existing icon?

@MultiViewElement.Registration(
displayName = "#LBL_Java_Disasm",
//  iconBase = "hk/quantr/jcd/javaLogo16_16.png",   <--- what should i 
fill in here?
mimeType = "text/x-java",
persistenceType = TopComponent.PERSISTENCE_NEVER,
preferredID = "JavaVisual",
position = 22000
)


Thanks

From Peter (System Architect, Quantr Limited 
https://www.quantr.hk , Mobile : 96554595)


Netbeans action question

2023-02-11 Thread Peter Cheung
Hi
   I have added a new datatype and an action associate for it. If i right click 
the file in "projects" window then i see the menu. If i right click on the file 
content, OR right click the file tab, that action disappears. May I know how to 
add it to them?


Thanks

>From Peter (System Architect, Quantr Limited https://www.quantr.hk , Mobile : 
>96554595)


Re: verilog plugin

2022-09-29 Thread Peter Cheung
i am stupid, this works textComponent.getClientProperty("text-zoom")
____
From: Peter Cheung 
Sent: Thursday, September 29, 2022 5:20 PM
To: dev@netbeans.apache.org 
Subject: Re: verilog plugin

this should work but it doesn't

System.out.println("TEXT_ZOOM_PROPERTY=" + 
textComponent.getClientProperty("TEXT_ZOOM_PROPERTY"));

________
From: Peter Cheung 
Sent: Thursday, September 29, 2022 5:14 PM
To: dev@netbeans.apache.org 
Subject: verilog plugin

Hi
   1. I made this funny plugin can single-step the Verilog code 
https://www.youtube.com/watch?v=cPjEUe2uY8I
   2. I am using DefaultHighlighter to paint something on editor, but how can 
we get the editor zoom ratio in order to paint in correct position? thanks


Thanks

>From Peter (System Architect, Quantr Limited https://www.quantr.hk , Mobile : 
>96554595)


Re: verilog plugin

2022-09-29 Thread Peter Cheung
this should work but it doesn't

System.out.println("TEXT_ZOOM_PROPERTY=" + 
textComponent.getClientProperty("TEXT_ZOOM_PROPERTY"));

________
From: Peter Cheung 
Sent: Thursday, September 29, 2022 5:14 PM
To: dev@netbeans.apache.org 
Subject: verilog plugin

Hi
   1. I made this funny plugin can single-step the Verilog code 
https://www.youtube.com/watch?v=cPjEUe2uY8I
   2. I am using DefaultHighlighter to paint something on editor, but how can 
we get the editor zoom ratio in order to paint in correct position? thanks


Thanks

>From Peter (System Architect, Quantr Limited https://www.quantr.hk , Mobile : 
>96554595)


verilog plugin

2022-09-29 Thread Peter Cheung
Hi
   1. I made this funny plugin can single-step the Verilog code 
https://www.youtube.com/watch?v=cPjEUe2uY8I
   2. I am using DefaultHighlighter to paint something on editor, but how can 
we get the editor zoom ratio in order to paint in correct position? thanks


Thanks

>From Peter (System Architect, Quantr Limited https://www.quantr.hk , Mobile : 
>96554595)


Re: super confuse for years

2022-09-28 Thread Peter Cheung
thank you, i found out these code works, but some object is null so I have to 
filter it out

Set set = WindowManager.getDefault().getRegistry().getOpened();
for (TopComponent com : set) {
DataObject d = com.getLookup().lookup(DataObject.class);
System.out.println("d=" + d);
if (d != null) {
com.repaint();
}
}


Thanks

>From Peter (System Architect, Quantr Limited https://www.quantr.hk , Mobile : 
>96554595)


From: John Kostaras 
Sent: Wednesday, September 28, 2022 2:46 AM
To: dev@netbeans.apache.org 
Subject: Re: super confuse for years

Also look at this <https://dzone.com//articles/netbeans-lookups-explained>.

On Tue, Sep 27, 2022 at 3:40 PM Moacir da Roza  wrote:

> Lookups is like a bag of objects, you can have global lookups or local
> lookups.
> *Globals*
> 1-*Lookup.getDefault() *- Is default lookup in general it will have all
> services that exists on META-INF/services.
> 2- *Utilities.actionsGlobalContext() *- In this you can have the lookup of
> all that have focus on Netbeans
> *Ex.:* Utilities.actionsGlobalContext().lookup(FileObject.class);
> Will probably give you the file opened that have focus on Netbeans.
> *Local*
> All other classes that implements Lookup.Provider*. *
> TopComponent.getRegistry().getActivated().getLookup(), note that this
> lookup probably can have all items of the default with additional items of
> the TopComponent, because the constructor of TopComponent receives a
> lookup.
>
>
> TopComponent.getRegistry().getActivated().getLookup().lookup(FileObject.class);
> Will give you same as
> Utilities.actionsGlobalContext().lookup(FileObject.class);
>
> *If I want to lookup all opened files, that mean all DataObjects. What I
> should use?*
>
> You must to find what is the default class responsible by editor, is a
> TopComponent, so you must get all TopComponent Implementations and get his
> lookup.
>
> >   var list = TopComponent.getRegistry().getOpened();
> >for(TopComponent item : list){
> > if(item instanceof CloneableTopComponent){
> >
> > System.out.println(item.getLookup().lookup(FileObject.class));
> > }
> > }
> >
>
> Probably has other ways, but this way works.
>
>
> Em ter., 27 de set. de 2022 às 01:00, Peter Cheung 
> escreveu:
>
> > Dear All
> > I have been super confused by these for many years, what is the
> > difference? when I use should which?
> >
> >
> >   1.  Lookup.getDefault().lookupAll
> >   2.
> > DataObject.find(FileUtil.toFileObject(realFile)).getLookup().lookupAll
> >   3.  Utilities.actionsGlobalContext().lookupAll
> >   4.  TopComponent.getRegistry().getActivated().getLookup().lookupAll
> >
> > If I want to lookup all opened files, that mean all DataObjects. What I
> > should use?
> >
> >
> > Thanks
> >
> > From Peter (System Architect, Quantr Limited https://www.quantr.hk ,
> > Mobile : 96554595)
> >
>
>
> --
> Moacir R.F
> Desenvolvedor de Softwares
>
> https://www.moacirrf.com.br <http://www.moacirrf.com.br>
>


super confuse for years

2022-09-26 Thread Peter Cheung
Dear All
I have been super confused by these for many years, what is the difference? 
when I use should which?


  1.  Lookup.getDefault().lookupAll
  2.  DataObject.find(FileUtil.toFileObject(realFile)).getLookup().lookupAll
  3.  Utilities.actionsGlobalContext().lookupAll
  4.  TopComponent.getRegistry().getActivated().getLookup().lookupAll

If I want to lookup all opened files, that mean all DataObjects. What I should 
use?


Thanks

>From Peter (System Architect, Quantr Limited https://www.quantr.hk , Mobile : 
>96554595)


Re: netbeans module coding questions

2022-09-25 Thread Peter Cheung
oh my god, i feel full of love now. i thought netbeans community is dead

From: Ernie Rael 
Sent: Saturday, September 24, 2022 11:28 PM
To: dev@netbeans.apache.org ; Peter Cheung 

Subject: Re: netbeans module coding questions

There are some excellent answers, perhaps you are blocked on your side.

You can view the thread at:
https://lists.apache.org/list?dev@netbeans.apache.org:2022-9

-ernie

On 9/24/22 8:11 AM, Peter Cheung wrote:
> am i being blocked? whatever i ask, no one willing to answer 
>
>
> Thanks
>
>  From Peter (System Architect, Quantr Limited https://www.quantr.hk , Mobile 
> : 96554595)
>
> ________
> From: Peter Cheung
> Sent: Thursday, September 8, 2022 1:46 AM
> To: dev@netbeans.apache.org 
> Subject: netbeans module coding questions
>
> hi
> 1. I want to customize the editor's side bar (the one showing the line 
> number), I want to add some icon to it. Any example for this?
> 2. The highlightfactory + highlighter is highlighting the editor by char 
> offset. Is it possible to highlight some rows?
> thanks
> Peter




Re: netbeans module coding questions

2022-09-24 Thread Peter Cheung
am i being blocked? whatever i ask, no one willing to answer 


Thanks

From Peter (System Architect, Quantr Limited https://www.quantr.hk , Mobile : 
96554595)


From: Peter Cheung
Sent: Thursday, September 8, 2022 1:46 AM
To: dev@netbeans.apache.org 
Subject: netbeans module coding questions

hi
   1. I want to customize the editor's side bar (the one showing the line 
number), I want to add some icon to it. Any example for this?
   2. The highlightfactory + highlighter is highlighting the editor by char 
offset. Is it possible to highlight some rows?
thanks
Peter


netbeans module coding questions

2022-09-07 Thread Peter Cheung
hi
   1. I want to customize the editor's side bar (the one showing the line 
number), I want to add some icon to it. Any example for this?
   2. The highlightfactory + highlighter is highlighting the editor by char 
offset. Is it possible to highlight some rows?
thanks
Peter


my plugins rely on maven plugin but don't know how to load it programatically

2022-07-19 Thread Peter Cheung
Hi

I am creating a new project type for RISC-V. The below code only work when 
my netbeans loaded maven plugin. Is it possible to let netbeans load my plugin 
and auto load maven plugin together?


How can my netbeans modules got the mvn path? i found "mavenHome = 
EmbedderFactory.getEffectiveMavenHome();" in netbeans source code but I don't 
have class EmbedderFactory

ClassLoader syscl = Lookup.getDefault().lookup(ClassLoader.class);
System.out.println(syscl);

List goals = new ArrayList<>();
goals.add("compile");
ProjectInformation projectInformation = ProjectUtils.getInformation(this);

Class runUtils = 
syscl.loadClass("org.netbeans.modules.maven.api.execute.RunUtils");
Method createRunConfig = runUtils.getMethod("createRunConfig", new 
Class[]{File.class, Project.class, String.class, List.class});
Object rc = createRunConfig.invoke(null, FileUtil.toFile(this.projectDir), 
this, projectInformation.getDisplayName(), goals);

Class runConfig = 
syscl.loadClass("org.netbeans.modules.maven.api.execute.RunConfig");

// maven properties
Method setProperty = runConfig.getMethod("addProperties", new 
Class[]{Map.class});
Map properties = new HashMap<>();
setProperty.invoke(rc, properties);

// maven profile
Method setActivatedProfiles = runConfig.getMethod("setActivatedProfiles", new 
Class[]{java.util.List.class});
List profiles = new ArrayList<>();
profiles.add("dev");
profiles.add("prod");
setActivatedProfiles.invoke(rc, profiles);

Method executeMaven = runUtils.getMethod("executeMaven", new 
Class[]{runConfig});
executeMaven.invoke(null, rc);



Thanks

>From Peter (System Architect, Quantr Limited https://www.quantr.hk , Mobile : 
>96554595)


Netbeans module development

2022-07-02 Thread Peter Cheung
Hi
 We are building the verilog plugin to display instructmentation data from 
verilator. Is there any API to highlight some rows in the editor and paint some 
text behind some specific lines?


Thanks

>From Peter (System Architect, Quantr Limited https://www.quantr.hk , Mobile : 
>96554595)


netbeans-antlr pluging, click on the current editor event

2022-06-14 Thread Peter Cheung
Dear Sir/Madam
 I want to enhance my netbeans-antlr plugin 
(https://gitlab.com/quantr/toolchain/netbeans-antlr) by allowing people to 
click on the editor and highlight the token in the tree view. How can I 
subscribe the click event of the current editor?


Thanks

>From Peter (System Architect, Quantr Limited https://www.quantr.hk , Mobile : 
>96554595)


Re: support debugger for new language

2022-06-04 Thread Peter Cheung
Thank you Matthias

From: Matthias Bl?sing 
Sent: Sunday, June 5, 2022 2:06 AM
To: dev@netbeans.apache.org 
Subject: Re: support debugger for new language

Hi Peter,

Am Freitag, dem 03.06.2022 um 18:38 + schrieb Peter Cheung:
> I am developing netbeans module to support verilog 
> (https://gitlab.com/quantr/toolchain/netbeans-verilog) . Anyone can send me a 
> tutorial/example about hooking netbeans to a new debugger, please?

not sure if that really helps you, but I'm implementing javascript
debugging support using the Chrome DevTools Protocol and used the v8
debug protocol packages as basis. I basicly worked through the three
packages and reimplemented them for CDT.

The relevant packages are:

webcommon/lib.v8debug
webcommon/javascript.v8debug
webcommon/javascript.v8debug.ui

I learned much here and it might help you too.

Matthias


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

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





support debugger for new language

2022-06-03 Thread Peter Cheung
Dear All
I am developing netbeans module to support verilog 
(https://gitlab.com/quantr/toolchain/netbeans-verilog) . Anyone can send me a 
tutorial/example about hooking netbeans to a new debugger, please?
thanks
Peter



support gitlab

2022-04-16 Thread Peter Cheung
Dear Netbeans team
 Does netbeans has plan to support publish plugin via gitlab maven repo? 
and login plugin central by gitlab?
Thanks
>From Peter


Re: New theme for netbeans, team member wanted

2022-01-18 Thread Peter Cheung
Dear Eirik & All
Let's have a wrap-up meeting next week?


Thanks

>From Peter (System Architect, Quantr Limited https://www.quantr.hk , Mobile : 
>96554595)

____
From: Peter Cheung 
Sent: Tuesday, January 18, 2022 11:36 AM
To: Eirik Bakke ; dev@netbeans.apache.org 

Cc: Arafat BOUCHAFRA ; Peter Cheung 
Subject: Re: New theme for netbeans, team member wanted

Dear all
Please see the last three rows, is the style matched?


Thanks

>From Peter (System Architect, Quantr Limited https://www.quantr.hk , Mobile : 
>96554595)


From: Eirik Bakke 
Sent: Thursday, January 13, 2022 1:17 AM
To: dev@netbeans.apache.org 
Cc: Arafat BOUCHAFRA ; Peter Cheung 
; Peter Cheung 
Subject: RE: New theme for netbeans, team member wanted

I think I understand your goal, and this thread now has a good summary of pros 
and cons.

Again, this is really up to whoever does the icon drawing work. Myself, I have 
just contributed the icons that happened to be used in my NetBeans Platform app.

Would you be interested in participating in the actual icon drawing process, by 
the way? Or is the use of Adobe Illustrator a deal-breaker for you? My company 
could pay for a license.

Alternatively we could try to work out an Inkscape process, if someone wants to 
commit to drawing a significant number of icons in it (separate from the ones 
Peter Cheung is working on). Although the lack of an Artboards feature in 
Inkscape could be a problem.

-- Eirik
[1] 
https://issues.apache.org/jira/secure/attachment/13026411/13026411_210604+Icons+Overview+Cropped.png

-Original Message-
From: Neil C Smith 
Sent: Wednesday, January 12, 2022 11:18 AM
To: dev@netbeans.apache.org
Cc: Arafat BOUCHAFRA ; Peter Cheung 
; Peter Cheung 
Subject: Re: New theme for netbeans, team member wanted

On Wed, 12 Jan 2022 at 15:48, Eirik Bakke  wrote:
> Sorry, to clarify: The point about the color palette was my own. My argument 
> is that the existing NetBeans icon style is not very well-suited for 
> assigning logical colors. In order to designate a meaningful, configurable, 
> "accent color", for example, we would have to change the overall color 
> palette of the entire icon set. And that's something that's easier to do 
> after-the-fact than up-front (see my earlier explanation for why).

This is where I somewhat disagree, although I think we're talking about 
different things.

Take 3 different icons - folder, warning, and lightbulb (not sure we have one, 
but ...)

They might all be the same shade of yellow.  However, maybe you want the folder 
icons to take on the accent colour of a look and feel, while a dark theme might 
want to make the shades of the other two a darker yellow, or just the warning 
to match other things in the theme.

Maybe we want to edit the icon files later - this could apply there as much as 
in icon loading.

The point was that to have the icons encode the context of a fill colour (eg. 
CSS class), as well as the colour itself, is potentially useful in multiple 
ways.  And as far as I'm aware, easier to define upfront in a template for all 
icons, than later.  At least in Inkscape (I'm a libre graphics person! :-)) I 
would set up the common stylesheet / palette first, then apply to each shape.

Best wishes,

Neil

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

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





RE: New theme for netbeans, team member wanted

2022-01-18 Thread Peter Cheung
Loop in Miss Venus, she is our designer

From: Arafat BOUCHAFRA 
Sent: Tuesday, January 18, 2022 1:58 PM
To: Peter Cheung 
Subject: Re: New theme for netbeans, team member wanted

Hi Peter,

You have done an amazing job.

Only, I want to know if the icons are pixelized or not.

King regards

Le mar. 18 janv. 2022 à 04:36, Peter Cheung 
mailto:pe...@quantr.hk>> a écrit :
Dear all
Please see the last three rows, is the style matched?


Thanks

From Peter (System Architect, Quantr Limited https://www.quantr.hk , Mobile : 
96554595)


From: Eirik Bakke mailto:eba...@ultorg.com>>
Sent: Thursday, January 13, 2022 1:17 AM
To: dev@netbeans.apache.org<mailto:dev@netbeans.apache.org> 
mailto:dev@netbeans.apache.org>>
Cc: Arafat BOUCHAFRA mailto:arafat...@gmail.com>>; Peter 
Cheung mailto:mcheun...@hotmail.com>>; Peter Cheung 
mailto:pe...@quantr.hk>>
Subject: RE: New theme for netbeans, team member wanted

I think I understand your goal, and this thread now has a good summary of pros 
and cons.

Again, this is really up to whoever does the icon drawing work. Myself, I have 
just contributed the icons that happened to be used in my NetBeans Platform app.

Would you be interested in participating in the actual icon drawing process, by 
the way? Or is the use of Adobe Illustrator a deal-breaker for you? My company 
could pay for a license.

Alternatively we could try to work out an Inkscape process, if someone wants to 
commit to drawing a significant number of icons in it (separate from the ones 
Peter Cheung is working on). Although the lack of an Artboards feature in 
Inkscape could be a problem.

-- Eirik
[1] 
https://issues.apache.org/jira/secure/attachment/13026411/13026411_210604+Icons+Overview+Cropped.png

-Original Message-
From: Neil C Smith mailto:neilcsm...@apache.org>>
Sent: Wednesday, January 12, 2022 11:18 AM
To: dev@netbeans.apache.org<mailto:dev@netbeans.apache.org>
Cc: Arafat BOUCHAFRA mailto:arafat...@gmail.com>>; Peter 
Cheung mailto:mcheun...@hotmail.com>>; Peter Cheung 
mailto:pe...@quantr.hk>>
Subject: Re: New theme for netbeans, team member wanted

On Wed, 12 Jan 2022 at 15:48, Eirik Bakke 
mailto:eba...@ultorg.com>> wrote:
> Sorry, to clarify: The point about the color palette was my own. My argument 
> is that the existing NetBeans icon style is not very well-suited for 
> assigning logical colors. In order to designate a meaningful, configurable, 
> "accent color", for example, we would have to change the overall color 
> palette of the entire icon set. And that's something that's easier to do 
> after-the-fact than up-front (see my earlier explanation for why).

This is where I somewhat disagree, although I think we're talking about 
different things.

Take 3 different icons - folder, warning, and lightbulb (not sure we have one, 
but ...)

They might all be the same shade of yellow.  However, maybe you want the folder 
icons to take on the accent colour of a look and feel, while a dark theme might 
want to make the shades of the other two a darker yellow, or just the warning 
to match other things in the theme.

Maybe we want to edit the icon files later - this could apply there as much as 
in icon loading.

The point was that to have the icons encode the context of a fill colour (eg. 
CSS class), as well as the colour itself, is potentially useful in multiple 
ways.  And as far as I'm aware, easier to define upfront in a template for all 
icons, than later.  At least in Inkscape (I'm a libre graphics person! :-)) I 
would set up the common stylesheet / palette first, then apply to each shape.

Best wishes,

Neil

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

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




Re: New theme for netbeans, team member wanted

2022-01-18 Thread Peter Cheung
Dear all
Please see the last three rows, is the style matched?


Thanks

>From Peter (System Architect, Quantr Limited https://www.quantr.hk , Mobile : 
>96554595)


From: Eirik Bakke 
Sent: Thursday, January 13, 2022 1:17 AM
To: dev@netbeans.apache.org 
Cc: Arafat BOUCHAFRA ; Peter Cheung 
; Peter Cheung 
Subject: RE: New theme for netbeans, team member wanted

I think I understand your goal, and this thread now has a good summary of pros 
and cons.

Again, this is really up to whoever does the icon drawing work. Myself, I have 
just contributed the icons that happened to be used in my NetBeans Platform app.

Would you be interested in participating in the actual icon drawing process, by 
the way? Or is the use of Adobe Illustrator a deal-breaker for you? My company 
could pay for a license.

Alternatively we could try to work out an Inkscape process, if someone wants to 
commit to drawing a significant number of icons in it (separate from the ones 
Peter Cheung is working on). Although the lack of an Artboards feature in 
Inkscape could be a problem.

-- Eirik
[1] 
https://issues.apache.org/jira/secure/attachment/13026411/13026411_210604+Icons+Overview+Cropped.png

-Original Message-
From: Neil C Smith 
Sent: Wednesday, January 12, 2022 11:18 AM
To: dev@netbeans.apache.org
Cc: Arafat BOUCHAFRA ; Peter Cheung 
; Peter Cheung 
Subject: Re: New theme for netbeans, team member wanted

On Wed, 12 Jan 2022 at 15:48, Eirik Bakke  wrote:
> Sorry, to clarify: The point about the color palette was my own. My argument 
> is that the existing NetBeans icon style is not very well-suited for 
> assigning logical colors. In order to designate a meaningful, configurable, 
> "accent color", for example, we would have to change the overall color 
> palette of the entire icon set. And that's something that's easier to do 
> after-the-fact than up-front (see my earlier explanation for why).

This is where I somewhat disagree, although I think we're talking about 
different things.

Take 3 different icons - folder, warning, and lightbulb (not sure we have one, 
but ...)

They might all be the same shade of yellow.  However, maybe you want the folder 
icons to take on the accent colour of a look and feel, while a dark theme might 
want to make the shades of the other two a darker yellow, or just the warning 
to match other things in the theme.

Maybe we want to edit the icon files later - this could apply there as much as 
in icon loading.

The point was that to have the icons encode the context of a fill colour (eg. 
CSS class), as well as the colour itself, is potentially useful in multiple 
ways.  And as far as I'm aware, easier to define upfront in a template for all 
icons, than later.  At least in Inkscape (I'm a libre graphics person! :-)) I 
would set up the common stylesheet / palette first, then apply to each shape.

Best wishes,

Neil

-
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-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: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org

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



Re: Add support for other programming languages

2022-01-02 Thread Peter Cheung
Me, C#, happy to join

From: John Kostaras 
Sent: Friday, December 31, 2021 10:41 PM
To: dev@netbeans.apache.org 
Subject: Add support for other programming languages

If you are interested in contributing in maintaining other programming
languages support for NetBeans, please reply to this thread.

There are many programming languages that have been dropped from Apache
NetBeans, for various reasons. A list can be found here
.
Some of them need little effort to provide at least some basic
functionality.

The task is not easy, as there are different technologies (JavaCC, ANTLR,
LSP) that these plugins have been written into, and the NetBeans APIs have
been changed during time. A draft wiki page on how to add language support
to NetBeans can be found here

.

We could have a separate thread or organise in slack, e.g. to create a
better overview of what needs to be done and how to proceed.

Thank you in advance.

K/r,

John.


Re: New theme for netbeans, team member wanted

2022-01-01 Thread Peter Cheung
ok


Thanks

>From Peter (System Architect, Quantr Limited https://www.quantr.hk , Mobile : 
>96554595)


From: Eirik Bakke 
Sent: Saturday, January 1, 2022 8:04 PM
To: dev@netbeans.apache.org 
Cc: Arafat BOUCHAFRA ; Peter Cheung 
; Peter Cheung 
Subject: RE: New theme for netbeans, team member wanted

> Yes, I know, it's horrible!

I thought it looked quite nice :-)

My general point is that redrawing the icons is a massive task--there are 
thousands of unique icons in NetBeans, and many hundreds that are seen 
frequently. We really need to keep the process as simple as possible, to have a 
chance to get it done. The main goal here--for my own work at least--is to make 
NetBeans look good on Retina displays (all MacBooks) and other HiDPI displays 
(on both Windows and Linux).

> It's probably less work to consider this now than retrofit them all later?
No, I think retrofitting is actually easier--it could be done in one big batch 
operation. It would have to be part of a general effort to change the color 
scheme, which requires seeing all the ready-drawn icons side-by-side. There's 
also the YAGNI principle--don't pre-architect for functionality we won't yet 
implement.

I also happen to think that the existing icon color scheme is actually a good 
one, and that animations should be avoided. Accent colors are a good idea, but 
can be limited to other parts of the LAF, such as selection highlights.

-- Eirik

-Original Message-
From: Neil C Smith 
Sent: Saturday, January 1, 2022 12:38 PM
To: dev@netbeans.apache.org
Subject: Re: New theme for netbeans, team member wanted

On Sat, 1 Jan 2022 at 11:29, Eirik Bakke  wrote:
> For Dark Mode, one can apply a color filter that inverts the brightness 
> without changing the hues.

Yes, I know, it's horrible!

> Other color scheme changes would probably be best to do once a substantial 
> number of icons have been vectorized.

I wasn't suggesting otherwise, just asking to consider future proofing the SVGs 
now with CSS classes (or other mechanism) so this can more easily be done 
later. It's probably less work to consider this now than retrofit them all 
later?

Best wishes,

Neil

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

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





Re: New theme for netbeans, team member wanted

2021-12-25 Thread Peter Cheung
Thanks, accepted your request. Merry Xmas too


Thanks

From Peter (System Architect, Quantr Limited https://www.quantr.hk , Mobile : 
96554595)


From: Eirik Bakke 
Sent: Saturday, December 25, 2021 9:18 PM
To: Peter Cheung 
Cc: Peter Cheung ; dev@netbeans.apache.org 

Subject: RE: New theme for netbeans, team member wanted


10.00 (10am) UTC on Tue December 28 works.



For anyone who'd like to join, please respond with your email address in this 
thread, and I can send you a Zoom meeting invite.



-- Eirik



From: Peter Cheung 
Sent: Thursday, December 23, 2021 6:02 PM
To: Eirik Bakke 
Cc: pe...@quantr.hk; dev@netbeans.apache.org
Subject: Re: New theme for netbeans, team member wanted



Dear Eirik

Sorry late reply. Shall we do next tue 10 UTC ? thanks



Thanks

From Peter





From: Eirik Bakke 
Sent: Thursday, December 16, 2021 10:35 PM
To: dev@netbeans.apache.org 
Subject: RE: New theme for netbeans, team member wanted



At the moment, anytime 10.00-22.00 UTC Tuesday or Wednesday would work, for 
instance. Just let me know which time slot you prefer.

-- Eirik

-Original Message-
From: Peter Cheung 
Sent: Tuesday, December 14, 2021 7:06 PM
To: Geertjan Wielenga ; 
dev@netbeans.apache.org
Subject: Re: New theme for netbeans, team member wanted

Dear Eirik
May I know what time you ok for a net meeting next week? I ask my designers 
(Noel & Venus) to reserve time. It doesn't have to be hong kong day time, just 
any time that fit you is ok.

Thanks Geertjan too


Thanks
From Peter

From: Geertjan Wielenga 
Sent: Monday, December 6, 2021 4:00 PM
To: dev@netbeans.apache.org 
Cc: mcheun...@hotmail.com 
Subject: Re: New theme for netbeans, team member wanted


Great, progress! Yes, a report to this mailing list would be great to keep 
everyone informed.

Gj

On Mon, 6 Dec 2021 at 07:27, Eirik Bakke 
mailto:eba...@ultorg.com>> wrote:
Sure! Are you in Hong Kong? This week I'm on US east coast time and could do an 
evening call (US time) later in the week. December 15th through January 7 I'll 
be on central Europe time.

I can show the current workflow I've been using for vectorizing NetBeans icons 
so far, and give you an idea of the work involved.

If others are interested in joining, feel free to chime in. (We can write a 
summary for the mailing list afterwards.)

-- Eirik

-Original Message-----
From: Peter Cheung mailto:mcheun...@hotmail.com>>
Sent: Sunday, December 5, 2021 12:15 PM
To: dev@netbeans.apache.org<mailto:dev@netbeans.apache.org>
Subject: Re: New theme for netbeans, team member wanted

Dear Eirik
We have read the google sheet. Do you have time to have a zoom this week? 
So we can have a jump start 


Thanks
From Peter

From: Eirik Bakke mailto:eba...@ultorg.com>>
Sent: Thursday, November 25, 2021 1:11 AM
To: dev@netbeans.apache.org<mailto:dev@netbeans.apache.org> 
mailto:dev@netbeans.apache.org>>
Subject: RE: New theme for netbeans, team member wanted

Hi, Peter.

Fantastic! I'm happy to join a chat--it would be good to include anyone else on 
this list who is interested as well.

For actual decision-making, discussions should happen on the email list, so 
that everyone can follow along. But a Zoom meeting might be good for a quick 
overview.

The style guide that was used for the first 50 icons is described on 
https://issues.apache.org/jira/browse/NETBEANS-2617 . The original discussion 
around this can be found at https://github.com/apache/netbeans/pull/2387 . (If 
helpful, I could add some example images to the style guide and perhaps pull it 
out of the JIRA issue and into a separate Confluence page.)

-- Eirik

-Original Message-
From: Peter Cheung mailto:mcheun...@hotmail.com>>
Sent: Wednesday, November 24, 2021 9:18 AM
To: dev@netbeans.apache.org<mailto:dev@netbeans.apache.org>
Subject: Re: New theme for netbeans, team member wanted

Hi Eirik
We definitely want to help out for the icons. What style you want? How 
about I line up our designers with you for a meeting?
Thanks
From Peter

From: Eirik Bakke mailto:eba...@ultorg.com>>
Sent: Wednesday, November 24, 2021 1:50 AM
To: dev@netbeans.apache.org<mailto:dev@netbeans.apache.org> 
mailto:dev@netbeans.apache.org>>
Subject: RE: New theme for netbeans, team member wanted

Hi, Peter!

There is one big theme-related task which is pending, which is to create new 
SVG versions of various bitmap icons in the IDE, for modern Retina/HiDPI 
screens. I did the first 50 (in Adobe Illustrator), and picked out the next 
ones to be prioritized, as you can see here:

https://issues.apache.org/jira/secure/attachment/13026411/13026411_210604+Icons+Overview+Cropped.png
https://docs.google.com/spreadsheets/d/1U_pj-I3hk9Wj_7lvHcUDsZfFfBSyCkSGqBuv0qt_qXw/edit#gid=812179705
https://issues.

Re: New theme for netbeans, team member wanted

2021-12-23 Thread Peter Cheung
Dear Eirik
Sorry late reply. Shall we do next tue 10 UTC ? thanks

Thanks
From Peter


From: Eirik Bakke 
Sent: Thursday, December 16, 2021 10:35 PM
To: dev@netbeans.apache.org 
Subject: RE: New theme for netbeans, team member wanted

At the moment, anytime 10.00-22.00 UTC Tuesday or Wednesday would work, for 
instance. Just let me know which time slot you prefer.

-- Eirik

-Original Message-
From: Peter Cheung 
Sent: Tuesday, December 14, 2021 7:06 PM
To: Geertjan Wielenga ; 
dev@netbeans.apache.org
Subject: Re: New theme for netbeans, team member wanted

Dear Eirik
May I know what time you ok for a net meeting next week? I ask my designers 
(Noel & Venus) to reserve time. It doesn't have to be hong kong day time, just 
any time that fit you is ok.

Thanks Geertjan too


Thanks
From Peter

From: Geertjan Wielenga 
Sent: Monday, December 6, 2021 4:00 PM
To: dev@netbeans.apache.org 
Cc: mcheun...@hotmail.com 
Subject: Re: New theme for netbeans, team member wanted


Great, progress! Yes, a report to this mailing list would be great to keep 
everyone informed.

Gj

On Mon, 6 Dec 2021 at 07:27, Eirik Bakke 
mailto:eba...@ultorg.com>> wrote:
Sure! Are you in Hong Kong? This week I'm on US east coast time and could do an 
evening call (US time) later in the week. December 15th through January 7 I'll 
be on central Europe time.

I can show the current workflow I've been using for vectorizing NetBeans icons 
so far, and give you an idea of the work involved.

If others are interested in joining, feel free to chime in. (We can write a 
summary for the mailing list afterwards.)

-- Eirik

-Original Message-----
From: Peter Cheung mailto:mcheun...@hotmail.com>>
Sent: Sunday, December 5, 2021 12:15 PM
To: dev@netbeans.apache.org<mailto:dev@netbeans.apache.org>
Subject: Re: New theme for netbeans, team member wanted

Dear Eirik
We have read the google sheet. Do you have time to have a zoom this week? 
So we can have a jump start 


Thanks
From Peter

From: Eirik Bakke mailto:eba...@ultorg.com>>
Sent: Thursday, November 25, 2021 1:11 AM
To: dev@netbeans.apache.org<mailto:dev@netbeans.apache.org> 
mailto:dev@netbeans.apache.org>>
Subject: RE: New theme for netbeans, team member wanted

Hi, Peter.

Fantastic! I'm happy to join a chat--it would be good to include anyone else on 
this list who is interested as well.

For actual decision-making, discussions should happen on the email list, so 
that everyone can follow along. But a Zoom meeting might be good for a quick 
overview.

The style guide that was used for the first 50 icons is described on 
https://issues.apache.org/jira/browse/NETBEANS-2617 . The original discussion 
around this can be found at https://github.com/apache/netbeans/pull/2387 . (If 
helpful, I could add some example images to the style guide and perhaps pull it 
out of the JIRA issue and into a separate Confluence page.)

-- Eirik

-Original Message-
From: Peter Cheung mailto:mcheun...@hotmail.com>>
Sent: Wednesday, November 24, 2021 9:18 AM
To: dev@netbeans.apache.org<mailto:dev@netbeans.apache.org>
Subject: Re: New theme for netbeans, team member wanted

Hi Eirik
We definitely want to help out for the icons. What style you want? How 
about I line up our designers with you for a meeting?
Thanks
From Peter

From: Eirik Bakke mailto:eba...@ultorg.com>>
Sent: Wednesday, November 24, 2021 1:50 AM
To: dev@netbeans.apache.org<mailto:dev@netbeans.apache.org> 
mailto:dev@netbeans.apache.org>>
Subject: RE: New theme for netbeans, team member wanted

Hi, Peter!

There is one big theme-related task which is pending, which is to create new 
SVG versions of various bitmap icons in the IDE, for modern Retina/HiDPI 
screens. I did the first 50 (in Adobe Illustrator), and picked out the next 
ones to be prioritized, as you can see here:

https://issues.apache.org/jira/secure/attachment/13026411/13026411_210604+Icons+Overview+Cropped.png
https://docs.google.com/spreadsheets/d/1U_pj-I3hk9Wj_7lvHcUDsZfFfBSyCkSGqBuv0qt_qXw/edit#gid=812179705
https://issues.apache.org/jira/browse/NETBEANS-2617

If you are interested in helping with the icon drawling effort, I'd be happy to 
help coordinate.

As for the Look & Feel, I think NetBeans will now be switching to FlatLAF as 
the default on all 3 operating systems (Windows, Linux, MacOS). I just 
transitioned my own NetBeans Platform application to FlatLAF, and it's a very 
good basis for making NetBeans look good in the future. It's also very 
configurable, so I think alternative themes can be implemented by means of 
configuring and improving FlatLAF, rather than by creating a completely new 
Swing LAF.

-- Eirik

-Original Message-
From: Christian Lenz mailto:christian.l...@gmx.net>>
Sent: Tuesday, November 23, 2021 11:31

Re: New theme for netbeans, team member wanted

2021-12-14 Thread Peter Cheung
Dear Eirik
May I know what time you ok for a net meeting next week? I ask my designers 
(Noel & Venus) to reserve time. It doesn't have to be hong kong day time, just 
any time that fit you is ok.

Thanks Geertjan too


Thanks
From Peter

From: Geertjan Wielenga 
Sent: Monday, December 6, 2021 4:00 PM
To: dev@netbeans.apache.org 
Cc: mcheun...@hotmail.com 
Subject: Re: New theme for netbeans, team member wanted


Great, progress! Yes, a report to this mailing list would be great to keep 
everyone informed.

Gj

On Mon, 6 Dec 2021 at 07:27, Eirik Bakke 
mailto:eba...@ultorg.com>> wrote:
Sure! Are you in Hong Kong? This week I'm on US east coast time and could do an 
evening call (US time) later in the week. December 15th through January 7 I'll 
be on central Europe time.

I can show the current workflow I've been using for vectorizing NetBeans icons 
so far, and give you an idea of the work involved.

If others are interested in joining, feel free to chime in. (We can write a 
summary for the mailing list afterwards.)

-- Eirik

-Original Message-----
From: Peter Cheung mailto:mcheun...@hotmail.com>>
Sent: Sunday, December 5, 2021 12:15 PM
To: dev@netbeans.apache.org<mailto:dev@netbeans.apache.org>
Subject: Re: New theme for netbeans, team member wanted

Dear Eirik
We have read the google sheet. Do you have time to have a zoom this week? 
So we can have a jump start 


Thanks
From Peter

From: Eirik Bakke mailto:eba...@ultorg.com>>
Sent: Thursday, November 25, 2021 1:11 AM
To: dev@netbeans.apache.org<mailto:dev@netbeans.apache.org> 
mailto:dev@netbeans.apache.org>>
Subject: RE: New theme for netbeans, team member wanted

Hi, Peter.

Fantastic! I'm happy to join a chat--it would be good to include anyone else on 
this list who is interested as well.

For actual decision-making, discussions should happen on the email list, so 
that everyone can follow along. But a Zoom meeting might be good for a quick 
overview.

The style guide that was used for the first 50 icons is described on 
https://issues.apache.org/jira/browse/NETBEANS-2617 . The original discussion 
around this can be found at https://github.com/apache/netbeans/pull/2387 . (If 
helpful, I could add some example images to the style guide and perhaps pull it 
out of the JIRA issue and into a separate Confluence page.)

-- Eirik

-Original Message-
From: Peter Cheung mailto:mcheun...@hotmail.com>>
Sent: Wednesday, November 24, 2021 9:18 AM
To: dev@netbeans.apache.org<mailto:dev@netbeans.apache.org>
Subject: Re: New theme for netbeans, team member wanted

Hi Eirik
We definitely want to help out for the icons. What style you want? How 
about I line up our designers with you for a meeting?
Thanks
From Peter

From: Eirik Bakke mailto:eba...@ultorg.com>>
Sent: Wednesday, November 24, 2021 1:50 AM
To: dev@netbeans.apache.org<mailto:dev@netbeans.apache.org> 
mailto:dev@netbeans.apache.org>>
Subject: RE: New theme for netbeans, team member wanted

Hi, Peter!

There is one big theme-related task which is pending, which is to create new 
SVG versions of various bitmap icons in the IDE, for modern Retina/HiDPI 
screens. I did the first 50 (in Adobe Illustrator), and picked out the next 
ones to be prioritized, as you can see here:

https://issues.apache.org/jira/secure/attachment/13026411/13026411_210604+Icons+Overview+Cropped.png
https://docs.google.com/spreadsheets/d/1U_pj-I3hk9Wj_7lvHcUDsZfFfBSyCkSGqBuv0qt_qXw/edit#gid=812179705
https://issues.apache.org/jira/browse/NETBEANS-2617

If you are interested in helping with the icon drawling effort, I'd be happy to 
help coordinate.

As for the Look & Feel, I think NetBeans will now be switching to FlatLAF as 
the default on all 3 operating systems (Windows, Linux, MacOS). I just 
transitioned my own NetBeans Platform application to FlatLAF, and it's a very 
good basis for making NetBeans look good in the future. It's also very 
configurable, so I think alternative themes can be implemented by means of 
configuring and improving FlatLAF, rather than by creating a completely new 
Swing LAF.

-- Eirik

-Original Message-
From: Christian Lenz mailto:christian.l...@gmx.net>>
Sent: Tuesday, November 23, 2021 11:31 AM
To: dev@netbeans.apache.org<mailto:dev@netbeans.apache.org>
Subject: AW: New theme for netbeans, team member wanted

Hey Peter,

great to have you on board already. We are discussing to add the Flat LaF as a 
default theme to NetBeans which is already implemented, but we need to switch 
to it.

What I can say what we need is a designer for maybe new UI components. Some 
components in NetBeans can be combined into one for example Input + button to 
search for paths etc.
Some other parts need a redesign and also proposals. So let us know, what you 
think to change in NetBeans and show us som

Re: New theme for netbeans, team member wanted

2021-12-05 Thread Peter Cheung
Dear Eirik
We have read the google sheet. Do you have time to have a zoom this week? 
So we can have a jump start 


Thanks
From Peter

From: Eirik Bakke 
Sent: Thursday, November 25, 2021 1:11 AM
To: dev@netbeans.apache.org 
Subject: RE: New theme for netbeans, team member wanted

Hi, Peter.

Fantastic! I'm happy to join a chat--it would be good to include anyone else on 
this list who is interested as well.

For actual decision-making, discussions should happen on the email list, so 
that everyone can follow along. But a Zoom meeting might be good for a quick 
overview.

The style guide that was used for the first 50 icons is described on 
https://issues.apache.org/jira/browse/NETBEANS-2617 . The original discussion 
around this can be found at https://github.com/apache/netbeans/pull/2387 . (If 
helpful, I could add some example images to the style guide and perhaps pull it 
out of the JIRA issue and into a separate Confluence page.)

-- Eirik

-Original Message-
From: Peter Cheung 
Sent: Wednesday, November 24, 2021 9:18 AM
To: dev@netbeans.apache.org
Subject: Re: New theme for netbeans, team member wanted

Hi Eirik
We definitely want to help out for the icons. What style you want? How 
about I line up our designers with you for a meeting?
Thanks
From Peter

From: Eirik Bakke 
Sent: Wednesday, November 24, 2021 1:50 AM
To: dev@netbeans.apache.org 
Subject: RE: New theme for netbeans, team member wanted

Hi, Peter!

There is one big theme-related task which is pending, which is to create new 
SVG versions of various bitmap icons in the IDE, for modern Retina/HiDPI 
screens. I did the first 50 (in Adobe Illustrator), and picked out the next 
ones to be prioritized, as you can see here:

https://issues.apache.org/jira/secure/attachment/13026411/13026411_210604+Icons+Overview+Cropped.png
https://docs.google.com/spreadsheets/d/1U_pj-I3hk9Wj_7lvHcUDsZfFfBSyCkSGqBuv0qt_qXw/edit#gid=812179705
https://issues.apache.org/jira/browse/NETBEANS-2617

If you are interested in helping with the icon drawling effort, I'd be happy to 
help coordinate.

As for the Look & Feel, I think NetBeans will now be switching to FlatLAF as 
the default on all 3 operating systems (Windows, Linux, MacOS). I just 
transitioned my own NetBeans Platform application to FlatLAF, and it's a very 
good basis for making NetBeans look good in the future. It's also very 
configurable, so I think alternative themes can be implemented by means of 
configuring and improving FlatLAF, rather than by creating a completely new 
Swing LAF.

-- Eirik

-Original Message-
From: Christian Lenz 
Sent: Tuesday, November 23, 2021 11:31 AM
To: dev@netbeans.apache.org
Subject: AW: New theme for netbeans, team member wanted

Hey Peter,

great to have you on board already. We are discussing to add the Flat LaF as a 
default theme to NetBeans which is already implemented, but we need to switch 
to it.

What I can say what we need is a designer for maybe new UI components. Some 
components in NetBeans can be combined into one for example Input + button to 
search for paths etc.
Some other parts need a redesign and also proposals. So let us know, what you 
think to change in NetBeans and show us some examples and let us discuss about 
it .


Cheers

Chris

Von: Peter Cheung
Gesendet: Dienstag, 23. November 2021 04:38
An: dev@netbeans.apache.org
Betreff: New theme for netbeans, team member wanted

Dear All
 My name is Peter, from Quantr Limited. I love Netbeans and have been 
developed few plugins for it. This proves my ambition in Netbeans.

https://gitlab.com/quantr/toolchain/netbeans-verilog
https://gitlab.com/mcheung63/netbeans-quick-outline
https://gitlab.com/mcheung63/MavenRunner
https://www.youtube.com/watch?v=rDFkhrHxHMw

Many people said VSCode and intelliJ looks fancier than Netbeans. We want 
to contribute our power to theme the netbeans, my company has two designers. 
Below are some of their artworks I have experience in java swing styling, I did 
developer a L ten years ago https://gitlab.com/mcheung63/peter-swing

Netbeans is very complex piece of code, we want team members to

  1.  Guide us, instruct us
  2.  Comment the style
  3.  Help us when we meet trouble in code
  4.  Coding


https://xd.adobe.com/view/9d702288-c88d-4253-96b8-e81013f51b1d-c823/
https://xd.adobe.com/view/3327f9a4-7128-4181-80ca-f276843f48ad-6674/
https://xd.adobe.com/view/daef7604-73a6-47c8-8f6f-d1888e1038f9-8fbc/

Hope to see a reply !!!

Thanks
From Peter

B�CB��[��X��ܚX�KK[XZ[�]�][��X��ܚX�P�]�X[�˘\X�K�ܙ�B��܈Y][ۘ[��[X[��K[XZ[�]�Z[�]�X[�˘\X�K�ܙ�B�B��܈�\�\�[��ܛX][ۈX��]H�]�X[��XZ[[��\���\�]�B�΋Z�K�\X�K�ܙ���ۙ�Y[��K�\�^KӑU�PS���XZ[[���\��B�B�B�B


Re: project files not auto refresh

2021-11-24 Thread Peter Cheung
no need filewatcher, i commented these line out, then it back to work

public VerilogProjectNode(Node node, VerilogProject project) throws 
DataObjectNotFoundException {
super(node
// new FilterNode.Children(node),
// new ProxyLookup(
// new Lookup[]{Lookups.singleton(project),
// node.getLookup()
// })
);
this.project = project;
}


Thanks
>From Peter

From: Christian Lenz 
Sent: Tuesday, November 23, 2021 10:03 PM
To: dev@netbeans.apache.org 
Subject: AW: project files not auto refresh

Can you please point to a documentation for such a fileWatcher?

Von: Laszlo Kishalmi
Gesendet: Montag, 15. November 2021 06:02
An: dev@netbeans.apache.org
Betreff: Re: project files not auto refresh

Just set up a watcher on your project files.

On 11/12/21 20:35, Peter Cheung wrote:
> Hi
>  I am developing verilog plugins, i creatre a new project type. When the 
> file is deleted in the fs, the project tree won't auto refresh. Any hints 
> please?
> thanks
> Peter
>
> /*
>   * Copyright 2021 Peter .
>   *
>   * Licensed under the Apache License, Version 2.0 (the "License");
>   * you may not use this file except in compliance with the License.
>   * You may obtain a copy of the License at
>   *
>   *  http://www.apache.org/licenses/LICENSE-2.0
>   *
>   * Unless required by applicable law or agreed to in writing, software
>   * distributed under the License is distributed on an "AS IS" BASIS,
>   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
>   * See the License for the specific language governing permissions and
>   * limitations under the License.
>   */
> package hk.quantr.netbeans.verilog.projecttype;
>
> import java.util.ArrayList;
> import java.util.Comparator;
> import java.util.List;
> import java.util.stream.Collectors;
> import java.util.stream.Stream;
> import javax.swing.event.ChangeListener;
> import org.netbeans.api.project.Project;
> import org.netbeans.spi.project.ui.support.NodeFactory;
> import org.netbeans.spi.project.ui.support.NodeList;
> import org.openide.filesystems.FileObject;
> import org.openide.loaders.DataObject;
> import org.openide.loaders.DataObjectNotFoundException;
> import org.openide.nodes.FilterNode;
> import org.openide.nodes.Node;
> import org.openide.util.Exceptions;
>
> /**
>   *
>   * @author Peter 
>   */
> @NodeFactory.Registration(projectType = "verilog-project", position = 10)
> public class VerilogNodeFactory implements NodeFactory {
>
> @Override
> public NodeList createNodes(Project project) {
> System.out.println("createNodes");
> return new VerilogNodeList(project);
> }
>
> private class VerilogNodeList implements NodeList {
>
> Project project;
>
> public VerilogNodeList(Project project) {
> this.project = project;
> }
>
> @Override
> public List keys() {
> System.out.println("keys");
> FileObject folder = project.getProjectDirectory();
> List result = new ArrayList<>();
> if (folder != null) {
> for (FileObject f : Stream.of(folder.getChildren())
> .filter(e -> e.isFolder() && !e.getName().equals(".git"))
> .sorted(Comparator.comparing(FileObject::getName))
> .collect(Collectors.toList())) {
> try {
> result.add(DataObject.find(f).getNodeDelegate());
> } catch (DataObjectNotFoundException ex) {
> Exceptions.printStackTrace(ex);
> }
> }
> for (FileObject f : Stream.of(folder.getChildren())
> .filter(e -> !e.isFolder())
> .sorted(Comparator.comparing(FileObject::getName))
> .collect(Collectors.toList())) {
> try {
> result.add(DataObject.find(f).getNodeDelegate());
> } catch (DataObjectNotFoundException ex) {
> Exceptions.printStackTrace(ex);
> }
> }
> }
> return result;
> }
>
> @Override
> public Node node(Node node) {
> return new FilterNode(node);
> }
>
> @Override
> public void addNotify() {
> System.out.println("addNotify");
> }
>
> @Override
> public void removeNotify() {
> System.out.println("removeNotify");
> }
>
> @Override
> public void addChangeListener(ChangeListener cl) {
> System.out.println("addChangeListener");
> }
>
> @Override
> public void removeChangeListener(ChangeListener cl) {
> System.out.println("removeChangeListener");
> }
>
> }
> }
>

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

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






New theme for netbeans, team member wanted

2021-11-22 Thread Peter Cheung
Dear All
 My name is Peter, from Quantr Limited. I love Netbeans and have been 
developed few plugins for it. This proves my ambition in Netbeans.

https://gitlab.com/quantr/toolchain/netbeans-verilog
https://gitlab.com/mcheung63/netbeans-quick-outline
https://gitlab.com/mcheung63/MavenRunner
https://www.youtube.com/watch?v=rDFkhrHxHMw

Many people said VSCode and intelliJ looks fancier than Netbeans. We want 
to contribute our power to theme the netbeans, my company has two designers. 
Below are some of their artworks I have experience in java swing styling, I did 
developer a L ten years ago https://gitlab.com/mcheung63/peter-swing

Netbeans is very complex piece of code, we want team members to

  1.  Guide us, instruct us
  2.  Comment the style
  3.  Help us when we meet trouble in code
  4.  Coding


https://xd.adobe.com/view/9d702288-c88d-4253-96b8-e81013f51b1d-c823/
https://xd.adobe.com/view/3327f9a4-7128-4181-80ca-f276843f48ad-6674/
https://xd.adobe.com/view/daef7604-73a6-47c8-8f6f-d1888e1038f9-8fbc/

Hope to see a reply !!!

Thanks
>From Peter


project files not auto refresh

2021-11-12 Thread Peter Cheung
Hi
I am developing verilog plugins, i creatre a new project type. When the 
file is deleted in the fs, the project tree won't auto refresh. Any hints 
please?
thanks
Peter

/*
 * Copyright 2021 Peter .
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package hk.quantr.netbeans.verilog.projecttype;

import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import javax.swing.event.ChangeListener;
import org.netbeans.api.project.Project;
import org.netbeans.spi.project.ui.support.NodeFactory;
import org.netbeans.spi.project.ui.support.NodeList;
import org.openide.filesystems.FileObject;
import org.openide.loaders.DataObject;
import org.openide.loaders.DataObjectNotFoundException;
import org.openide.nodes.FilterNode;
import org.openide.nodes.Node;
import org.openide.util.Exceptions;

/**
 *
 * @author Peter 
 */
@NodeFactory.Registration(projectType = "verilog-project", position = 10)
public class VerilogNodeFactory implements NodeFactory {

@Override
public NodeList createNodes(Project project) {
System.out.println("createNodes");
return new VerilogNodeList(project);
}

private class VerilogNodeList implements NodeList {

Project project;

public VerilogNodeList(Project project) {
this.project = project;
}

@Override
public List keys() {
System.out.println("keys");
FileObject folder = project.getProjectDirectory();
List result = new ArrayList<>();
if (folder != null) {
for (FileObject f : Stream.of(folder.getChildren())
.filter(e -> e.isFolder() && !e.getName().equals(".git"))
.sorted(Comparator.comparing(FileObject::getName))
.collect(Collectors.toList())) {
try {
result.add(DataObject.find(f).getNodeDelegate());
} catch (DataObjectNotFoundException ex) {
Exceptions.printStackTrace(ex);
}
}
for (FileObject f : Stream.of(folder.getChildren())
.filter(e -> !e.isFolder())
.sorted(Comparator.comparing(FileObject::getName))
.collect(Collectors.toList())) {
try {
result.add(DataObject.find(f).getNodeDelegate());
} catch (DataObjectNotFoundException ex) {
Exceptions.printStackTrace(ex);
}
}
}
return result;
}

@Override
public Node node(Node node) {
return new FilterNode(node);
}

@Override
public void addNotify() {
System.out.println("addNotify");
}

@Override
public void removeNotify() {
System.out.println("removeNotify");
}

@Override
public void addChangeListener(ChangeListener cl) {
System.out.println("addChangeListener");
}

@Override
public void removeChangeListener(ChangeListener cl) {
System.out.println("removeChangeListener");
}

}
}


Verilog plugin

2021-11-08 Thread Peter Cheung
Hope you like it https://gitlab.com/quantr/toolchain/netbeans-verilog
Peter


verilog plugin

2021-10-31 Thread Peter Cheung
Hi
   This is our verilog plugin for netbeans 
https://www.quantr.foundation/project/netbeansverilog


Thanks

>From Peter (System Architect, Quantr Limited https://www.quantr.hk , Mobile : 
>96554595)


can't lookup current project

2021-10-25 Thread Peter Cheung
Hi All

   These give me null:

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

This also null:

OpenProjects.getDefault().getMainProject()

How can I find the current selected project? thanks


Thanks

>From Peter (System Architect, Quantr Limited https://www.quantr.hk , Mobile : 
>96554595)


Re: mojo:exec-maven-plugin

2020-07-15 Thread Peter Cheung
forget this post. i solved by setting "actions" in "project properties"


Thanks
From Peter
________
From: Peter Cheung 
Sent: Wednesday, July 15, 2020 8:49 PM
To: dev@netbeans.apache.org 
Subject: mojo:exec-maven-plugin

hi
   if i run the file, it will invoke maven with parameter 
org.codehaus.mojo:exec-maven-plugin:1.5.0:exec"

How can i change the version number of exec-maven-plugin from 1.5.0 to other 
version?

Thanks
From Peter

[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png]<http://www.avg.com/email-signature?utm_medium=email_source=link_campaign=sig-email_content=webmail>
 Virus-free. 
www.avg.com<http://www.avg.com/email-signature?utm_medium=email_source=link_campaign=sig-email_content=webmail>


mojo:exec-maven-plugin

2020-07-15 Thread Peter Cheung
hi
   if i run the file, it will invoke maven with parameter 
org.codehaus.mojo:exec-maven-plugin:1.5.0:exec"

How can i change the version number of exec-maven-plugin from 1.5.0 to other 
version?

Thanks
From Peter

[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png]
 Virus-free. 
www.avg.com


Re: How to self host the plugins

2020-07-10 Thread Peter Cheung
just had a look into the xml, quite complex

From: Christian Lenz 
Sent: Thursday, July 2, 2020 7:01 PM
To: dev@netbeans.apache.org 
Subject: AW: How to self host the plugins

My plan is:
• Creating a new GitHub page (maybe with nuxt.js but it doesn’t matter) which 
will be my own plugin portal
• List all my plugins there, add some info from the repos and add the links to 
the releases of those plugins to the detail page of the plugin
• Make a list of all latest releases
• Create an update center XML file and add it to the NetBeans plugin manager

Is this possible? I mean the infrastructure is also there, when I build and 
deploy my plugins via GitHub actions and I also have the NBM files at the end.


Cheers

Chris

Von: Peter Cheung
Gesendet: Donnerstag, 2. Juli 2020 12:17
An: dev@netbeans.apache.org
Betreff: Re: How to self host the plugins

Thanks Tim

From: Tim Boudreau 
Sent: Thursday, July 2, 2020 4:44 PM
To: dev@netbeans.apache.org 
Subject: Re: How to self host the plugins

One option is this - follow the link in the page head:

https://timboudreau.com/modules

So, set up Jenkins or similar somewhere to build your modules and archive
the nbm file for each module.

Run the server (just java -jar, no application servers), and add URLs to
the last successful build link from , in the form at the bottom of the home
page.

The server will poll the URLs periodically, and if updated, the new version
will be served. Tiny and efficient.

One caveat: set up your build so the version is NOT appended to the nbm
file’s name, so the URL is the same for every build.

-Tim

On Wed, Jul 1, 2020 at 10:08 PM Peter Cheung  wrote:

> Hi
>How to setup a web server to self-host the plugins?
> Thanks
> From Peter
>
--
http://timboudreau.com



Re: How to self host the plugins

2020-07-02 Thread Peter Cheung
Thanks Tim

From: Tim Boudreau 
Sent: Thursday, July 2, 2020 4:44 PM
To: dev@netbeans.apache.org 
Subject: Re: How to self host the plugins

One option is this - follow the link in the page head:

https://timboudreau.com/modules

So, set up Jenkins or similar somewhere to build your modules and archive
the nbm file for each module.

Run the server (just java -jar, no application servers), and add URLs to
the last successful build link from , in the form at the bottom of the home
page.

The server will poll the URLs periodically, and if updated, the new version
will be served. Tiny and efficient.

One caveat: set up your build so the version is NOT appended to the nbm
file’s name, so the URL is the same for every build.

-Tim

On Wed, Jul 1, 2020 at 10:08 PM Peter Cheung  wrote:

> Hi
>How to setup a web server to self-host the plugins?
> Thanks
> From Peter
>
--
http://timboudreau.com


How to self host the plugins

2020-07-01 Thread Peter Cheung
Hi
   How to setup a web server to self-host the plugins?
Thanks
>From Peter


Re: System.out.print(">") not working when F6

2020-06-02 Thread Peter Cheung
Sorry, confirm it is not netbeans bug. I run it in prompt by exactly same mvn 
command. The system.out.print() not working:

mvn -Dexec.args="-classpath %classpath hk.quantr.riscv_simulator.Simulator" 
-Dexec.executable="C:\Program Files\Java\jdk-13.0.2\bin\java.exe" 
-Dexec.classpathScope=runtime -Dmaven.ext.class.path="C:\Program 
Files\NetBeans-11.3\netbeans\java\maven-nblib\netbeans-eventspy.jar;C:\Program 
Files\NetBeans-11.3\netbeans\java\maven-nblib\netbeans-cos.jar" 
-Dfile.encoding=UTF-8 org.codehaus.mojo:exec-maven-plugin:1.5.0:exec

so it probably a bug of maven or org.codehaus.mojo:exec-maven-plugin

Thanks Gentlemen.
________
From: Peter Cheung
Sent: Wednesday, June 3, 2020 12:57 AM
To: dev@netbeans.apache.org 
Subject: System.out.print(">") not working when F6

Hi
   System.out.print(">") not working when F6, nothing print out on screen. If I 
pack the program into jar and run it in dos prompt, it works. I don't know it 
is mvn bug or netbeans bug. I am using Netbeans 11.3 with JDK 13.0.2. Please 
help.

Thanks
>From Peter


System.out.print(">") not working when F6

2020-06-02 Thread Peter Cheung
Hi
   System.out.print(">") not working when F6, nothing print out on screen. If I 
pack the program into jar and run it in dos prompt, it works. I don't know it 
is mvn bug or netbeans bug. I am using Netbeans 11.3 with JDK 13.0.2. Please 
help.

Thanks
>From Peter


Re: wrong error

2020-05-07 Thread Peter Cheung
forget this post, after i install nb-javac, it back to works.

From: Peter Cheung 
Sent: Thursday, May 7, 2020 1:00 PM
To: dev@netbeans.apache.org 
Subject: wrong error

Hi
   I am using Netbeans 11.3 with JDK13.0.2, netbeans said my file has error, 
but when i compile it using maven, it has no error. So anyway to stop it?
Thanks
>From Peter


wrong error

2020-05-06 Thread Peter Cheung
Hi
   I am using Netbeans 11.3 with JDK13.0.2, netbeans said my file has error, 
but when i compile it using maven, it has no error. So anyway to stop it?
Thanks
>From Peter

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

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



Re: Netbeans hangs in Mac since Netbeans 8.2 to now

2019-11-07 Thread Peter Cheung
When i was in eclipse, i was using a plugin call maven runner. Just a list of 
shortcut of maven goals.



From: Carl Mosca 
Sent: Thursday, November 7, 2019 6:34 PM
To: dev@netbeans.apache.org 
Cc: Geertjan Wielenga 
Subject: Re: Netbeans hangs in Mac since Netbeans 8.2 to now

Ok I am now slightly more confused.

What does your plugin do that can’t already be done in netbeans?

Will try to look when at a computer next.

On Thu, Nov 7, 2019 at 4:12 AM Peter Cheung  wrote:

> Dear Sir
>   Sorry my bad english, my plugins source is updated in. So if you
> install my plugin in your netbeans, i believe netbeans will hangs in after
> few starts.
> https://peter.quantr.hk/2019/11/netbeans-hangs-in-mac-since-netbeans-8-2-to-now/
>
> Thanks
> From Peter
> 
> From: Geertjan Wielenga 
> Sent: Wednesday, November 6, 2019 7:32 PM
> To: dev 
> Subject: Re: Netbeans hangs in Mac since Netbeans 8.2 to now
>
> Your subject line should be "My plugin hangs in Mac since NetBeans IDE
> 8.2.".
>
> And then you would point to the sources and to the steps to reproduce the
> problem.
>
> Gj
>
> On Wed, Nov 6, 2019 at 3:23 AM Carl Mosca  wrote:
>
> > Where can we get additional details?  Perhaps I missed something in the
> > post.
> >
> > Regards,
> > Carl
> >
> > On Tue, Nov 5, 2019 at 9:19 PM Peter Cheung 
> wrote:
> >
> > > Hi All
> > >Netbeans hangs in Mac since Netbeans 8.2 to now.
> > >
> >
> https://peter.quantr.hk/2019/11/netbeans-hangs-in-mac-since-netbeans-8-2-to-now/
> > > thanks
> > > Peter
> > >
> >
> >
> > --
> > Carl J. Mosca
> >
>
--
Regards,
Carl


Re: Netbeans hangs in Mac since Netbeans 8.2 to now

2019-11-07 Thread Peter Cheung
Dear Sir
  Sorry my bad english, my plugins source is updated in. So if you install 
my plugin in your netbeans, i believe netbeans will hangs in after few starts. 
https://peter.quantr.hk/2019/11/netbeans-hangs-in-mac-since-netbeans-8-2-to-now/

Thanks
>From Peter

From: Geertjan Wielenga 
Sent: Wednesday, November 6, 2019 7:32 PM
To: dev 
Subject: Re: Netbeans hangs in Mac since Netbeans 8.2 to now

Your subject line should be "My plugin hangs in Mac since NetBeans IDE
8.2.".

And then you would point to the sources and to the steps to reproduce the
problem.

Gj

On Wed, Nov 6, 2019 at 3:23 AM Carl Mosca  wrote:

> Where can we get additional details?  Perhaps I missed something in the
> post.
>
> Regards,
> Carl
>
> On Tue, Nov 5, 2019 at 9:19 PM Peter Cheung  wrote:
>
> > Hi All
> >Netbeans hangs in Mac since Netbeans 8.2 to now.
> >
> https://peter.quantr.hk/2019/11/netbeans-hangs-in-mac-since-netbeans-8-2-to-now/
> > thanks
> > Peter
> >
>
>
> --
> Carl J. Mosca
>


Netbeans hangs in Mac since Netbeans 8.2 to now

2019-11-05 Thread Peter Cheung
Hi All
   Netbeans hangs in Mac since Netbeans 8.2 to now. 
https://peter.quantr.hk/2019/11/netbeans-hangs-in-mac-since-netbeans-8-2-to-now/
thanks
Peter


Re: Syntax highlighting question

2019-10-21 Thread Peter Cheung
I have read some of your code, your project seems a very large project, many 
modules in there.


Thanks
>From Peter

From: Peter Cheung 
Sent: Tuesday, October 22, 2019 12:30 AM
To: dev@netbeans.apache.org 
Subject: Re: Syntax highlighting question

Dear Tim
Thank you for your sincerity. The reason i develop my own antlr plugin for 
netbeans is to support my assembler development. 
https://www.youtube.com/watch?v=rDFkhrHxHMw

So I believe in my netbeans-antlr project, i have developed some useful 
thing dedicated for assembler development, but not useful for others.


Thanks
>From Peter

From: Tim Boudreau 
Sent: Thursday, October 17, 2019 4:06 AM
To: dev@netbeans.apache.org 
Subject: Re: Syntax highlighting question

Hi, Peter,

I would strongly suggest we collaborate on that here:
https://github.com/timboudreau/ANTLR4-Plugins-for-NetBeans - since that
way, not only would it be implementable for Antlr, but for *any* language
using an Antlr grammar (it is two layers of modules - one for writing
language modules with most features generated for you from *any *Antlr
grammar, and then modules for Antlr grammar language built on top of that -
here are some docs on general-language support -
https://github.com/timboudreau/ANTLR4-Plugins-for-NetBeans/blob/master/api.md
- and I hope to have a continuous build w/ javadocs up soon).

NetBeans lexer and parser APIs have straightforward support for this - see
LanguagePath and the method on Parser.Result that takes an integer and
gives you a Parser.Result for an embedded language.

Done right, supporting an embedded language would be as simple as

@EmbeddedLanguage("text/x-java")
public static final RegionsKey THE_KEY = ...

(the generic language support API revolves around defining typed keys, and
then extracting what you're actually going to use from the parse tree as
character ranges with any data you need tied to those ranges, and then you
can retrieve the actual results from a parser result when a file is parsed).

That's been on my todo list too - the original antlr plugin author had
included a crude Antlr grammar for Java to do that, which isn't a terribly
sensible way to do it when you have a really good Java parser available for
use.

-Tim


On Tue, Oct 15, 2019 at 6:16 AM Peter Cheung  wrote:

> Dear All
>I have developed a module (https://gitlab.com/mcheung63/netbeans-antlr)
> for antlr, it provides antlr grammar syntax highlight, but it is not
> perfect. I want to enhance it but problem is : antlr supports "embed
> action", which is in Java, so two languages in same file.
>
>To provide the best syntax highlight, i need to send those embed
> actions to "java lexer", this point has no problem to me. But Is there
> anyway merge those tokens (java-lexer) back to the one (antlr-lexer) which
> used by netbeans to provide syntax highlight?
>
> Is there any way to provide syntax highlight but not using lexer? Let
> say i want to hight the second line from character 2-4 in red. Whatever the
> text is, i just want to highlight those positions, is it possible?
>
> Thanks
> From Peter
>
>
>

--
http://timboudreau.com


Re: Syntax highlighting question

2019-10-21 Thread Peter Cheung
Dear Tim
Thank you for your sincerity. The reason i develop my own antlr plugin for 
netbeans is to support my assembler development. 
https://www.youtube.com/watch?v=rDFkhrHxHMw

So I believe in my netbeans-antlr project, i have developed some useful 
thing dedicated for assembler development, but not useful for others.


Thanks
>From Peter

From: Tim Boudreau 
Sent: Thursday, October 17, 2019 4:06 AM
To: dev@netbeans.apache.org 
Subject: Re: Syntax highlighting question

Hi, Peter,

I would strongly suggest we collaborate on that here:
https://github.com/timboudreau/ANTLR4-Plugins-for-NetBeans - since that
way, not only would it be implementable for Antlr, but for *any* language
using an Antlr grammar (it is two layers of modules - one for writing
language modules with most features generated for you from *any *Antlr
grammar, and then modules for Antlr grammar language built on top of that -
here are some docs on general-language support -
https://github.com/timboudreau/ANTLR4-Plugins-for-NetBeans/blob/master/api.md
- and I hope to have a continuous build w/ javadocs up soon).

NetBeans lexer and parser APIs have straightforward support for this - see
LanguagePath and the method on Parser.Result that takes an integer and
gives you a Parser.Result for an embedded language.

Done right, supporting an embedded language would be as simple as

@EmbeddedLanguage("text/x-java")
public static final RegionsKey THE_KEY = ...

(the generic language support API revolves around defining typed keys, and
then extracting what you're actually going to use from the parse tree as
character ranges with any data you need tied to those ranges, and then you
can retrieve the actual results from a parser result when a file is parsed).

That's been on my todo list too - the original antlr plugin author had
included a crude Antlr grammar for Java to do that, which isn't a terribly
sensible way to do it when you have a really good Java parser available for
use.

-Tim


On Tue, Oct 15, 2019 at 6:16 AM Peter Cheung  wrote:

> Dear All
>I have developed a module (https://gitlab.com/mcheung63/netbeans-antlr)
> for antlr, it provides antlr grammar syntax highlight, but it is not
> perfect. I want to enhance it but problem is : antlr supports "embed
> action", which is in Java, so two languages in same file.
>
>To provide the best syntax highlight, i need to send those embed
> actions to "java lexer", this point has no problem to me. But Is there
> anyway merge those tokens (java-lexer) back to the one (antlr-lexer) which
> used by netbeans to provide syntax highlight?
>
> Is there any way to provide syntax highlight but not using lexer? Let
> say i want to hight the second line from character 2-4 in red. Whatever the
> text is, i just want to highlight those positions, is it possible?
>
> Thanks
> From Peter
>
>
>

--
http://timboudreau.com


Re: What is the correct way to install the modules in current computer

2019-10-15 Thread Peter Cheung
Thanks

From: Laszlo Kishalmi 
Sent: Tuesday, October 15, 2019 9:55 PM
To: dev@netbeans.apache.org 
Subject: Re: What is the correct way to install the modules in current computer

Just create an NBM from the module, then install that NBM as a
downloaded one.

Other solution:

Create the NBM-s in the build directory you going to find an
updates.xml. Get the file: url of that updates.xml and add it as a
custom update center to the ide. This way you can even update the your
module and it can easily updated from the Available updates...

On 10/15/19 12:21 AM, Peter Cheung wrote:
> Dear Geertjan
>  Yes, i debug my module in different instance. But I feel my module is 
> quite stable now, so i want to do UAT for myself by installing it to my 
> netbeans. So far i do "Install/Reload in Development IDE", then netbeans 
> hangs, then i kill the process and restart it. It is fine to me now but just 
> want to know how people do that.
> Thanks
>  From Peter
> 
> From: Geertjan Wielenga 
> Sent: Tuesday, October 15, 2019 3:16 PM
> To: dev 
> Subject: Re: What is the correct way to install the modules in current 
> computer
>
> Well, you're going to need to provide more info, if you want that fixed --
> log messages.
>
> Also, it is better to always run a module into a different instance of
> NetBeans, which you can also do by right-clicking the module and choosing
> that option.
>
> Gj
>
> On Tue, Oct 15, 2019 at 9:11 AM Peter Cheung  wrote:
>
>> Hi Guys
>> When you developing modules, you must want to install it locally when
>> it reach a stable stage. How you do it? If i click "Install/Reload in
>> Development IDE", the netbeans will hangs, so i believe it is not the
>> recommended way.
>> Thanks
>>  From Peter
>>

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

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





Syntax highlighting question

2019-10-15 Thread Peter Cheung
Dear All
   I have developed a module (https://gitlab.com/mcheung63/netbeans-antlr) for 
antlr, it provides antlr grammar syntax highlight, but it is not perfect. I 
want to enhance it but problem is : antlr supports "embed action", which is in 
Java, so two languages in same file.

   To provide the best syntax highlight, i need to send those embed actions to 
"java lexer", this point has no problem to me. But Is there anyway merge those 
tokens (java-lexer) back to the one (antlr-lexer) which used by netbeans to 
provide syntax highlight?

Is there any way to provide syntax highlight but not using lexer? Let say i 
want to hight the second line from character 2-4 in red. Whatever the text is, 
i just want to highlight those positions, is it possible?

Thanks
>From Peter




Re: What is the correct way to install the modules in current computer

2019-10-15 Thread Peter Cheung
Thanks Gj. UAT I mean user acceptance test.

Thanks
>From Peter (System Architect, Quantr Limited)


From: Geertjan Wielenga 
Sent: Tuesday, October 15, 2019 3:24:47 PM
To: dev 
Subject: Re: What is the correct way to install the modules in current computer

I would recommend you don't do that, you deploy it to a new instance. I
don't know what UAT is. You can also simply install the NBM file, like any
other NBM file.

Gj

On Tue, Oct 15, 2019 at 9:21 AM Peter Cheung  wrote:

> Dear Geertjan
> Yes, i debug my module in different instance. But I feel my module is
> quite stable now, so i want to do UAT for myself by installing it to my
> netbeans. So far i do "Install/Reload in Development IDE", then netbeans
> hangs, then i kill the process and restart it. It is fine to me now but
> just want to know how people do that.
> Thanks
> From Peter
> 
> From: Geertjan Wielenga 
> Sent: Tuesday, October 15, 2019 3:16 PM
> To: dev 
> Subject: Re: What is the correct way to install the modules in current
> computer
>
> Well, you're going to need to provide more info, if you want that fixed --
> log messages.
>
> Also, it is better to always run a module into a different instance of
> NetBeans, which you can also do by right-clicking the module and choosing
> that option.
>
> Gj
>
> On Tue, Oct 15, 2019 at 9:11 AM Peter Cheung 
> wrote:
>
> > Hi Guys
> >When you developing modules, you must want to install it locally when
> > it reach a stable stage. How you do it? If i click "Install/Reload in
> > Development IDE", the netbeans will hangs, so i believe it is not the
> > recommended way.
> > Thanks
> > From Peter
> >
>


Re: What is the correct way to install the modules in current computer

2019-10-15 Thread Peter Cheung
Dear Geertjan
Yes, i debug my module in different instance. But I feel my module is quite 
stable now, so i want to do UAT for myself by installing it to my netbeans. So 
far i do "Install/Reload in Development IDE", then netbeans hangs, then i kill 
the process and restart it. It is fine to me now but just want to know how 
people do that.
Thanks
>From Peter

From: Geertjan Wielenga 
Sent: Tuesday, October 15, 2019 3:16 PM
To: dev 
Subject: Re: What is the correct way to install the modules in current computer

Well, you're going to need to provide more info, if you want that fixed --
log messages.

Also, it is better to always run a module into a different instance of
NetBeans, which you can also do by right-clicking the module and choosing
that option.

Gj

On Tue, Oct 15, 2019 at 9:11 AM Peter Cheung  wrote:

> Hi Guys
>When you developing modules, you must want to install it locally when
> it reach a stable stage. How you do it? If i click "Install/Reload in
> Development IDE", the netbeans will hangs, so i believe it is not the
> recommended way.
> Thanks
> From Peter
>


What is the correct way to install the modules in current computer

2019-10-15 Thread Peter Cheung
Hi Guys
   When you developing modules, you must want to install it locally when it 
reach a stable stage. How you do it? If i click "Install/Reload in Development 
IDE", the netbeans will hangs, so i believe it is not the recommended way.
Thanks
>From Peter


Re: energy consumption

2019-10-15 Thread Peter Cheung
i am using SSD.

Thanks
>From Peter (System Architect, Quantr Limited)


From: Tim Boudreau 
Sent: Tuesday, October 15, 2019 1:40:28 PM
To: dev@netbeans.apache.org 
Subject: Re: energy consumption

SSD or "spinning rust" disk?  That could make a big difference, though the
GPU issue likely has something to do with it.

-Tim

On Sun, Oct 13, 2019 at 6:06 PM Peter Cheung  wrote:

> Hi All
> Netbeans 11.1 eat up the notebook battery so fast. My macbook pro 15
> can only stand for 1.5 hour max. Does the group has any plan to optimize it?
> Thanks
> From Peter
>


--
http://timboudreau.com


Re: energy consumption

2019-10-13 Thread Peter Cheung
Thank you all gentlemen

From: Jaroslav Tulach 
Sent: Monday, October 14, 2019 11:58 AM
To: dev 
Subject: Re: energy consumption

http://wiki.netbeans.org/FaqProfileMeNow
-jt

po 14. 10. 2019 v 4:51 odesílatel Eirik Bakke  napsal:

> This could be due to any number of issues that cause high CPU
> utilization--it might be very specific to your use case.
>
> So the first step would be to identify cases where you see NetBeans is
> using a lot of CPU resources, and try to figure out what is going on in
> each case.
>
> -- Eirik
>
> -Original Message-
> From: Peter Cheung 
> Sent: Sunday, October 13, 2019 6:06 PM
> To: dev@netbeans.apache.org
> Subject: energy consumption
>
> Hi All
> Netbeans 11.1 eat up the notebook battery so fast. My macbook pro 15
> can only stand for 1.5 hour max. Does the group has any plan to optimize it?
> Thanks
> From Peter
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: dev-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>


Re: energy consumption

2019-10-13 Thread Peter Cheung
Hi, my macbook pro is 2016 early.


Thanks
From Peter

From: Steve Hannah 
Sent: Monday, October 14, 2019 9:33 AM
To: dev@netbeans.apache.org 
Subject: Re: energy consumption

Curious what year MacBook Pro?  I have a 2012  that really churns for
netbeans.  And a 2015 that runs with no issues.  Have never been able to
narrow down why the 2012 has to work so hard but I think it’s Java related
and not Netbeans specific.

On Sun, Oct 13, 2019 at 5:56 PM Scott Palmer  wrote:

> This is likely due to a bug that causes the Swing framework to use the
> high performance graphics chip instead of the integrated graphics chip.
>
> Unfortunately, I think the way that the NetBeans launcher works, the bug
> is unavoidable. The process that is using the CPU is not the main process
> of the NetBeans application bundle. I think that makes the workaround
> ineffective.
>
> Scott
>
> > On Oct 13, 2019, at 6:06 PM, Peter Cheung  wrote:
> >
> > Hi All
> >Netbeans 11.1 eat up the notebook battery so fast. My macbook pro 15
> can only stand for 1.5 hour max. Does the group has any plan to optimize it?
> > Thanks
> > From Peter
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: dev-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
> --
Steve Hannah
Web Lite Solutions Corp.


energy consumption

2019-10-13 Thread Peter Cheung
Hi All
Netbeans 11.1 eat up the notebook battery so fast. My macbook pro 15 can 
only stand for 1.5 hour max. Does the group has any plan to optimize it?
Thanks
>From Peter


Re: nbm, from ant to maven, still hand

2019-10-10 Thread Peter Cheung
sorry, typo in subject, i mean hang, not hand

From: Peter Cheung 
Sent: Friday, October 11, 2019 2:46 AM
To: dev@netbeans.apache.org 
Subject: nbm, from ant to maven, still hand

Hi
   I have rewrite my MavenRunner plugin from ant to maven, then i install it to 
my local netbeans, after a while (a few times i use netbenas), netbeans hang. 
This problem has been confused for a long time. Any hint? I check out the 
netbeans log, i don't see any wried thing.

https://gitlab.com/mcheung63/MavenRunner

Thanks
>From Peter


nbm, from ant to maven, still hand

2019-10-10 Thread Peter Cheung
Hi
   I have rewrite my MavenRunner plugin from ant to maven, then i install it to 
my local netbeans, after a while (a few times i use netbenas), netbeans hang. 
This problem has been confused for a long time. Any hint? I check out the 
netbeans log, i don't see any wried thing.

https://gitlab.com/mcheung63/MavenRunner

Thanks
>From Peter


Re: nbm-maven-plugin detected wrong path

2019-10-10 Thread Peter Cheung
Thank you Alessandro & Eric


From: Eric Barboni 
Sent: Thursday, October 10, 2019 4:49 PM
To: dev@netbeans.apache.org 
Subject: RE: nbm-maven-plugin detected wrong path

Hi Peter,

 You can put the netbeans.installation parameter in the settings.xml so it's
not in the pom. (resolve project problem should appears)

 If you plan to give plugin to others. You will give them nbm file they will
install and they will not have to change their settings.
 You can install/reload also your plugin to test this behavior.

Regards
Eric

-Message d'origine-
De : Peter Cheung 
Envoyé : jeudi 10 octobre 2019 08:49
À : dev@netbeans.apache.org
Objet : Re: nbm-maven-plugin detected wrong path

Hi All
   I check the source code of nbm-maven-plugin
https://github.com/mojohaus/nbm-maven-plugin/blob/4f25f6a3f80f97a0fd9986b7df
38e7e9ed58d263/nbm-maven-plugin/src/main/java/org/codehaus/mojo/nbm/RunNetBe
ansMojo.java . It has no code to set the variable "netbeans.installation",
so it probably netbeans pass this var to it. Is there any UI/tool/whatever i
can view the value of this variable?
thanks
Peter
____
From: Peter Cheung 
Sent: Thursday, October 10, 2019 2:37 PM
To: dev@netbeans.apache.org 
Subject: nbm-maven-plugin detected wrong path

Hi
Why my nbm-maven-plugin is detecting a wrong path, so when i run the
netbeans module, it said:

Failed executing NetBeans: Error while executing process. Cannot run program
"/Users/peter/workspace/netbeans-quick-outline/VALUE/bin/netbeans": error=2,
No such file or directory

When i click the about dialog, the "user directory" path is correct. I don't
want to specific  in pom.xml, because not everyone
using same installation path.

Please tell me how to fix?


Thanks
>From Peter


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

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





Re: Can anyone give me a help about developing antlr formatter

2019-10-10 Thread Peter Cheung
Hey Mario
   Yes, i am from Hong Kong. Why come here? Business trip?
Thanks
>From Peter

From: Mario Schroeder 
Sent: Thursday, October 10, 2019 3:48 PM
To: dev@netbeans.apache.org 
Subject: Re: Can anyone give me a help about developing antlr formatter

Peter, you are from Hong Kong?! What a coincidence that I will be there
within a week. Despite all the issues, I'm looking forward.
Sorry for the off topic.

Am Do., 10. Okt. 2019 um 08:35 Uhr schrieb Peter Cheung <
mcheun...@hotmail.com>:

> Dear Tim
> You are a great people and full of passion. In my home town (Hong
> Kong), people just "use" open source, not contributing it.
> Thanks
> From Peter
> 
> From: Tim Boudreau 
> Sent: Wednesday, October 9, 2019 1:42 PM
> To: dev@netbeans.apache.org 
> Subject: Re: Can anyone give me a help about developing antlr formatter
>
> Okay.  If you'd like to try some stuff, I could hook you up with some
> modules.  Antlr support - syntax highlighting, navigator panels, syntax
> tree views, has been working for a while;  formatting is pretty solid now.
> I've spent the last week stabilizing the "live preview" functionality,
> which actually generates NetBeans language support with syntax highlighting
> for *the grammar you are currently editing* - so you can have a syntax
> highlighted preview, and associate a file extension with that grammar and
> open those files and interact with them with full IDE support that is
> updated whenever you edit the grammar.
>
> Basically the PITA with developing Antlr grammars is when you break some
> rule that worked, change a whole bunch of other stuff before you know you
> broke it, and then have to figure out which thing you did caused the
> problem.  So being able to visually, and instantly, see if something is
> broken seems like a basic thing that's needed to make grammar development
> much less painful.
>
> Here's a screen shot:
> https://timboudreau.com/files/screen/10-09-2019_01-39-44.png
>
> All that gets a bit complex:
>
>  - User edits the grammar file
>  - Listener on the grammar file notices and tells highlighters of documents
> in the language of that grammar to request a reparse
>  - They ask for a new parse from a parser which
> - Is actually going to run code in an isolated classloader that loads
> from an in-memory filesystem where the grammar and generated analyzer code
> was compiled
> - Notices that the grammar file - whose document is mapped into that
> in-memory filesystem - has changed
> - Initiates a new run of Antlr generating parser and lexer
> - Compiles them into that memory filesystem
> - Generates the source for a thing that will call that parser with
> document contents, and retrieve the tokens, parse tree, etc. copied into
> proxy objects so the classloader does not leak types
> - Creates a new isolated classloader over the class output for all that
> - Replaces that classloader in the proxy parser
> - Passes the document text into that parser, extracts the proxied parse
> tree and wraps that in a NetBeans Parser.Result
>
> The good news is all that can happen in < 100ms.  It works, but I've been
> chasing bugs in the choreography of that process to ensure the new parse
> runs against the right version of the grammar - each layer of that will use
> the previous result if nothing has changed but the input text, and it works
> out to being a big chain of lists of weakly referenced susbscribers to
> things that subscribe to other things (i.e. the parser subscribes to
> replacement of the classloader environment; the highlighters subscribe to
> changes on the parser).
>
> It requires a few hacks that will probably get turned into patches -
> there's no way via API to get the cache for Source objects for the
> in-language document to invalidate its cached parser results because *some
> other document* changed, so that has to be done via reflection;  and
> similarly, there is no direct way to force a Language instance to be
> discarded by its LanguageHierarchy, but if you don't, it will keep a cache
> of token ids that will be completely wrong (particularly if the grammar is
> unparseable and you get a lexer with a dummy set of token ids with one
> token, flip back to a valid language, and back again, which is the normal
> state of life in an IDE).
>
> But for basic doing-stuff-with-Antlr it's in decent shape, and it's all
> factored into many separate modules, so perhaps I could get some out there.
>
> -Tim
>
>
>
>
>
>
>
>
>
>
>
>
> On Wed, Oct 2, 2019 at 2:08 AM Peter Cheung  wrote:
>
> > Dear Tim
> >Sorry i am doing my own antlr plugin
> > https://gitlab.com/mcheung63/netbeans-antlr to support my compiler
> > development which using antlr. If you plugin can well format antlr, then
> i
> > can focus my compiler rather than antlr in netbeans.
> > thanks
> > Peter
> >
> >
>
> --
> http://timboudreau.com
>


Re: nbm-maven-plugin detected wrong path

2019-10-10 Thread Peter Cheung
Hi All
   I check the source code of nbm-maven-plugin 
https://github.com/mojohaus/nbm-maven-plugin/blob/4f25f6a3f80f97a0fd9986b7df38e7e9ed58d263/nbm-maven-plugin/src/main/java/org/codehaus/mojo/nbm/RunNetBeansMojo.java
 . It has no code to set the variable "netbeans.installation", so it probably 
netbeans pass this var to it. Is there any UI/tool/whatever i can view the 
value of this variable?
thanks
Peter
____
From: Peter Cheung 
Sent: Thursday, October 10, 2019 2:37 PM
To: dev@netbeans.apache.org 
Subject: nbm-maven-plugin detected wrong path

Hi
Why my nbm-maven-plugin is detecting a wrong path, so when i run the 
netbeans module, it said:

Failed executing NetBeans: Error while executing process. Cannot run program 
"/Users/peter/workspace/netbeans-quick-outline/VALUE/bin/netbeans": error=2, No 
such file or directory

When i click the about dialog, the "user directory" path is correct. I don't 
want to specific  in pom.xml, because not everyone using 
same installation path.

Please tell me how to fix?


Thanks
>From Peter


nbm-maven-plugin detected wrong path

2019-10-10 Thread Peter Cheung
Hi
Why my nbm-maven-plugin is detecting a wrong path, so when i run the 
netbeans module, it said:

Failed executing NetBeans: Error while executing process. Cannot run program 
"/Users/peter/workspace/netbeans-quick-outline/VALUE/bin/netbeans": error=2, No 
such file or directory

When i click the about dialog, the "user directory" path is correct. I don't 
want to specific  in pom.xml, because not everyone using 
same installation path.

Please tell me how to fix?


Thanks
>From Peter


Re: maven-compiler-plugin problem

2019-10-10 Thread Peter Cheung
I was creating the project using Netbeans 11.1


Thanks
>From Peter

From: Eric Barboni 
Sent: Tuesday, October 8, 2019 12:25 AM
To: dev@netbeans.apache.org 
Subject: RE: maven-compiler-plugin problem

Hi,
 Not sure what to do.

 Peter what was your path of creating your project, you just use NetBeans
or  use a webpage somewhere as starting point ?

Maybe redirect from mojohaus website can be set now that we have website for
nbmplugin.
New website, as well as the old one are Generated by maven but as not
specific JIRA it would catch all changelog for NetBeans useless.
There is also a relocation mechanism in maven to make clear the change of
groupid.

Maybe we should improve NetBeans itself to detect latest version of the
plugin.

Best Regards
Eric

-Message d'origine-
De : Peter Cheung 
Envoyé : lundi 7 octobre 2019 15:48
À : dev@netbeans.apache.org
Objet : Re: maven-compiler-plugin problem

Dear Gj
Sorry i am too newbie, i don't know. Hope Eric can answer.
Thanks
>From Peter

From: Geertjan Wielenga 
Sent: Monday, October 7, 2019 4:54 PM
To: dev@netbeans.apache.org 
Subject: Re: maven-compiler-plugin problem

Where can we clearly document this on netbeans.apache.org?

Gj

On Mon, 7 Oct 2019 at 10:49, Eric Barboni  wrote:

> Hi,
>
> You should change the group,artifact,version to match the new plugin.
> Donation has been completed since a while, and a release occurs in june.
>
> org.apache.netbeans.utilities
> nbm-maven-plugin
> 4.2
>
> Regards
> Eric
>
> -----Message d'origine-
> De : Peter Cheung  Envoyé : dimanche 6 octobre
> 2019 05:17 À : dev@netbeans.apache.org Objet : Re:
> maven-compiler-plugin problem
>
> Thank you very much Robert
>
> 
> From: Robert Scholte 
> Sent: Saturday, October 5, 2019 11:29 PM
> To: dev@netbeans.apache.org 
> Subject: Re: maven-compiler-plugin problem
>
> Based on the message and the stacktrace it is actually a problem with
> the
> org.codehaus.mojo:nbm-maven-plugin:4.1 plugin.
> It is using a version of ASM that doesn't understand the
> bytecodeversion of Java 9.
>
> https://www.mojohaus.org/plugins.html# shows you the plugins has been
> moved to http://bits.netbeans.org/mavenutilities/nbm-maven-plugin/
>
>  From here the documentation is a little bit tricky, but you can look
> for the manifest goal.
> http://bits.netbeans.org/mavenutilities/nbm-maven-plugin/manifest-mojo
> .html
>
> Here you see that they changes the groupId to
> org.apache.netbeans.utilities
>
> Hopefully version 4.2 will fix it, otherwise
> https://github.com/apache/netbeans-mavenutils-nbm-maven-plugin
> describes how to report a bug/improvement.
>
> thanks,
> Robert
>
> On Sat, 05 Oct 2019 14:18:32 +0200, Peter Cheung
> 
> wrote:
>
> > Hi
> > I have a maven library which is used by a maven netbeans module
> > project.
> >
> > This is ok:
> >
> >   
> >maven-compiler-plugin
> >3.8.1
> >
> > 1.8
> > 1.8
> >
> >   
> >
> > But if change to 1.9. It has exception when building the netbeans
> > module
> >
> >   
> >maven-compiler-plugin
> >3.8.1
> >
> > 1.9
> > 1.9
> >
> >   
> >
> >
> > Error:
> >
> >
> > [INFO]
> > 
> > --
> > --
> >
> > [INFO] BUILD FAILURE
> >
> > [INFO]
> > 
> > --
> > --
> >
> > [INFO] Total time:  7.443 s
> >
> > [INFO] Finished at: 2019-10-05T20:18:06+08:00
> >
> > [INFO]
> > 
> > --
> > --
> >
> > [ERROR] Failed to execute goal
> > org.codehaus.mojo:nbm-maven-plugin:4.1:manifest (default-manifest)
> > on project netbeans-antlr: Execution default-manifest of goal
> > org.codehaus.mojo:nbm-maven-plugin:4.1:manifest failed.:
> > IllegalArgumentException -> [Help 1]
> >
> > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> > execute goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest
> > (default-manifest) on project netbeans-antlr: Execution
> > default-manifest of goal
> > org.codehaus.mojo:nbm-maven-plugin:4.1:manifest
> failed.
> >
> > at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> > (MojoExecutor.java:215)
> >
> > at org.apache.maven.lifecycle.intern

Re: Can anyone give me a help about developing antlr formatter

2019-10-10 Thread Peter Cheung
Dear Tim
You are a great people and full of passion. In my home town (Hong Kong), 
people just "use" open source, not contributing it.
Thanks
>From Peter

From: Tim Boudreau 
Sent: Wednesday, October 9, 2019 1:42 PM
To: dev@netbeans.apache.org 
Subject: Re: Can anyone give me a help about developing antlr formatter

Okay.  If you'd like to try some stuff, I could hook you up with some
modules.  Antlr support - syntax highlighting, navigator panels, syntax
tree views, has been working for a while;  formatting is pretty solid now.
I've spent the last week stabilizing the "live preview" functionality,
which actually generates NetBeans language support with syntax highlighting
for *the grammar you are currently editing* - so you can have a syntax
highlighted preview, and associate a file extension with that grammar and
open those files and interact with them with full IDE support that is
updated whenever you edit the grammar.

Basically the PITA with developing Antlr grammars is when you break some
rule that worked, change a whole bunch of other stuff before you know you
broke it, and then have to figure out which thing you did caused the
problem.  So being able to visually, and instantly, see if something is
broken seems like a basic thing that's needed to make grammar development
much less painful.

Here's a screen shot:
https://timboudreau.com/files/screen/10-09-2019_01-39-44.png

All that gets a bit complex:

 - User edits the grammar file
 - Listener on the grammar file notices and tells highlighters of documents
in the language of that grammar to request a reparse
 - They ask for a new parse from a parser which
- Is actually going to run code in an isolated classloader that loads
from an in-memory filesystem where the grammar and generated analyzer code
was compiled
- Notices that the grammar file - whose document is mapped into that
in-memory filesystem - has changed
- Initiates a new run of Antlr generating parser and lexer
- Compiles them into that memory filesystem
- Generates the source for a thing that will call that parser with
document contents, and retrieve the tokens, parse tree, etc. copied into
proxy objects so the classloader does not leak types
- Creates a new isolated classloader over the class output for all that
- Replaces that classloader in the proxy parser
- Passes the document text into that parser, extracts the proxied parse
tree and wraps that in a NetBeans Parser.Result

The good news is all that can happen in < 100ms.  It works, but I've been
chasing bugs in the choreography of that process to ensure the new parse
runs against the right version of the grammar - each layer of that will use
the previous result if nothing has changed but the input text, and it works
out to being a big chain of lists of weakly referenced susbscribers to
things that subscribe to other things (i.e. the parser subscribes to
replacement of the classloader environment; the highlighters subscribe to
changes on the parser).

It requires a few hacks that will probably get turned into patches -
there's no way via API to get the cache for Source objects for the
in-language document to invalidate its cached parser results because *some
other document* changed, so that has to be done via reflection;  and
similarly, there is no direct way to force a Language instance to be
discarded by its LanguageHierarchy, but if you don't, it will keep a cache
of token ids that will be completely wrong (particularly if the grammar is
unparseable and you get a lexer with a dummy set of token ids with one
token, flip back to a valid language, and back again, which is the normal
state of life in an IDE).

But for basic doing-stuff-with-Antlr it's in decent shape, and it's all
factored into many separate modules, so perhaps I could get some out there.

-Tim












On Wed, Oct 2, 2019 at 2:08 AM Peter Cheung  wrote:

> Dear Tim
>Sorry i am doing my own antlr plugin
> https://gitlab.com/mcheung63/netbeans-antlr to support my compiler
> development which using antlr. If you plugin can well format antlr, then i
> can focus my compiler rather than antlr in netbeans.
> thanks
> Peter
>
>

--
http://timboudreau.com


Re: maven-compiler-plugin problem

2019-10-07 Thread Peter Cheung
Dear Gj
Sorry i am too newbie, i don't know. Hope Eric can answer.
Thanks
>From Peter

From: Geertjan Wielenga 
Sent: Monday, October 7, 2019 4:54 PM
To: dev@netbeans.apache.org 
Subject: Re: maven-compiler-plugin problem

Where can we clearly document this on netbeans.apache.org?

Gj

On Mon, 7 Oct 2019 at 10:49, Eric Barboni  wrote:

> Hi,
>
> You should change the group,artifact,version to match the new plugin.
> Donation has been completed since a while, and a release occurs in june.
>
> org.apache.netbeans.utilities
> nbm-maven-plugin
> 4.2
>
> Regards
> Eric
>
> -Message d'origine-
> De : Peter Cheung 
> Envoyé : dimanche 6 octobre 2019 05:17
> À : dev@netbeans.apache.org
> Objet : Re: maven-compiler-plugin problem
>
> Thank you very much Robert
>
> 
> From: Robert Scholte 
> Sent: Saturday, October 5, 2019 11:29 PM
> To: dev@netbeans.apache.org 
> Subject: Re: maven-compiler-plugin problem
>
> Based on the message and the stacktrace it is actually a problem with the
> org.codehaus.mojo:nbm-maven-plugin:4.1 plugin.
> It is using a version of ASM that doesn't understand the bytecodeversion of
> Java 9.
>
> https://www.mojohaus.org/plugins.html# shows you the plugins has been
> moved
> to http://bits.netbeans.org/mavenutilities/nbm-maven-plugin/
>
>  From here the documentation is a little bit tricky, but you can look for
> the manifest goal.
> http://bits.netbeans.org/mavenutilities/nbm-maven-plugin/manifest-mojo.html
>
> Here you see that they changes the groupId to org.apache.netbeans.utilities
>
> Hopefully version 4.2 will fix it, otherwise
> https://github.com/apache/netbeans-mavenutils-nbm-maven-plugin
> describes how to report a bug/improvement.
>
> thanks,
> Robert
>
> On Sat, 05 Oct 2019 14:18:32 +0200, Peter Cheung 
> wrote:
>
> > Hi
> > I have a maven library which is used by a maven netbeans module
> > project.
> >
> > This is ok:
> >
> >   
> >maven-compiler-plugin
> >3.8.1
> >
> > 1.8
> > 1.8
> >
> >   
> >
> > But if change to 1.9. It has exception when building the netbeans
> > module
> >
> >   
> >maven-compiler-plugin
> >3.8.1
> >
> > 1.9
> > 1.9
> >
> >   
> >
> >
> > Error:
> >
> >
> > [INFO]
> > --
> > --
> >
> > [INFO] BUILD FAILURE
> >
> > [INFO]
> > --
> > --
> >
> > [INFO] Total time:  7.443 s
> >
> > [INFO] Finished at: 2019-10-05T20:18:06+08:00
> >
> > [INFO]
> > --
> > --
> >
> > [ERROR] Failed to execute goal
> > org.codehaus.mojo:nbm-maven-plugin:4.1:manifest (default-manifest) on
> > project netbeans-antlr: Execution default-manifest of goal
> > org.codehaus.mojo:nbm-maven-plugin:4.1:manifest failed.:
> > IllegalArgumentException -> [Help 1]
> >
> > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> > execute goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest
> > (default-manifest) on project netbeans-antlr: Execution
> > default-manifest of goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest
> failed.
> >
> > at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> > (MojoExecutor.java:215)
> >
> > at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> > (MojoExecutor.java:156)
> >
> > at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> > (MojoExecutor.java:148)
> >
> > at
> > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProjec
> > t
> > (LifecycleModuleBuilder.java:117)
> >
> > at
> > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProjec
> > t
> > (LifecycleModuleBuilder.java:81)
> >
> > at
> > org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThrea
> > dedBuilder.build
> > (SingleThreadedBuilder.java:56)
> >
> > at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
> > (LifecycleStarter.java:128)
> >
> > at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
> >
> > at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
> >
> > at org.apache.maven.DefaultMaven.execute (Defaul

Re: maven-compiler-plugin problem

2019-10-05 Thread Peter Cheung
Thank you very much Robert


From: Robert Scholte 
Sent: Saturday, October 5, 2019 11:29 PM
To: dev@netbeans.apache.org 
Subject: Re: maven-compiler-plugin problem

Based on the message and the stacktrace it is actually a problem with the
org.codehaus.mojo:nbm-maven-plugin:4.1 plugin.
It is using a version of ASM that doesn't understand the bytecodeversion
of Java 9.

https://www.mojohaus.org/plugins.html# shows you the plugins has been
moved to
http://bits.netbeans.org/mavenutilities/nbm-maven-plugin/

 From here the documentation is a little bit tricky, but you can look for
the manifest goal.
http://bits.netbeans.org/mavenutilities/nbm-maven-plugin/manifest-mojo.html

Here you see that they changes the groupId to org.apache.netbeans.utilities

Hopefully version 4.2 will fix it, otherwise
https://github.com/apache/netbeans-mavenutils-nbm-maven-plugin
describes how to report a bug/improvement.

thanks,
Robert

On Sat, 05 Oct 2019 14:18:32 +0200, Peter Cheung 
wrote:

> Hi
> I have a maven library which is used by a maven netbeans module
> project.
>
> This is ok:
>
>   
>maven-compiler-plugin
>3.8.1
>
> 1.8
> 1.8
>
>   
>
> But if change to 1.9. It has exception when building the netbeans module
>
>   
>maven-compiler-plugin
>3.8.1
>
> 1.9
> 1.9
>
>   
>
>
> Error:
>
>
> [INFO]
> 
>
> [INFO] BUILD FAILURE
>
> [INFO]
> 
>
> [INFO] Total time:  7.443 s
>
> [INFO] Finished at: 2019-10-05T20:18:06+08:00
>
> [INFO]
> 
>
> [ERROR] Failed to execute goal
> org.codehaus.mojo:nbm-maven-plugin:4.1:manifest (default-manifest) on
> project netbeans-antlr: Execution default-manifest of goal
> org.codehaus.mojo:nbm-maven-plugin:4.1:manifest failed.:
> IllegalArgumentException -> [Help 1]
>
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> execute goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest
> (default-manifest) on project netbeans-antlr: Execution default-manifest
> of goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest failed.
>
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:215)
>
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:156)
>
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:148)
>
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:117)
>
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:81)
>
> at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
> (SingleThreadedBuilder.java:56)
>
> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
> (LifecycleStarter.java:128)
>
> at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
>
> at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
>
> at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
>
> at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
>
> at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
>
> at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
>
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native
> Method)
>
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:62)
>
> at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke (Method.java:567)
>
> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
> (Launcher.java:289)
>
> at org.codehaus.plexus.classworlds.launcher.Launcher.launch
> (Launcher.java:229)
>
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
> (Launcher.java:415)
>
> at org.codehaus.plexus.classworlds.launcher.Launcher.main
> (Launcher.java:356)
>
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
> default-manifest of goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest
> failed.
>
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
> (DefaultBuildPluginManager.java:148)
>
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:210)
>
> at org.apache.maven.lifecycle.inter

maven-compiler-plugin problem

2019-10-05 Thread Peter Cheung
Hi
I have a maven library which is used by a maven netbeans module project.

This is ok:

  
   maven-compiler-plugin
   3.8.1
   
1.8
1.8
   
  

But if change to 1.9. It has exception when building the netbeans module

  
   maven-compiler-plugin
   3.8.1
   
1.9
1.9
   
  


Error:


[INFO] 

[INFO] BUILD FAILURE

[INFO] 

[INFO] Total time:  7.443 s

[INFO] Finished at: 2019-10-05T20:18:06+08:00

[INFO] 

[ERROR] Failed to execute goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest 
(default-manifest) on project netbeans-antlr: Execution default-manifest of 
goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest failed.: 
IllegalArgumentException -> [Help 1]

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.codehaus.mojo:nbm-maven-plugin:4.1:manifest (default-manifest) on project 
netbeans-antlr: Execution default-manifest of goal 
org.codehaus.mojo:nbm-maven-plugin:4.1:manifest failed.

at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:215)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:156)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:148)

at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:117)

at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:81)

at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
 (SingleThreadedBuilder.java:56)

at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
(LifecycleStarter.java:128)

at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)

at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)

at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)

at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)

at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)

at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)

at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

at jdk.internal.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:62)

at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke (Method.java:567)

at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
(Launcher.java:289)

at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
(Launcher.java:229)

at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
(Launcher.java:415)

at org.codehaus.plexus.classworlds.launcher.Launcher.main 
(Launcher.java:356)

Caused by: org.apache.maven.plugin.PluginExecutionException: Execution 
default-manifest of goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest failed.

at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
(DefaultBuildPluginManager.java:148)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:210)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:156)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:148)

at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:117)

at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:81)

at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
 (SingleThreadedBuilder.java:56)

at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
(LifecycleStarter.java:128)

at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)

at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)

at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)

at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)

at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)

at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)

at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

at jdk.internal.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:62)

at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke (Method.java:567)

at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
(Launcher.java:289)

at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
(Launcher.java:229)

at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 

Re: Can anyone give me a help about developing antlr formatter

2019-10-02 Thread Peter Cheung
Dear Tim
   Sorry i am doing my own antlr plugin 
https://gitlab.com/mcheung63/netbeans-antlr to support my compiler development 
which using antlr. If you plugin can well format antlr, then i can focus my 
compiler rather than antlr in netbeans.
thanks
Peter



Re: Can anyone give me a help about developing antlr formatter

2019-10-01 Thread Peter Cheung
I finally found an example 
https://github.com/iconmaster5326/SourceNetbeansPlugin/blob/cb739ae7d1017e4db88fe2e517bf3e8d816ca4e3/src/com/iconmaster/srcplugin/editor/SourceReformatFactory.java


Thanks
>From Peter

From: Peter Cheung 
Sent: Tuesday, September 24, 2019 8:07 PM
To: dev@netbeans.apache.org 
Subject: Re: Can anyone give me a help about developing antlr formatter

Thank you Tim

From: Tim Boudreau 
Sent: Monday, September 23, 2019 9:05 PM
To: dev@netbeans.apache.org 
Subject: Re: Can anyone give me a help about developing antlr formatter

The work in progress is on the "mavenize" branch here -
https://github.com/timboudreau/ANTLR4-Plugins-for-NetBeans - It is 44
modules (comprising generic support for generating most of a plugin for any
Antlr grammar from annotations, and then in antlr-editing-plugins, a suite
of modules for Antlr itself) :-)

There *was* an Antlr formatter, but this project started with working on an
exiting Antlr plugin I forked, evolved into generic Antlr support, and I'm
now in the process of reassembling the original Antlr-editing-only module
to eat my own dogfood, as a set of modules with all the features of the
original, plus lots more (like live-syntax highlighting of files in the
language of the grammar you're editing, which get updated when you edit the
grammar, visual syntax trees and more - one of the biggest PITA's of Antlr
development is writing a rule that overrides another rule and not knowing
it until long after you broke it and then trying to figure out *what* broke
it, so instant feedback as you edit a grammar is a necessity).

I haven't add formatting back in yet, though.  But I'll keep you posted.

-Tim

On Fri, Sep 20, 2019 at 1:17 AM Peter Cheung  wrote:

> Dear Tim
>Yes, i want to format antlr lang.
> Thanks
> From Peter
> 
> From: Tim Boudreau 
> Sent: Monday, September 16, 2019 7:48 AM
> To: dev@netbeans.apache.org 
> Subject: Re: Can anyone give me a help about developing antlr formatter
>
> I have some stuff under development that might be useful for that. You want
> to format a language that has an Antlr grammar, right?
>
> -Tim
>
> On Sun, Sep 15, 2019 at 11:43 AM Peter Cheung 
> wrote:
>
> > Hi All
> >  Can anyone give me a help about developing antlr formatter? Where i
> > can get an example to develop a custom formatter?
> > Thanks
> > From Peter
> >
> M
> --
> http://timboudreau.com
>


--
http://timboudreau.com


Re: Can anyone give me a help about developing antlr formatter

2019-09-24 Thread Peter Cheung
Thank you Tim

From: Tim Boudreau 
Sent: Monday, September 23, 2019 9:05 PM
To: dev@netbeans.apache.org 
Subject: Re: Can anyone give me a help about developing antlr formatter

The work in progress is on the "mavenize" branch here -
https://github.com/timboudreau/ANTLR4-Plugins-for-NetBeans - It is 44
modules (comprising generic support for generating most of a plugin for any
Antlr grammar from annotations, and then in antlr-editing-plugins, a suite
of modules for Antlr itself) :-)

There *was* an Antlr formatter, but this project started with working on an
exiting Antlr plugin I forked, evolved into generic Antlr support, and I'm
now in the process of reassembling the original Antlr-editing-only module
to eat my own dogfood, as a set of modules with all the features of the
original, plus lots more (like live-syntax highlighting of files in the
language of the grammar you're editing, which get updated when you edit the
grammar, visual syntax trees and more - one of the biggest PITA's of Antlr
development is writing a rule that overrides another rule and not knowing
it until long after you broke it and then trying to figure out *what* broke
it, so instant feedback as you edit a grammar is a necessity).

I haven't add formatting back in yet, though.  But I'll keep you posted.

-Tim

On Fri, Sep 20, 2019 at 1:17 AM Peter Cheung  wrote:

> Dear Tim
>Yes, i want to format antlr lang.
> Thanks
> From Peter
> 
> From: Tim Boudreau 
> Sent: Monday, September 16, 2019 7:48 AM
> To: dev@netbeans.apache.org 
> Subject: Re: Can anyone give me a help about developing antlr formatter
>
> I have some stuff under development that might be useful for that. You want
> to format a language that has an Antlr grammar, right?
>
> -Tim
>
> On Sun, Sep 15, 2019 at 11:43 AM Peter Cheung 
> wrote:
>
> > Hi All
> >  Can anyone give me a help about developing antlr formatter? Where i
> > can get an example to develop a custom formatter?
> > Thanks
> > From Peter
> >
> M
> --
> http://timboudreau.com
>


--
http://timboudreau.com


Re: Can anyone give me a help about developing antlr formatter

2019-09-19 Thread Peter Cheung
Dear Tim
   Yes, i want to format antlr lang.
Thanks
>From Peter

From: Tim Boudreau 
Sent: Monday, September 16, 2019 7:48 AM
To: dev@netbeans.apache.org 
Subject: Re: Can anyone give me a help about developing antlr formatter

I have some stuff under development that might be useful for that. You want
to format a language that has an Antlr grammar, right?

-Tim

On Sun, Sep 15, 2019 at 11:43 AM Peter Cheung  wrote:

> Hi All
>  Can anyone give me a help about developing antlr formatter? Where i
> can get an example to develop a custom formatter?
> Thanks
> From Peter
>
M
--
http://timboudreau.com


Can anyone give me a help about developing antlr formatter

2019-09-15 Thread Peter Cheung
Hi All
 Can anyone give me a help about developing antlr formatter? Where i can 
get an example to develop a custom formatter?
Thanks
>From Peter


Re: Newbie questions

2019-07-28 Thread Peter Cheung
thanks Peter Nabbefeld

From: Peter Nabbefeld 
Sent: Friday, July 26, 2019 3:46 PM
To: dev@netbeans.apache.org 
Subject: Re: Newbie questions

Then You might be interested in Visual Library tutorials, e.g.
https://platform.netbeans.org/tutorials/nbm-visual_library.html and more
available from https://netbeans.org/kb/trails/platform.html

Regards,
P.


Am 25.07.19 um 18:37 schrieb Peter Cheung:
> Dear Peter
>  I prefer not to use the traditional properties window. What i am doing 
> is to build a 'logic simulator' in netbeans for people to simulate their 
> logic-gates-design. Since the gates' logos are in square, so i want to create 
> my ideal panel layout.
>
>
> Thanks
>  From Peter
> 
> From: Peter Nabbefeld 
> Sent: Friday, July 26, 2019 12:25 AM
> To: dev@netbeans.apache.org 
> Subject: Re: Newbie questions
>
>
> Hello Peter,
>
> the cause for asking for context is just this: dependent on where You
> want a TopComponent to be used, it's usually managed differently. E.g.
> Palette windows etc. are usually used in the context of editing a
> specific file type.
>
> If I understand Your question correctly, You want to use a properties
> window like in the GUI builder? It seems, the properties window is just
> hidden for other files, You can e.g. open it using "Windows -> IDE Tools
> -> Properties".
>
> For property sheet extension, this tutorial might help:
> https://platform.netbeans.org/tutorials/nbm-property-editors.html
>
> Kind regards
> Peter
>
>
>
>
> Am 25.07.19 um 17:15 schrieb Peter Cheung:
>> I am not sure why my reason is so important, but i just want to do these:
>>
>>   How to maintain there is only one instance of a topcomponent window of 
>> a specific class?
>>   How to close all topcomponent of a specific class?
>>
>> OK, my reason is:
>>
>> when you open an editor, there is a property window, whatever how many 
>> editor you are opened, since there is only one active editor, so there is 
>> only one property window. If can't control only one instance of a 
>> topcomponent, how can we achieve this.
>>
>> I am not sure why you think it is so important to ask for my reason to solve 
>> a specific technical question. If people ask "how to solve my for-loop 
>> error", do we really need to know his reason to write his for-loop? Or I am 
>> thinking i am being discriminated.
>>
>> If people in here think i am disturbing, i can quit.
>>
>> Thanks
>>   From Peter
>> 
>> From: Eric Bresie 
>> Sent: Thursday, July 25, 2019 10:09 PM
>> To: Apache NetBeans 
>> Subject: Re: Re: Newbie questions
>>
>> http://www.catb.org/~esr/faqs/smart-questions.html
>>
>> Eric Bresie
>> ebre...@gmail.com
>>> On July 24, 2019 at 11:54:27 PM PDT, Geertjan Wielenga 
>>>  wrote:
>>> PS: Can you think hard about the subject line when you start a new thread?
>>>
>>> On Thu, Jul 25, 2019 at 8:53 AM Geertjan Wielenga 
>>> wrote:
>>>
>>>> More details needed, the context, the why, etc.
>>>>
>>>> Gj
>>>>
>>>> On Thu, Jul 25, 2019 at 6:35 AM Peter Cheung 
>>>> wrote:
>>>>
>>>>> Dear All
>>>>> How to maintain there is only one instance of a topcomponent window
>>>>> of a specific class?
>>>>> How to close all topcomponent of a specific class?
>>>>>
>>>>>
>>>>> Thanks
>>>>>   From Peter
>>>>>
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: dev-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: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org

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





Re: Re: Newbie questions

2019-07-25 Thread Peter Cheung
I am not sure why my reason is so important, but i just want to do these:

How to maintain there is only one instance of a topcomponent window of a 
specific class?
How to close all topcomponent of a specific class?

OK, my reason is:

when you open an editor, there is a property window, whatever how many editor 
you are opened, since there is only one active editor, so there is only one 
property window. If can't control only one instance of a topcomponent, how can 
we achieve this.

I am not sure why you think it is so important to ask for my reason to solve a 
specific technical question. If people ask "how to solve my for-loop error", do 
we really need to know his reason to write his for-loop? Or I am thinking i am 
being discriminated.

If people in here think i am disturbing, i can quit.

Thanks
>From Peter

From: Eric Bresie 
Sent: Thursday, July 25, 2019 10:09 PM
To: Apache NetBeans 
Subject: Re: Re: Newbie questions

http://www.catb.org/~esr/faqs/smart-questions.html

Eric Bresie
ebre...@gmail.com
> On July 24, 2019 at 11:54:27 PM PDT, Geertjan Wielenga  
> wrote:
> PS: Can you think hard about the subject line when you start a new thread?
>
> On Thu, Jul 25, 2019 at 8:53 AM Geertjan Wielenga 
> wrote:
>
> > More details needed, the context, the why, etc.
> >
> > Gj
> >
> > On Thu, Jul 25, 2019 at 6:35 AM Peter Cheung 
> > wrote:
> >
> > > Dear All
> > > How to maintain there is only one instance of a topcomponent window
> > > of a specific class?
> > > How to close all topcomponent of a specific class?
> > >
> > >
> > > Thanks
> > > From Peter
> > >
> >


Re: Congratulations to Neil!

2019-07-22 Thread Peter Cheung
Thanks great team

Thanks
>From Peter (System Architect, Quantr Limited)


From: Arvind Aprameya 
Sent: Tuesday, July 23, 2019 12:04:22 PM
To: dev@netbeans.apache.org
Subject: RE: Congratulations to Neil!

Congratulations Neil, kudos and great job . Super perseverance in making this 
release happen .

-Original Message-
From: David Green [mailto:dgreen...@gmail.com]
Sent: Tuesday, July 23, 2019 5:09 AM
To: dev@netbeans.apache.org
Subject: Re: Congratulations to Neil!

Congrats and thanks for leading the project into a new release cycle. Well done!

On Mon, Jul 22, 2019 at 6:28 AM Geertjan Wielenga 
wrote:

> Hi all,
>
> With the 11.1 release wrapped up, let's take a moment to thank Neil
> for his great work as release manager.
>
> We can and will evaluate the release in various ways, though the most
> important aspect of it is that it succeeded, we have our first release
> as top level Apache project, and no small reason for that is Neil
> pulling everything together and getting everyone to work together
> smoothly and painlessly.
>
> Plus, thanks to Neil we now have a predictable release cycle with
> quarterly releases — that is fantastic and something I’d never have thought 
> doable.
>
> I hope Neil will consider doing at least the 11.2 release too, since
> that will enable any kinks in the process to be ironed out in
> preparation for the next volunteer release manager, like Laszlo did
> two releases as well before him.
>
> Kind regards and congrats to all of us as well,
>
> Gj
>
--
Sent from a mobile device. Please excuse any typos.

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

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





Re: Re: HyperlinkProvider::performClickAction won't fire

2019-07-15 Thread Peter Cheung
Thank you Christian. I am too new to the dev community and not familar with 
Jira.

From: Christian Lenz 
Sent: Monday, July 15, 2019 9:21 PM
To: dev@netbeans.apache.org
Subject: AW: Re: HyperlinkProvider::performClickAction won't fire

Hey Peter,

please have a deeper look. If you really mean this bug, it is resolved, yes, 
but for NB 11.1 (See fix Version).

So it is not part of 11 nor with a patch or anything else. It will come with 
NetBeans 11.1


Cheers

Chris



Von: Peter Cheung
Gesendet: Montag, 15. Juli 2019 14:49
An: Apache NetBeans
Betreff: Re: Re: HyperlinkProvider::performClickAction won't fire

Yes. But the bug status is marked resolved, problem still happen in Netbeans 11


Thanks
>From Peter

From: Eric Bresie 
Sent: Saturday, July 13, 2019 8:44 PM
To: Apache NetBeans
Subject: Re: Re: HyperlinkProvider::performClickAction won't fire

Did you mean this https://issues.apache.org/jira/browse/NETBEANS-2343 ?

Eric Bresie
ebre...@gmail.com
> On July 13, 2019 at 3:47:26 AM CDT, Neil C Smith  
> wrote:
> On Sat, 13 Jul 2019 at 09:43, Peter Cheung  wrote:
> >
> > If i ctrl-click on some space/tab position, it fires. It seems netbeans 11 
> > eating the event when i ctrl-click on words. I am not sure.
>
> If this is what I think it is, please try in NB 11.1-beta4 later today.
>
> Thanks,
>
> Neil
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: dev-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>



Re: Re: HyperlinkProvider::performClickAction won't fire

2019-07-15 Thread Peter Cheung
Yes. But the bug status is marked resolved, problem still happen in Netbeans 11


Thanks
>From Peter

From: Eric Bresie 
Sent: Saturday, July 13, 2019 8:44 PM
To: Apache NetBeans
Subject: Re: Re: HyperlinkProvider::performClickAction won't fire

Did you mean this https://issues.apache.org/jira/browse/NETBEANS-2343 ?

Eric Bresie
ebre...@gmail.com
> On July 13, 2019 at 3:47:26 AM CDT, Neil C Smith  
> wrote:
> On Sat, 13 Jul 2019 at 09:43, Peter Cheung  wrote:
> >
> > If i ctrl-click on some space/tab position, it fires. It seems netbeans 11 
> > eating the event when i ctrl-click on words. I am not sure.
>
> If this is what I think it is, please try in NB 11.1-beta4 later today.
>
> Thanks,
>
> Neil
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: dev-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>


Re: HyperlinkProvider::performClickAction won't fire

2019-07-13 Thread Peter Cheung
If i ctrl-click on some space/tab position, it fires. It seems netbeans 11 
eating the event when i ctrl-click on words. I am not sure.


Thanks
>From Peter

From: Peter Cheung 
Sent: Saturday, July 13, 2019 4:38 PM
To: dev@netbeans.apache.org
Subject: HyperlinkProvider::performClickAction won't fire

Hi All
  HyperlinkProvider::performClickAction() won't fire even i force 
isHyperlinkPoint() to return true. Any hints?


Thanks
>From Peter


HyperlinkProvider::performClickAction won't fire

2019-07-13 Thread Peter Cheung
Hi All
  HyperlinkProvider::performClickAction() won't fire even i force 
isHyperlinkPoint() to return true. Any hints?


Thanks
>From Peter


Re: Is this design weird

2019-07-12 Thread Peter Cheung
Thanks Jan

From: Jan Lahoda 
Sent: Friday, July 12, 2019 3:48 AM
To: dev@netbeans.apache.org
Subject: Re: Is this design weird

FWIW:
https://github.com/apache/netbeans/pull/1369

Jan

On Thu, Jul 11, 2019 at 1:26 PM Christian Lenz 
wrote:

> FYI: https://issues.apache.org/jira/browse/NETBEANS-2343
>
>
> Cheers
>
> Chris
>
>
>
> Von: Peter Cheung
> Gesendet: Donnerstag, 11. Juli 2019 13:13
> An: dev
> Betreff: Re: Is this design weird
>
> is my subject misleading? being offence? or?
>
>
> Thanks
> From Peter
> 
> From: Geertjan Wielenga 
> Sent: Thursday, July 11, 2019 6:42 PM
> To: dev
> Subject: Re: Is this design weird
>
> Sorry, you're going to have to think harder about the subject lines of your
> e-mails. This is not good.
>
> Gj
>
> On Thu, Jul 11, 2019 at 12:37 PM Peter Cheung 
> wrote:
>
> > Hi
> >In mac, when i mouse over any word in editor and press "command" key,
> > even the word in comment, it will show highlight that word and show the
> > "click" cursor, but that word doesn't have "go to source" destination. So
> > even i click on it, it has no effect. If no effect, it shouldn't
> highlight
> > it and change the mouse cursor.
> >
> > Is it a weird design?
> >
> >
> > Thanks
> > From Peter
> >
>
>


HyperlinkProvider::isHyperlinkPoint returns wrong offset

2019-07-11 Thread Peter Cheung
Hi all
   My netbeans-antlr plugin supports jump to source feature, it works well in 
Netbeans 8.2. I upgrade it to Netbeans 11 without changing any code,  and I 
found HyperlinkProvider::isHyperlinkPoint giving me wrong offset. Any hints for 
it?

http://bits.netbeans.org/dev/javadoc/org-netbeans-modules-editor-lib/org/netbeans/lib/editor/hyperlink/spi/HyperlinkProvider.html
HyperlinkProvider (Editor Library) - 
bits.netbeans.org
This interface should be implemented by anyone who whats to provide 
hyperlinking functionality in the source code. There should be one provider 
instance per mime-type.
bits.netbeans.org


Thanks
>From Peter


Re: Is this design weird

2019-07-11 Thread Peter Cheung
is my subject misleading? being offence? or?


Thanks
>From Peter

From: Geertjan Wielenga 
Sent: Thursday, July 11, 2019 6:42 PM
To: dev
Subject: Re: Is this design weird

Sorry, you're going to have to think harder about the subject lines of your
e-mails. This is not good.

Gj

On Thu, Jul 11, 2019 at 12:37 PM Peter Cheung  wrote:

> Hi
>In mac, when i mouse over any word in editor and press "command" key,
> even the word in comment, it will show highlight that word and show the
> "click" cursor, but that word doesn't have "go to source" destination. So
> even i click on it, it has no effect. If no effect, it shouldn't highlight
> it and change the mouse cursor.
>
> Is it a weird design?
>
>
> Thanks
> From Peter
>


Is this design weird

2019-07-11 Thread Peter Cheung
Hi
   In mac, when i mouse over any word in editor and press "command" key, even 
the word in comment, it will show highlight that word and show the "click" 
cursor, but that word doesn't have "go to source" destination. So even i click 
on it, it has no effect. If no effect, it shouldn't highlight it and change the 
mouse cursor.

Is it a weird design?


Thanks
>From Peter


Re: Upgrading plugins to 11.0

2019-07-01 Thread Peter Cheung
Just fixed, the reason i change

org.netbeans.modules.editor.lib2/1 = 56

to

org.netbeans.modules.editor.lib2/1 = 55

I have to manually delete the target folder, then rebuild it.

Below is the code snapshot of my pom.xml


  
   org.codehaus.mojo
   nbm-maven-plugin
   4.1
   true
   
false

 
  org.netbeans.api:org-netbeans-modules-editor-lib2
  impl
  org.netbeans.modules.editor.lib2/1 = 55
 

com.github.mcheung63.netbeans.antlr
Peter (pe...@quantr.hk)
https://github.com/mcheung63/netbeans-antlr
keystore
netbeans-antlr
Apache License Version 2.0
LICENSE.txt
   
  


Thanks
>From Peter

From: Peter Cheung 
Sent: Tuesday, July 2, 2019 3:00 AM
To: dev@netbeans.apache.org
Subject: Upgrading plugins to 11.0

Dear All
   I have upgraded three maven based plugin to 11.0, all doing well, except 
this one "https://gitlab.com/mcheung63/netbeans-antlr;

When i debug this project, i click "run" button on the toolbar, new netbeans 
comes up and all work fine. After i think it is stable, then i click 
"Install/Reload in development IDE". It got "NetBeans: Error redeploying NBM 
module in development IDE.".

In netbeans 8.2 it was ok. Please help. Below is full stdout:

cd /Users/peter/NetBeansProjects/workspace/netbeans-antlr; 
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-12.0.1.jdk/Contents/Home 
/Users/peter/Downloads/netbeans/java/maven/bin/mvn -f 
/Users/peter/NetBeansProjects/workspace/netbeans-antlr/pom.xml 
-Dmaven.test.skip=true package
Scanning for projects...


Building Netbeans Antlr 2.3


--- antlr4-maven-plugin:4.5.3:antlr4 (default) @ netbeans-antlr ---
No grammars to process
ANTLR 4: Processing source directory 
/Users/peter/NetBeansProjects/workspace/netbeans-antlr/src/main/java/com/github/mcheung63/netbeans/antlr/syntax/antlrgenerate

--- maven-resources-plugin:3.0.2:resources (default-resources) @ netbeans-antlr 
---
Using 'UTF-8' encoding to copy filtered resources.
Copying 18 resources

--- maven-compiler-plugin:2.5.1:compile (default-compile) @ netbeans-antlr ---
Compiling 12 source files to 
/Users/peter/NetBeansProjects/workspace/netbeans-antlr/target/classes

--- nbm-maven-plugin:4.1:manifest (default-manifest) @ netbeans-antlr ---
NBM Plugin generates manifest
Adding on module's Class-Path:
com.github.mcheung63:peter-swing:jar:20180730
org.apache.commons:commons-lang3:jar:3.4
com.miglayout:miglayout:jar:3.7.4
commons-vfs:commons-vfs:jar:1.0
commons-logging:commons-logging:jar:1.0.4
org.imgscalr:imgscalr-lib:jar:4.2
com.google.code.gson:gson:jar:2.8.1
org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13
org.codehaus.jackson:jackson-core-asl:jar:1.9.13
org.antlr:antlr4:jar:4.7.2
org.antlr:antlr4-runtime:jar:4.7.2
org.antlr:antlr-runtime:jar:3.5.2
org.antlr:ST4:jar:4.1
org.abego.treelayout:org.abego.treelayout.core:jar:1.0.3
org.glassfish:javax.json:jar:1.0.4
com.ibm.icu:icu4j:jar:61.1
commons-io:commons-io:jar:2.6
org.apache.commons:commons-text:jar:1.6
com.github.vlsi.mxgraph:jgraphx:jar:4.0.0

--- maven-resources-plugin:3.0.2:testResources (default-testResources) @ 
netbeans-antlr ---
Not copying test resources

--- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ 
netbeans-antlr ---
Not compiling test sources

--- maven-surefire-plugin:2.20.1:test (default-test) @ netbeans-antlr ---
Tests are skipped.

--- maven-jar-plugin:2.4:jar (default-jar) @ netbeans-antlr ---
Adding existing MANIFEST to archive. Found under: 
/Users/peter/NetBeansProjects/workspace/netbeans-antlr/target/classes/META-INF/MANIFEST.MF
Building jar: 
/Users/peter/NetBeansProjects/workspace/netbeans-antlr/target/netbeans-antlr-2.3.jar

--- nbm-maven-plugin:4.1:branding (default-branding) @ netbeans-antlr ---
No branding to process.

--- nbm-maven-plugin:4.1:nbm (default-nbm) @ netbeans-antlr ---
Copying module JAR to 
/Users/peter/NetBeansProjects/workspace/netbeans-antlr/target/nbm/netbeans/extra/modules
 with manifest updates
Generating Auto Update information for com.github.mcheung63.netbeans.antlr
If you want to sign the nbm file, you need to define all three keystore related 
parameters.
No updater.jar specified, cannot validate Info.xml against DTD
Building jar: 
/Users/peter/NetBeansProjects/workspace/netbeans-antlr/target/nbm/netbeans-antlr-2.3.nbm

BUILD SUCCESS

Total time: 9.287 s
Finished at: 2019-07-02T02:58:35+08:00
Final Memory: 21M/87M

NetBeans: Deploying NBM module in development IDE...
Deploying test module 
/Users/peter/NetBeansPr

Upgrading plugins to 11.0

2019-07-01 Thread Peter Cheung
Dear All
   I have upgraded three maven based plugin to 11.0, all doing well, except 
this one "https://gitlab.com/mcheung63/netbeans-antlr;

When i debug this project, i click "run" button on the toolbar, new netbeans 
comes up and all work fine. After i think it is stable, then i click 
"Install/Reload in development IDE". It got "NetBeans: Error redeploying NBM 
module in development IDE.".

In netbeans 8.2 it was ok. Please help. Below is full stdout:

cd /Users/peter/NetBeansProjects/workspace/netbeans-antlr; 
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-12.0.1.jdk/Contents/Home 
/Users/peter/Downloads/netbeans/java/maven/bin/mvn -f 
/Users/peter/NetBeansProjects/workspace/netbeans-antlr/pom.xml 
-Dmaven.test.skip=true package
Scanning for projects...


Building Netbeans Antlr 2.3


--- antlr4-maven-plugin:4.5.3:antlr4 (default) @ netbeans-antlr ---
No grammars to process
ANTLR 4: Processing source directory 
/Users/peter/NetBeansProjects/workspace/netbeans-antlr/src/main/java/com/github/mcheung63/netbeans/antlr/syntax/antlrgenerate

--- maven-resources-plugin:3.0.2:resources (default-resources) @ netbeans-antlr 
---
Using 'UTF-8' encoding to copy filtered resources.
Copying 18 resources

--- maven-compiler-plugin:2.5.1:compile (default-compile) @ netbeans-antlr ---
Compiling 12 source files to 
/Users/peter/NetBeansProjects/workspace/netbeans-antlr/target/classes

--- nbm-maven-plugin:4.1:manifest (default-manifest) @ netbeans-antlr ---
NBM Plugin generates manifest
Adding on module's Class-Path:
com.github.mcheung63:peter-swing:jar:20180730
org.apache.commons:commons-lang3:jar:3.4
com.miglayout:miglayout:jar:3.7.4
commons-vfs:commons-vfs:jar:1.0
commons-logging:commons-logging:jar:1.0.4
org.imgscalr:imgscalr-lib:jar:4.2
com.google.code.gson:gson:jar:2.8.1
org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13
org.codehaus.jackson:jackson-core-asl:jar:1.9.13
org.antlr:antlr4:jar:4.7.2
org.antlr:antlr4-runtime:jar:4.7.2
org.antlr:antlr-runtime:jar:3.5.2
org.antlr:ST4:jar:4.1
org.abego.treelayout:org.abego.treelayout.core:jar:1.0.3
org.glassfish:javax.json:jar:1.0.4
com.ibm.icu:icu4j:jar:61.1
commons-io:commons-io:jar:2.6
org.apache.commons:commons-text:jar:1.6
com.github.vlsi.mxgraph:jgraphx:jar:4.0.0

--- maven-resources-plugin:3.0.2:testResources (default-testResources) @ 
netbeans-antlr ---
Not copying test resources

--- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ 
netbeans-antlr ---
Not compiling test sources

--- maven-surefire-plugin:2.20.1:test (default-test) @ netbeans-antlr ---
Tests are skipped.

--- maven-jar-plugin:2.4:jar (default-jar) @ netbeans-antlr ---
Adding existing MANIFEST to archive. Found under: 
/Users/peter/NetBeansProjects/workspace/netbeans-antlr/target/classes/META-INF/MANIFEST.MF
Building jar: 
/Users/peter/NetBeansProjects/workspace/netbeans-antlr/target/netbeans-antlr-2.3.jar

--- nbm-maven-plugin:4.1:branding (default-branding) @ netbeans-antlr ---
No branding to process.

--- nbm-maven-plugin:4.1:nbm (default-nbm) @ netbeans-antlr ---
Copying module JAR to 
/Users/peter/NetBeansProjects/workspace/netbeans-antlr/target/nbm/netbeans/extra/modules
 with manifest updates
Generating Auto Update information for com.github.mcheung63.netbeans.antlr
If you want to sign the nbm file, you need to define all three keystore related 
parameters.
No updater.jar specified, cannot validate Info.xml against DTD
Building jar: 
/Users/peter/NetBeansProjects/workspace/netbeans-antlr/target/nbm/netbeans-antlr-2.3.nbm

BUILD SUCCESS

Total time: 9.287 s
Finished at: 2019-07-02T02:58:35+08:00
Final Memory: 21M/87M

NetBeans: Deploying NBM module in development IDE...
Deploying test module 
/Users/peter/NetBeansProjects/workspace/netbeans-antlr/target/nbm/netbeans/extra/modules/com-github-mcheung63-netbeans-antlr.jar...
Enabling StandardModule:com.github.mcheung63.netbeans.antlr jarFile: 
/Users/peter/NetBeansProjects/workspace/netbeans-antlr/target/nbm/netbeans/extra/modules/com-github-mcheung63-netbeans-antlr.jar...
NetBeans: Error redeploying NBM module in development IDE.


Thanks
>From Peter


I have some plugins left in 8.2

2019-04-23 Thread Peter Cheung
Hi
   I have some plugins left in 8.2, i want to upgrade them to netbeans 11. Is 
the maven repo ready?


Thanks
>From Peter

[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png]
 Virus-free. 
www.avg.com