Re: output window coloring question

2018-05-25 Thread Peter Cheung
i am using system.out


Thanks
From Peter

From: Emilian Bold 
Sent: Friday, May 25, 2018 1:02:26 AM
To: dev@netbeans.incubator.apache.org
Subject: Re: output window coloring question

Maven is being executed as an external process which writes to a terminal. 
NetBeans has a basic VT100 terminal that probably takes care of some colors.

My guess is you are writing to the InputOutput stream which has no official 
ANSI support except via IOColorLines.println which accepts a Color argument.

--emi

�\�\�\�\�\�\�\ Original Message �\�\�\�\�\�\�\

On 24 May 2018 7:54 PM, Peter Cheung  wrote:

> Hi
>
> i saw maven can print colored text in output window, after hacking maven, i 
> know it uses library "org.fusesource.jansi.Ansi" to print colored text, but 
> my testing program still can't see any color. The most amazing thing is that 
> : in the output window, maven's text has color, but just my text has no 
> color. Any hints?
>
> my testing program:
>
> import org.junit.Test;
>
> import static org.fusesource.jansi.Ansi.;import static 
> org.fusesource.jansi.Ansi.Color.;
>
> import org.fusesource.jansi.AnsiConsole;
>
> public class TestConsole {
>
> @Test
>
> public void test() throws Exception {
>
> // String ANSI_RESET = "\u001B[0m";
>
> // String ANSI_RED = "\u001B[31m";
>
> // System.out.print(ANSI_RED + "XX");
>
> // System.out.flush();
>
> // System.out.println(ANSI_RESET);
>
> // System.out.println("\033[31;1mHello\033[0m, \033[32;1;2mworld!\033[0m");
>
> // System.out.println((char) 27 + "[31m" + "ERROR MESSAGE IN RED");
>
> // System.out.println((char) 27 + "[33mYELLOW");
>
> AnsiConsole.systemInstall();
>
> System.out.println(ansi().eraseScreen().fg(RED).a("Hello").fg(GREEN).a(" 
> World").reset());
>
> }
>
> }
>
> Thanks
>
> From Peter


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

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





Re: output window coloring question

2018-05-28 Thread Peter Cheung
Yes you are right, if i switch back to old maven, it back to works. thanks


Thanks
From Peter



From: cowwoc 
Sent: Saturday, May 26, 2018 2:36 AM
To: dev@netbeans.incubator.apache.org
Subject: Re: output window coloring question

On a related note, Maven 5.0+ is using ANSI colors in a very nice way
but this won't work in Netbeans.

I suggest a committer contact the author of JANSI through
https://github.com/fusesource/jansi/issues/87 to debug this further.
[https://avatars2.githubusercontent.com/u/633348?s=400&v=4]<https://github.com/fusesource/jansi/issues/87>

Netbeans support ・ Issue #87 ・ fusesource/jansi ・ 
GitHub<https://github.com/fusesource/jansi/issues/87>
github.com
GitHub is where people build software. More than 27 million people use GitHub 
to discover, fork, and contribute to over 80 million projects.




Kind regards,
Gili

On 2018-05-25 6:49 AM, Peter Cheung wrote:
> i am using system.out
>
>
> Thanks
>  From Peter
> 
> From: Emilian Bold 
> Sent: Friday, May 25, 2018 1:02:26 AM
> To: dev@netbeans.incubator.apache.org
> Subject: Re: output window coloring question
>
> Maven is being executed as an external process which writes to a terminal. 
> NetBeans has a basic VT100 terminal that probably takes care of some colors.
>
> My guess is you are writing to the InputOutput stream which has no official 
> ANSI support except via IOColorLines.println which accepts a Color argument.
>
> --emi
>
> �\�\�\�\�\�\�\ Original Message �\�\�\�\�\�\�\
>
> On 24 May 2018 7:54 PM, Peter Cheung  wrote:
>
>> Hi
>>
>> i saw maven can print colored text in output window, after hacking maven, i 
>> know it uses library "org.fusesource.jansi.Ansi" to print colored text, but 
>> my testing program still can't see any color. The most amazing thing is that 
>> : in the output window, maven's text has color, but just my text has no 
>> color. Any hints?
>>
>> my testing program:
>>
>> import org.junit.Test;
>>
>> import static org.fusesource.jansi.Ansi.;import static 
>> org.fusesource.jansi.Ansi.Color.;
>>
>> import org.fusesource.jansi.AnsiConsole;
>>
>> public class TestConsole {
>>
>> @Test
>>
>> public void test() throws Exception {
>>
>> // String ANSI_RESET = "\u001B[0m";
>>
>> // String ANSI_RED = "\u001B[31m";
>>
>> // System.out.print(ANSI_RED + "XX");
>>
>> // System.out.flush();
>>
>> // System.out.println(ANSI_RESET);
>>
>> // System.out.println("\033[31;1mHello\033[0m, \033[32;1;2mworld!\033[0m");
>>
>> // System.out.println((char) 27 + "[31m" + "ERROR MESSAGE IN RED");
>>
>> // System.out.println((char) 27 + "[33mYELLOW");
>>
>> AnsiConsole.systemInstall();
>>
>> System.out.println(ansi().eraseScreen().fg(RED).a("Hello").fg(GREEN).a(" 
>> World").reset());
>>
>> }
>>
>> }
>>
>> Thanks
>>
>>  From Peter
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
> For additional commands, e-mail: dev-h...@netbeans.incubator.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.incubator.apache.org
For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org

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





Questions about cluster

2018-06-03 Thread Peter Cheung
Dear All

   I got questions about cluster, please help

  1.  If cluster means the netbeans with some plugins?
  2.  if i build the "platform" cluster by "ant -Dcluster.config=platform", how 
can i what plugins will be bundle?

Thanks
>From Peter


Re: Questions about cluster

2018-06-04 Thread Peter Cheung
Thanks Tim

>From Peter



From: Tim Boudreau 
Sent: Monday, June 4, 2018 12:59 PM
To: dev@netbeans.incubator.apache.org
Subject: Re: Questions about cluster

A "cluster" is a group of modules;  it is common for there to be
interdependencies.  What is in a cluster can be ad-hoc, but is usually used
to organize support for specific technologies.

http://wiki.netbeans.org/DevFaqWhatIsACluster
DevFaqWhatIsACluster - NetBeans 
Wiki<http://wiki.netbeans.org/DevFaqWhatIsACluster>
wiki.netbeans.org
What is a Cluster? A cluster is a directory on disk. A cluster contains 
modules.If you are writing a small NetBeans-based application, you probably do 
not need to be too concerned about clusters, although you may encounter the 
concept if you need to bundle additional files (native executables, for 
example) with a module.




-Tim

On Mon, Jun 4, 2018 at 12:54 AM, Peter Cheung  wrote:

> Dear All
>
>I got questions about cluster, please help
>
>   1.  If cluster means the netbeans with some plugins?
>   2.  if i build the "platform" cluster by "ant
> -Dcluster.config=platform", how can i what plugins will be bundle?
>
> Thanks
> From Peter
>



--
http://timboudreau.com


Re: Microsoft buys GitHub

2018-06-05 Thread Peter Cheung
Codeplex, nokia, robotVM, all dead


From: Emilian Bold 
Sent: Tuesday, June 5, 2018 4:15 PM
To: dev@netbeans.incubator.apache.org
Subject: Microsoft buys GitHub

Hello,

I'm a bit worried about Microsoft steering the future of open-source projects' 
online collaboration and tooling with their GitHub purchase: 
https://blogs.microsoft.com/blog/2018/06/04/microsoft-github-empowering-developers/

I wonder if there's anything we need to rethink in terms of our project's 
dependence on GitHub PRs, etc.

--emi




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

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





Netbeans 9.0 mac installer forever lost?

2018-07-30 Thread Peter Cheung
Hi
   Netbeans 9.0 mac installer forever lost? not going to make one?


Thanks
>From Peter


Re: Netbeans 9.0 mac installer forever lost?

2018-07-30 Thread Peter Cheung
Thanks for the answers. I think i will re-compile and re-test all my plugins on 
9.0 first. I scare they don't work.

From: Geertjan Wielenga 
Sent: Monday, July 30, 2018 9:04 PM
To: dev@netbeans.incubator.apache.org
Subject: Re: Netbeans 9.0 mac installer forever lost?

Wow, cool, let’s discuss, with Peter, who started this thread, the random
person who created the solution discussed below, me, and anyone else who
wants to participate.

Gj

On Monday, July 30, 2018, Jim Jagielski  wrote:

> One of the things I do with Apache Open Office is make the
> (community) macOS builds... Do you all want/need something
> like that for NetBeans?
>
> > On Jul 30, 2018, at 8:13 AM, Geertjan Wielenga
>  wrote:
> >
> > Everything is part of the donation. But not everything is donated yet.
> >
> > Gj
> >
> >
> > On Monday, July 30, 2018, Javier Ortiz 
> wrote:
> >
> >> I was wondering why the original installer was not part of the donation?
> >>
> >> On Mon, Jul 30, 2018, 7:06 AM Javier Ortiz 
> >> wrote:
> >>
> >>> Was about to post about it. Is it something we could integrate being
> open
> >>> source?
> >>>
> >>> On Mon, Jul 30, 2018, 5:55 AM Geertjan Wielenga
> >>>  wrote:
> >>>
> >>>> Hey, here it is, look what someone did. :-)
> >>>>
> >>>> https://github.com/Webbiefourth/Apache-Netbeans-9.0-MacOSX
> >>>>
> >>>> Gj
> >>>>
> >>>> On Mon, Jul 30, 2018 at 12:51 PM, Geertjan Wielenga <
> >>>> geertjan.wiele...@googlemail.com> wrote:
> >>>>
> >>>>> Please really try to understand what Apache is about:
> >>>>>
> >>>>> https://www.apache.org/
> >>>>>
> >>>>> Nothing is ever 'lost', nothing is ever not going to be done --
> >>>> depending
> >>>>> on you and your involvement.
> >>>>>
> >>>>> What is it that you want and need? You are welcome to create it and
> >>>>> contribute it to Apache NetBeans.
> >>>>>
> >>>>> Gj
> >>>>>
> >>>>>
> >>>>>
> >>>>> On Mon, Jul 30, 2018 at 12:47 PM, Peter Cheung <
> mcheun...@hotmail.com
> >>>
> >>>>> wrote:
> >>>>>
> >>>>>> Hi
> >>>>>>   Netbeans 9.0 mac installer forever lost? not going to make one?
> >>>>>>
> >>>>>>
> >>>>>> Thanks
> >>>>>> From Peter
> >>>>>>
> >>>>>
> >>>>>
> >>>>
> >>>
> >>
>
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
> For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>


Where is RELEASE82 for Maven

2018-07-30 Thread Peter Cheung
Hi
   S.O.S : my plugin can't be install to 9.0, i think it is because i am using 
RELEASE80, but http://bits.netbeans.org/nexus/content/groups/netbeans dont have 
RELEASE90. Please read attachment too, it is crazy i tried to create a new 
"module" project and doesn't have RELEASE90 or even RELEASE82. Please help.



 
  netbeans
  Repository hosting NetBeans modules
  http://bits.netbeans.org/nexus/content/groups/netbeans
  
   false
  
 



Thanks
>From Peter

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

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



Re: Netbeans 9.0 mac installer forever lost?

2018-07-30 Thread Peter Cheung
Thanks GJ


Thanks
>From Peter

From: Geertjan Wielenga 
Sent: Tuesday, July 31, 2018 12:46 AM
To: dev@netbeans.incubator.apache.org
Subject: Re: Netbeans 9.0 mac installer forever lost?

Here's something else related to this:

https://github.com/phaus/netbeans-mac-bundle

Gj

On Mon, Jul 30, 2018 at 3:55 PM, Geertjan Wielenga <
geertjan.wiele...@googlemail.com> wrote:

> Don’t be scared. :-)
>
> You’ll be OK and you have many here to advise and support you, though bear
> in mind the number 1 priority is integration of the 2nd donation,
> everything else will be of lower priority for a while.
>
> Gj
>
>
> On Monday, July 30, 2018, Peter Cheung  wrote:
>
>> Thanks for the answers. I think i will re-compile and re-test all my
>> plugins on 9.0 first. I scare they don't work.
>> 
>> From: Geertjan Wielenga 
>> Sent: Monday, July 30, 2018 9:04 PM
>> To: dev@netbeans.incubator.apache.org
>> Subject: Re: Netbeans 9.0 mac installer forever lost?
>>
>> Wow, cool, let’s discuss, with Peter, who started this thread, the random
>> person who created the solution discussed below, me, and anyone else who
>> wants to participate.
>>
>> Gj
>>
>> On Monday, July 30, 2018, Jim Jagielski  wrote:
>>
>> > One of the things I do with Apache Open Office is make the
>> > (community) macOS builds... Do you all want/need something
>> > like that for NetBeans?
>> >
>> > > On Jul 30, 2018, at 8:13 AM, Geertjan Wielenga
>> >  wrote:
>> > >
>> > > Everything is part of the donation. But not everything is donated yet.
>> > >
>> > > Gj
>> > >
>> > >
>> > > On Monday, July 30, 2018, Javier Ortiz 
>> > wrote:
>> > >
>> > >> I was wondering why the original installer was not part of the
>> donation?
>> > >>
>> > >> On Mon, Jul 30, 2018, 7:06 AM Javier Ortiz <
>> javier.ortiz...@gmail.com>
>> > >> wrote:
>> > >>
>> > >>> Was about to post about it. Is it something we could integrate being
>> > open
>> > >>> source?
>> > >>>
>> > >>> On Mon, Jul 30, 2018, 5:55 AM Geertjan Wielenga
>> > >>>  wrote:
>> > >>>
>> > >>>> Hey, here it is, look what someone did. :-)
>> > >>>>
>> > >>>> https://github.com/Webbiefourth/Apache-Netbeans-9.0-MacOSX
>> > >>>>
>> > >>>> Gj
>> > >>>>
>> > >>>> On Mon, Jul 30, 2018 at 12:51 PM, Geertjan Wielenga <
>> > >>>> geertjan.wiele...@googlemail.com> wrote:
>> > >>>>
>> > >>>>> Please really try to understand what Apache is about:
>> > >>>>>
>> > >>>>> https://www.apache.org/
>> > >>>>>
>> > >>>>> Nothing is ever 'lost', nothing is ever not going to be done --
>> > >>>> depending
>> > >>>>> on you and your involvement.
>> > >>>>>
>> > >>>>> What is it that you want and need? You are welcome to create it
>> and
>> > >>>>> contribute it to Apache NetBeans.
>> > >>>>>
>> > >>>>> Gj
>> > >>>>>
>> > >>>>>
>> > >>>>>
>> > >>>>> On Mon, Jul 30, 2018 at 12:47 PM, Peter Cheung <
>> > mcheun...@hotmail.com
>> > >>>
>> > >>>>> wrote:
>> > >>>>>
>> > >>>>>> Hi
>> > >>>>>>   Netbeans 9.0 mac installer forever lost? not going to make one?
>> > >>>>>>
>> > >>>>>>
>> > >>>>>> Thanks
>> > >>>>>> From Peter
>> > >>>>>>
>> > >>>>>
>> > >>>>>
>> > >>>>
>> > >>>
>> > >>
>> >
>> >
>> > -
>> > To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
>> > For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org
>> >
>> > For further information about the NetBeans mailing lists, visit:
>> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>> >
>> >
>> >
>> >
>>
>


Re: Where is RELEASE82 for Maven

2018-07-30 Thread Peter Cheung
sorry, that was chinese style english, we always say something is crazy, 
nothing offense 😊


Thanks
From Peter

From: Geertjan Wielenga 
Sent: Monday, July 30, 2018 10:20 PM
To: dev@netbeans.incubator.apache.org
Cc: d...@netbeans.apache.org
Subject: Re: Where is RELEASE82 for Maven

Maven archetypes for 9.0 are not yet available.

Oracle has not yet donated netbeans.org to Apache and hence org.netbeans
cannot yet be used by Apache for Maven archetypes and hence 9.0 Maven
archetypes are not yet available.

Try avoid using words like ‘crazy’ and just relax. We’ve been working on
this process since October 2016. A lot is not yet complete, in process, and
everything will be done in the end; it will just take time.

You can help though — whenever there’s an appeal to try things out, to help
with relicensing, to actively participate in the project, etc.

Gj


On Monday, July 30, 2018, Peter Cheung  wrote:

> Hi
>S.O.S : my plugin can't be install to 9.0, i think it is because i am
> using RELEASE80, but http://bits.netbeans.org/
> nexus/content/groups/netbeans dont have RELEASE90. Please read attachment
> too, it is crazy i tried to create a new "module" project and doesn't have
> RELEASE90 or even RELEASE82. Please help.
>
>
> 
>  
>   netbeans
>   Repository hosting NetBeans modules
>   http://bits.netbeans.org/nexus/content/groups/netbeans
>   
>false
>   
>  
> 
>
>
> Thanks
> From Peter
>


when can we develop plugin for 9.0

2018-08-29 Thread Peter Cheung
Dear All
when can we develop plugin for 9.0?
when can we have windows installer and mac installer?
Thanks
>From Peter


Maven repo for latest plugin development

2018-09-14 Thread Peter Cheung
Dear All
   May I know where is the Maven repo for latest plugin development? I think i 
need this



  org.netbeans.api
  org-netbeans-modules-editor-settings
  RELEASE90
 


Thanks
>From Peter


Plugin RELEASE82 is ok for netbeans 9.0

2018-09-28 Thread Peter Cheung
Hi All
I was search around how people made their plugin to support netbeans 9.0, 
and I found this plugin 
"NbScratchFile" 
(https://github.com/Chris2011/NbScratchFile/blob/master/pom.xml) is submitted 
for netbeans 9.0 in plugin central, but it is still using RELEASE82. How come 
this happen?


org.netbeans.external
net-java-html
RELEASE82



Thanks
>From Peter


Re: NetBeans release

2018-12-11 Thread Peter Cheung
i still no idea how to uograde my 8.2 plugins to 9. dependency jar not in maven 
central. so sad

Thanks
>From Peter


From: Christian Lenz 
Sent: Tuesday, December 11, 2018 8:07:08 PM
To: d...@netbeans.apache.org
Subject: NetBeans release

Hey,

I thought I followed every discussion, but not to 100%, I wanted to ask what is 
the Status of the release? What is still missing? I saw that there was a 
security issue?


Cheers

Chris





Re: NetBeans release

2018-12-11 Thread Peter Cheung
Really want to, always want to contribute myself

Thanks
>From Peter


From: Geertjan Wielenga 
Sent: Tuesday, December 11, 2018 8:42:56 PM
To: dev
Subject: Re: NetBeans release

On Tue, Dec 11, 2018 at 1:31 PM Peter Cheung  wrote:

> i still no idea how to uograde my 8.2 plugins to 9. dependency jar not in
> maven central. so sad
>


Are you going to get involved with Eric and others on the Maven Central
support for NetBeans?

Gj





>
> Thanks
> From Peter
>
> 
> From: Christian Lenz 
> Sent: Tuesday, December 11, 2018 8:07:08 PM
> To: d...@netbeans.apache.org
> Subject: NetBeans release
>
> Hey,
>
> I thought I followed every discussion, but not to 100%, I wanted to ask
> what is the Status of the release? What is still missing? I saw that there
> was a security issue?
>
>
> Cheers
>
> Chris
>
>
>
>


output window in source

2018-12-28 Thread Peter Cheung
Dear All
Where is the source code of the output window? I want to check out why it 
doesn't support colored text.
Thanks
>From Peter


Re: output window in source

2018-12-28 Thread Peter Cheung
OK i got it, it is OutputTab.java


Thanks
>From Peter

From: Peter Cheung 
Sent: Saturday, December 29, 2018 3:39 PM
To: d...@netbeans.apache.org
Subject: output window in source

Dear All
Where is the source code of the output window? I want to check out why it 
doesn't support colored text.
Thanks
>From Peter


Re: output window in source

2018-12-29 Thread Peter Cheung
hi
If using maven 3.5.0 or above, we cant print out any colored text to the 
console. i have asked maven team for a help.

Thanks
>From Peter


From: Attila Kelemen 
Sent: Saturday, December 29, 2018 9:22:18 PM
To: dev@netbeans.incubator.apache.org
Cc: d...@netbeans.apache.org
Subject: Re: output window in source

What do you mean it does not support colored text? There is
org.openide.windows.IOColorLines
<http://bits.netbeans.org/dev/javadoc/org-openide-io/org/openide/windows/IOColorLines.html#println-org.openide.windows.InputOutput-java.lang.CharSequence-java.awt.Color->
to provide utility methods for that. For other uses:
http://bits.netbeans.org/dev/javadoc/org-openide-io/org/openide/windows/class-use/InputOutput.html
.

Attila Kelemen

Peter Cheung  ezt írta (időpont: 2018. dec. 29.,
Szo, 8:58):

> OK i got it, it is OutputTab.java
>
>
> Thanks
> From Peter
> ________
> From: Peter Cheung 
> Sent: Saturday, December 29, 2018 3:39 PM
> To: d...@netbeans.apache.org
> Subject: output window in source
>
> Dear All
> Where is the source code of the output window? I want to check out why
> it doesn't support colored text.
> Thanks
> From Peter
>


Solved – The root cause why Netbeans can’t print colored text using latest MavenSolved – The root cause why Netbeans can’t print colored text using latest Maven

2018-12-29 Thread Peter Cheung
Hi All
   Solved the color problem, 
http://peter.quantr.hk/2018/12/solved-the-root-cause-why-netbeans-cant-print-colored-text-using-latest-maven/


Thanks
>From Peter


Fw: Solved – The root cause why Netbeans can’t print colored text using latest MavenSolved – The root cause why Netbeans can’t print colored text using latest Maven

2018-12-29 Thread Peter Cheung



Thanks
>From Peter

From: Peter Cheung
Sent: Sunday, December 30, 2018 2:00 PM
To: d...@netbeans.apache.org
Subject: Solved – The root cause why Netbeans can’t print colored text using 
latest MavenSolved – The root cause why Netbeans can’t print colored text using 
latest Maven

Hi All
   Solved the color problem, 
http://peter.quantr.hk/2018/12/solved-the-root-cause-why-netbeans-cant-print-colored-text-using-latest-maven/


Thanks
>From Peter


Shall we make the "open project" dialog half of the screen size

2018-12-30 Thread Peter Cheung
Hi
   Shall we make the "open project" dialog half of the screen size? , i think 
it would be more user friendly. now is too small

In Line 445, 
ide/projectui/src/org/netbeans/modules/project/ui/ProjectChooserAccessory.java

 Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
 double width = screenSize.getWidth();
 double height = screenSize.getHeight();
 chooser.setPreferredSize(new Dimension((int)width/2, (int)height/2));

this will help


Thanks
>From Peter


Re: Shall we make the "open project" dialog half of the screen size

2018-12-30 Thread Peter Cheung
honestly, the default size in my 27 mac and 15 mac book make me dont want to 
kick on it. Please make it larger by default, related to screen size pls.

Thanks
>From Peter


From: Geertjan Wielenga 
Sent: Sunday, December 30, 2018 8:26:22 PM
To: dev
Subject: Re: Shall we make the "open project" dialog half of the screen size

Of course, these dialogs can simply be resized at any time by the user.

Gj

On Sun, Dec 30, 2018 at 1:23 PM Peter Nabbefeld 
wrote:

> IMHO, the width is nearly sufficient (the "right part" showing the
> sub-projects could be a bit bigger, however), but the height should be
> increased - half the screen size would be nice, or even a bit more.
>
> Kind regards
>
> Peter
>
>
> Am 30.12.18 um 12:25 schrieb Peter Cheung:
> > Hi
> > Shall we make the "open project" dialog half of the screen size? , i
> think it would be more user friendly. now is too small
> >
> > In Line 445,
> ide/projectui/src/org/netbeans/modules/project/ui/ProjectChooserAccessory.java
> >
> >   Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
> >   double width = screenSize.getWidth();
> >   double height = screenSize.getHeight();
> >   chooser.setPreferredSize(new Dimension((int)width/2, (int)height/2));
> >
> > this will help
> >
> >
> > Thanks
> >  From Peter
> >
>
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
> For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>


Re: Shall we make the "open project" dialog half of the screen size

2018-12-30 Thread Peter Cheung
how can i submit change request with my modified code?

Thanks
>From Peter


From: Peter Cheung 
Sent: Sunday, December 30, 2018 8:44:03 PM
To: dev@netbeans.incubator.apache.org
Subject: Re: Shall we make the "open project" dialog half of the screen size

honestly, the default size in my 27 mac and 15 mac book make me dont want to 
kick on it. Please make it larger by default, related to screen size pls.

Thanks
>From Peter


From: Geertjan Wielenga 
Sent: Sunday, December 30, 2018 8:26:22 PM
To: dev
Subject: Re: Shall we make the "open project" dialog half of the screen size

Of course, these dialogs can simply be resized at any time by the user.

Gj

On Sun, Dec 30, 2018 at 1:23 PM Peter Nabbefeld 
wrote:

> IMHO, the width is nearly sufficient (the "right part" showing the
> sub-projects could be a bit bigger, however), but the height should be
> increased - half the screen size would be nice, or even a bit more.
>
> Kind regards
>
> Peter
>
>
> Am 30.12.18 um 12:25 schrieb Peter Cheung:
> > Hi
> > Shall we make the "open project" dialog half of the screen size? , i
> think it would be more user friendly. now is too small
> >
> > In Line 445,
> ide/projectui/src/org/netbeans/modules/project/ui/ProjectChooserAccessory.java
> >
> >   Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
> >   double width = screenSize.getWidth();
> >   double height = screenSize.getHeight();
> >   chooser.setPreferredSize(new Dimension((int)width/2, (int)height/2));
> >
> > this will help
> >
> >
> > Thanks
> >  From Peter
> >
>
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
> For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>


Re: Shall we make the "open project" dialog half of the screen size

2018-12-30 Thread Peter Cheung
Thanks GJ, I do it tmr


Thanks
>From Peter

From: Geertjan Wielenga 
Sent: Sunday, December 30, 2018 9:13 PM
To: dev
Subject: Re: Shall we make the "open project" dialog half of the screen size

Here you can provide a pull request:
https://github.com/apache/incubator-netbeans/pulls

Gj

On Sun, Dec 30, 2018 at 1:46 PM Peter Cheung  wrote:

> how can i submit change request with my modified code?
>
> Thanks
> From Peter
>
> ________
> From: Peter Cheung 
> Sent: Sunday, December 30, 2018 8:44:03 PM
> To: dev@netbeans.incubator.apache.org
> Subject: Re: Shall we make the "open project" dialog half of the screen
> size
>
> honestly, the default size in my 27 mac and 15 mac book make me dont want
> to kick on it. Please make it larger by default, related to screen size pls.
>
> Thanks
> From Peter
>
> 
> From: Geertjan Wielenga 
> Sent: Sunday, December 30, 2018 8:26:22 PM
> To: dev
> Subject: Re: Shall we make the "open project" dialog half of the screen
> size
>
> Of course, these dialogs can simply be resized at any time by the user.
>
> Gj
>
> On Sun, Dec 30, 2018 at 1:23 PM Peter Nabbefeld 
> wrote:
>
> > IMHO, the width is nearly sufficient (the "right part" showing the
> > sub-projects could be a bit bigger, however), but the height should be
> > increased - half the screen size would be nice, or even a bit more.
> >
> > Kind regards
> >
> > Peter
> >
> >
> > Am 30.12.18 um 12:25 schrieb Peter Cheung:
> > > Hi
> > > Shall we make the "open project" dialog half of the screen size? ,
> i
> > think it would be more user friendly. now is too small
> > >
> > > In Line 445,
> >
> ide/projectui/src/org/netbeans/modules/project/ui/ProjectChooserAccessory.java
> > >
> > >   Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
> > >   double width = screenSize.getWidth();
> > >   double height = screenSize.getHeight();
> > >   chooser.setPreferredSize(new Dimension((int)width/2, (int)height/2));
> > >
> > > this will help
> > >
> > >
> > > Thanks
> > >  From Peter
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
> > For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org
> >
> > For further information about the NetBeans mailing lists, visit:
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >
> >
> >
> >
>


Add a search box for Netbeans customize toolbar dialog

2018-12-30 Thread Peter Cheung
Hi All
 Add a search box for Netbeans customize toolbar dialog, but not so 
perfect. https://www.youtube.com/watch?v=ChHjw8nvRGA&feature=youtu.be
Thanks
>From Peter


Re: Shall we make the "open project" dialog half of the screen size

2018-12-30 Thread Peter Cheung
If every dialog and window can remember its last size, then it is super perfect.


Thanks
>From Peter

From: Luff,Chris 
Sent: Monday, December 31, 2018 1:13 AM
To: dev@netbeans.incubator.apache.org
Cc: Geertjan Wielenga
Subject: Re: Shall we make the "open project" dialog half of the screen size

If the demand were great enough I would +1 model window size and position 
storage, but it’s not top of my list.

> On 30 Dec 2018, at 17:08, Scott Palmer  wrote:
>
> Maybe remember the last size the user had it at? Then they resize once and 
> next time it’s how they like it.
>
> Scott
>
>> On Dec 30, 2018, at 9:57 AM, Peter Cheung  wrote:
>>
>> Thanks GJ, I do it tmr
>>
>>
>> Thanks
>> From Peter
>> 
>> From: Geertjan Wielenga 
>> Sent: Sunday, December 30, 2018 9:13 PM
>> To: dev
>> Subject: Re: Shall we make the "open project" dialog half of the screen size
>>
>> Here you can provide a pull request:
>> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fincubator-netbeans%2Fpulls&data=02%7C01%7CChris.Luff%40cerner.com%7C7179806208e2442d912708d66e797a09%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C636817865356439796&sdata=zOUxmazAiq9wKVBh0ub4UpFP4uwrTPwmRyRG9vj6go8%3D&reserved=0
>>
>> Gj
>>
>>> On Sun, Dec 30, 2018 at 1:46 PM Peter Cheung  wrote:
>>>
>>> how can i submit change request with my modified code?
>>>
>>> Thanks
>>> From Peter
>>>
>>> 
>>> From: Peter Cheung 
>>> Sent: Sunday, December 30, 2018 8:44:03 PM
>>> To: dev@netbeans.incubator.apache.org
>>> Subject: Re: Shall we make the "open project" dialog half of the screen
>>> size
>>>
>>> honestly, the default size in my 27 mac and 15 mac book make me dont want
>>> to kick on it. Please make it larger by default, related to screen size pls.
>>>
>>> Thanks
>>> From Peter
>>>
>>> 
>>> From: Geertjan Wielenga 
>>> Sent: Sunday, December 30, 2018 8:26:22 PM
>>> To: dev
>>> Subject: Re: Shall we make the "open project" dialog half of the screen
>>> size
>>>
>>> Of course, these dialogs can simply be resized at any time by the user.
>>>
>>> Gj
>>>
>>> On Sun, Dec 30, 2018 at 1:23 PM Peter Nabbefeld 
>>> wrote:
>>>
>>>> IMHO, the width is nearly sufficient (the "right part" showing the
>>>> sub-projects could be a bit bigger, however), but the height should be
>>>> increased - half the screen size would be nice, or even a bit more.
>>>>
>>>> Kind regards
>>>>
>>>> Peter
>>>>
>>>>
>>>>> Am 30.12.18 um 12:25 schrieb Peter Cheung:
>>>>> Hi
>>>>>   Shall we make the "open project" dialog half of the screen size? ,
>>> i
>>>> think it would be more user friendly. now is too small
>>>>>
>>>>> In Line 445,
>>>>
>>> ide/projectui/src/org/netbeans/modules/project/ui/ProjectChooserAccessory.java
>>>>>
>>>>> Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
>>>>> double width = screenSize.getWidth();
>>>>> double height = screenSize.getHeight();
>>>>> chooser.setPreferredSize(new Dimension((int)width/2, (int)height/2));
>>>>>
>>>>> this will help
>>>>>
>>>>>
>>>>> Thanks
>>>>> From Peter
>>>>>
>>>>
>>>>
>>>> -
>>>> To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
>>>> For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org
>>>>
>>>> For further information about the NetBeans mailing lists, visit:
>>>> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blists&data=02%7C01%7CChris.Luff%40cerner.com%7C7179806208e2442d912708d66e797a09%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C636817865356439796&sdata=YmRPnZ1pMu3EHilXR2GrosIroepaWF%2FUQRRThVyMhJU%3D&reserved=0
>>>>
>>>>
>>>>
>>>>
>>>
>
> ---

Did i do pull-request right

2019-01-01 Thread Peter Cheung
Hi
   Anybody can tell me i did correctly or not?

https://github.com/apache/incubator-netbeans/pull/1065



Thanks
>From Peter


Porting 8.2 plugin to 10 problem

2019-01-01 Thread Peter Cheung
Hi
   I am porting my plugins to Netbeans 10, but all of them have this error. It 
auto generated a java file called Bundle.java and it is unable to compile since 
it can't find @javax.annotation.Generated

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) 
on project netbeans-antlr: Compilation failure: Compilation failure:
[ERROR] 
/Users/peter/workspace/netbeans-antlr/target/generated-sources/annotations/com/github/mcheung63/netbeans/antlr/syntax/antlr3/realtimecompile/Bundle.java:[3,17]
 error: cannot find symbol
[ERROR]   symbol:   class Generated
[ERROR]   location: package javax.annotation
[ERROR] 
/Users/peter/workspace/netbeans-antlr/target/generated-sources/annotations/com/github/mcheung63/netbeans/antlr/Bundle.java:[3,17]
 error: cannot find symbol
[ERROR]   symbol:   class Generated
[ERROR]   location: package javax.annotation
[ERROR] 
/Users/peter/workspace/netbeans-antlr/target/generated-sources/annotations/com/github/mcheung63/netbeans/antlr/syntax/antlr4/realtimecompile/Bundle.java:[3,17]
 error: cannot find symbol
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException


Thanks
>From Peter


Re: Porting 8.2 plugin to 10 problem

2019-01-02 Thread Peter Cheung
Hi Peter
 May I know which part is module dev supports for jdk >8? I mean where is 
the code for this thing?. I want to know anything i can help


Thanks
>From Peter

From: Peter Nabbefeld 
Sent: Tuesday, January 1, 2019 11:23 PM
To: dev@netbeans.incubator.apache.org
Subject: Re: Porting 8.2 plugin to 10 problem

Hi Peter,

the Generated annotation has moved somewhere, IIRC, so the annotation
processor creates Java code with non-working imports. For the bundles,
it will probably be better to use property files. Or better wait, until
JDK > 8 is supported for module development, as modules targeted to NB
8.x should still work in most cases.

Kind regards

Peter



Am 01.01.19 um 15:54 schrieb Peter Cheung:
> Hi
> I am porting my plugins to Netbeans 10, but all of them have this error. 
> It auto generated a java file called Bundle.java and it is unable to compile 
> since it can't find @javax.annotation.Generated
>
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile 
> (default-compile) on project netbeans-antlr: Compilation failure: Compilation 
> failure:
> [ERROR] 
> /Users/peter/workspace/netbeans-antlr/target/generated-sources/annotations/com/github/mcheung63/netbeans/antlr/syntax/antlr3/realtimecompile/Bundle.java:[3,17]
>  error: cannot find symbol
> [ERROR]   symbol:   class Generated
> [ERROR]   location: package javax.annotation
> [ERROR] 
> /Users/peter/workspace/netbeans-antlr/target/generated-sources/annotations/com/github/mcheung63/netbeans/antlr/Bundle.java:[3,17]
>  error: cannot find symbol
> [ERROR]   symbol:   class Generated
> [ERROR]   location: package javax.annotation
> [ERROR] 
> /Users/peter/workspace/netbeans-antlr/target/generated-sources/annotations/com/github/mcheung63/netbeans/antlr/syntax/antlr4/realtimecompile/Bundle.java:[3,17]
>  error: cannot find symbol
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please 
> read the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>
>
> Thanks
>  From Peter
>


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

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





Netbeans colors not accurate

2019-01-06 Thread Peter Cheung
found out Netbeans colors not accurate 
http://peter.quantr.hk/2019/01/netbeans-output-window-color-not-accurate/


Re: How to analyse the debugger performance

2017-11-13 Thread Peter Cheung
in java world, the debugger performance really cant compare with visual studio, 
when pressing f10 to single step, it response really fast.

should we rebuild the netbeans debugger?

Martin Dindoffer mailto:mdindof...@gmail.com>> 於 
2017年11月14日 上午4:39 寫道:

Hi John,

Do you also observe very long durations of debugging session initialization?
I'm asking, because that's what I'm dealing with every day when I try to attach 
the debugger to a process.
JPDA seems to connect and then it stays stuck for a few seconds until the 
thread lists gets populated.
And yes, it seems that a big number of opened projects / maven modules is a 
common denominator.

Martin

Hi,

At work, I have in my project group with just over 100 open projects.
Whenever I attempt to debug the application, I find the
debugger/NetBeans slow and sluggish.

Now I'm not sure if this is related to the number of open projects,
the number of breakpoints I have, or indeed the webapp I'm debugging,
but unfortunately, I sit next to an IntelliJ user and they don't seem
to have the same issues, with an identical machine. So I must assume
its NetBeans related

I want to start to analyse why this is happening, maybe get enough
content to raise/fix? a defect etc.

What would be the first set of steps?

Regards

John



bugzilla is abandoned ?

2018-02-06 Thread Peter Cheung
Hi All

https://netbeans.org/bugzilla/enter_bug.cgi bugzilla is abandoned ? I see 
Either no products have been defined to enter bugs against or you have not been 
given access to any.


Thanks
>From Peter


Re: bugzilla is abandoned ?

2018-02-06 Thread Peter Cheung
Thanks Gj
From Peter

> Geertjan Wielenga  於 2018年2月7日 上午2:50 寫道:
> 
> Yes, that would be ideal, will investigate that.
> 
> Gj
> 
>> On Tuesday, February 6, 2018, cowwoc  wrote:
>> 
>> Geertjan,
>> 
>> Aren't you able to add a notice on https://netbeans.org/bugzilla/
>> enter_bug.cgi that points users in the right direction?
>> 
>> Thanks,
>> Gili
>> 
>>> On 2018-02-06 12:10 PM, Geertjan Wielenga wrote:
>>> 
>>> NetBeans is an Apache project now. That means Apache JIRA.
>>> 
>>> Gj
>>> 
>>> On Tuesday, February 6, 2018, Peter Cheung  wrote:
>>> 
>>> Hi All
>>>> 
>>>> https://netbeans.org/bugzilla/enter_bug.cgi bugzilla is abandoned
>>>> ? I
>>>> see Either no products have been defined to enter bugs against or you
>>>> have
>>>> not been given access to any.
>>>> 
>>>> 
>>>> Thanks
>>>> From Peter
>>>> 
>>>> 
>> 
>> -
>> To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
>> For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org
>> 
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>> 
>> 
>> 
>> 


Which api can get the editor background color of current theme

2018-02-24 Thread Peter Cheung
Dear All
Which api can get the editor background color of current theme?
Thanks
>From Peter
-
To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org

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





ActionReference has bug ?

2018-02-25 Thread Peter Cheung
Hi All

 Why "Menu/Navigate" will put my action into another Navigate menu rather 
than the existing one? Why i press the shortcut key, i only see the menu is 
blinking but the actionPerformed() hasn't run?


Thanks



package hk.quantr.netbeansquickoutline;


import java.awt.event.ActionEvent;

import java.awt.event.ActionListener;

import javax.swing.JOptionPane;

import org.openide.awt.ActionID;

import org.openide.awt.ActionReference;

import org.openide.awt.ActionReferences;

import org.openide.awt.ActionRegistration;

import org.openide.util.NbBundle.Messages;


@ActionID(

category = "Navigate",

id = "hk.quantr.netbeansquickoutline.SomeAction"

)

@ActionRegistration(

displayName = "#CTL_SomeAction"

)

@ActionReferences({

@ActionReference(path = "Menu/Navigate", position = )

,

@ActionReference(path = "Shortcuts", name = "M-P")

})

@Messages("CTL_SomeAction=MyMenu")

public final class SomeAction implements ActionListener {


@Override

public void actionPerformed(ActionEvent e) {

JOptionPane.showMessageDialog(null, "hey");

}

}


Re: Which api can get the editor background color of current theme

2018-02-25 Thread Peter Cheung
thank you to all gentlemen

> On 25 Feb 2018, at 9:55 PM, Neil C Smith  wrote:
> 
> On Sun, 25 Feb 2018 at 13:41 Christian Lenz  wrote:
> 
>> I think you can use: UIManager.getColor(„TextField.background“) and you
>> have to find the right key for that.
>> 
>> Please if there is a better API, let me knows it.
>> 
>> 
> Editor settings and mime lookup would probably be the better way to get
> this info.
> 
> I use this in my save-flash plugin (one day I'll release that for the IDE!)
> - see particularly the code here -
> 
> https://github.com/praxis-live/praxis-live/blob/master/praxis.live.editor.saveflash/src/net/neilcsmith/praxis/live/editor/saveflash/FlashOnSaveHighlight.java#L124
> 
> I assume you'd want to use StyleConstants.Background as the key?  See the
> FontColorSettings code -
> 
> https://github.com/apache/incubator-netbeans/blob/master/editor.settings/src/org/netbeans/api/editor/settings/FontColorSettings.java
> 
> Hope that helps.
> 
> Best wishes,
> 
> Neil
> 
> 
> -- 
> Neil C Smith
> Artist & Technologist
> www.neilcsmith.net
> 
> Praxis LIVE - hybrid visual IDE for creative coding - www.praxislive.org


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

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




Re: ActionReference has bug ?

2018-02-25 Thread Peter Cheung
This works when i press Ctrl-P

@ActionReference(path = "Shortcuts", name = "C-P")


This doesn't work when i press Command-P in mac, i only see menu is blinking

@ActionReference(path = "Shortcuts", name = "M-P")


Thanks
>From Peter


____
From: Peter Cheung 
Sent: Monday, February 26, 2018 12:52 AM
To: d...@platform.netbeans.org
Cc: dev@netbeans.incubator.apache.org
Subject: ActionReference has bug ?

Hi All

 Why "Menu/Navigate" will put my action into another Navigate menu rather 
than the existing one? Why i press the shortcut key, i only see the menu is 
blinking but the actionPerformed() hasn't run?


Thanks



package hk.quantr.netbeansquickoutline;


import java.awt.event.ActionEvent;

import java.awt.event.ActionListener;

import javax.swing.JOptionPane;

import org.openide.awt.ActionID;

import org.openide.awt.ActionReference;

import org.openide.awt.ActionReferences;

import org.openide.awt.ActionRegistration;

import org.openide.util.NbBundle.Messages;


@ActionID(

category = "Navigate",

id = "hk.quantr.netbeansquickoutline.SomeAction"

)

@ActionRegistration(

displayName = "#CTL_SomeAction"

)

@ActionReferences({

@ActionReference(path = "Menu/Navigate", position = )

,

@ActionReference(path = "Shortcuts", name = "M-P")

})

@Messages("CTL_SomeAction=MyMenu")

public final class SomeAction implements ActionListener {


@Override

public void actionPerformed(ActionEvent e) {

JOptionPane.showMessageDialog(null, "hey");

}

}


Netbeans quick outline plugin

2018-02-25 Thread Peter Cheung
http://peter.quantr.hk/2018/02/netbeans-quick-outline/


First draft of netbeans quick outline plugin

2018-02-26 Thread Peter Cheung


First draft of netbeans quick outline plugin

http://peter.quantr.hk/2018/02/first-draft-of-netbeans-quick-outline-plugin/


Re: Netbeans quick outline plugin

2018-02-26 Thread Peter Cheung
Dear Chris


That would be great. I thought on such a plugin too, please Keep in mind, that 
we Need it for C/C++, Java, JavaScript, PHP and what NetBeans also Support. 
Maybe HTML XML too but could be optional.

Easy, Antlr already support those grammars

If this is not possible, with a 3rd Party plugin, because you have to get the 
JS, PHP C/C++ Parser Tokens to identify private, public, functions, members, 
classes etc. (This is, AFAIK, only possible for Java). You can implement it 
into the NetBeans core, instead of a plugin.

I have no experience to implement anything in core, don't even know how to 
submit my code for review and the team seems very busy on migrating the project 
to apache. not sure it is a good approach or not. Please suggest.

Cheers

Chris

Von: Peter Cheung
Gesendet: Sonntag, 25. Februar 2018 19:32
An: d...@platform.netbeans.org
Cc: dev@netbeans.incubator.apache.org
Betreff: Netbeans quick outline plugin

http://peter.quantr.hk/2018/02/netbeans-quick-outline/



Re: ActionReference has bug ?

2018-02-26 Thread Peter Cheung
OK, thanks


Thanks
>From Peter



From: Geertjan Wielenga 
Sent: Monday, February 26, 2018 1:13 AM
To: dev@netbeans.incubator.apache.org
Cc: d...@platform.netbeans.org
Subject: Re: ActionReference has bug ?

Programmatic name is probably not Navigate. Maybe it is GoTo.

Gj

On Sunday, February 25, 2018, Peter Cheung  wrote:

> Hi All
>
>  Why "Menu/Navigate" will put my action into another Navigate menu
> rather than the existing one? Why i press the shortcut key, i only see the
> menu is blinking but the actionPerformed() hasn't run?
>
>
> Thanks
>
>
>
> package hk.quantr.netbeansquickoutline;
>
>
> import java.awt.event.ActionEvent;
>
> import java.awt.event.ActionListener;
>
> import javax.swing.JOptionPane;
>
> import org.openide.awt.ActionID;
>
> import org.openide.awt.ActionReference;
>
> import org.openide.awt.ActionReferences;
>
> import org.openide.awt.ActionRegistration;
>
> import org.openide.util.NbBundle.Messages;
>
>
> @ActionID(
>
> category = "Navigate",
>
> id = "hk.quantr.netbeansquickoutline.SomeAction"
>
> )
>
> @ActionRegistration(
>
> displayName = "#CTL_SomeAction"
>
> )
>
> @ActionReferences({
>
> @ActionReference(path = "Menu/Navigate", position = )
>
> ,
>
> @ActionReference(path = "Shortcuts", name = "M-P")
>
> })
>
> @Messages("CTL_SomeAction=MyMenu")
>
> public final class SomeAction implements ActionListener {
>
>
> @Override
>
> public void actionPerformed(ActionEvent e) {
>
> JOptionPane.showMessageDialog(null, "hey");
>
> }
>
> }
>


Re: Netbeans quick outline plugin

2018-02-26 Thread Peter Cheung
  1.  Let me try out the javascript grammar in the coming few days 
https://github.com/antlr/grammars-v4/tree/master/javascript
  2.  Why netbeans just let everyone to access every api/class/functions ?


Thanks
>From Peter



From: Christian Lenz 
Sent: Monday, February 26, 2018 5:39 PM
To: dev@netbeans.incubator.apache.org
Subject: AW: Netbeans quick outline plugin

Sure, plugin makes sense. So for this, you are parsing the JS grammar again? I 
only wanted to say, that this is not needed, because NetBeans already does it 
for you, but you can’t acces the Tokens for example other than Java, because it 
is not public from the outside. Sure there is the CSL but it is not working. 
But if you do it by your own, you will not have any Problems.

Gesendet von Mail für Windows 10

Von: Peter Cheung
Gesendet: Montag, 26. Februar 2018 10:13
An: dev@netbeans.incubator.apache.org
Betreff: Re: Netbeans quick outline plugin

Dear Chris


That would be great. I thought on such a plugin too, please Keep in mind, that 
we Need it for C/C++, Java, JavaScript, PHP and what NetBeans also Support. 
Maybe HTML XML too but could be optional.

Easy, Antlr already support those grammars

If this is not possible, with a 3rd Party plugin, because you have to get the 
JS, PHP C/C++ Parser Tokens to identify private, public, functions, members, 
classes etc. (This is, AFAIK, only possible for Java). You can implement it 
into the NetBeans core, instead of a plugin.

I have no experience to implement anything in core, don't even know how to 
submit my code for review and the team seems very busy on migrating the project 
to apache. not sure it is a good approach or not. Please suggest.

Cheers

Chris

Von: Peter Cheung
Gesendet: Sonntag, 25. Februar 2018 19:32
An: d...@platform.netbeans.org
Cc: dev@netbeans.incubator.apache.org
Betreff: Netbeans quick outline plugin

http://peter.quantr.hk/2018/02/netbeans-quick-outline/




Re: First draft of netbeans quick outline plugin

2018-02-26 Thread Peter Cheung
let me think and thanks Chris



From: Christian Lenz 
Sent: Monday, February 26, 2018 5:56 PM
To: dev@netbeans.incubator.apache.org
Subject: AW: First draft of netbeans quick outline plugin

Hey Peter,

I wanted to comment, but smth with Twitter and/or fb is not working. Anyway, I 
do it here:


➢ The tree (AST) view is needed, because it shows the hierachical view and the 
association of the code. IntelliJ does the same, the navigator in NetBeans too. 
It represents the Abstract Syntax Tree, which is a tree. If you show it like 
this, there is no association between vars and/or functions and whatever, as 
you can see your comparsion of your plugin and the result from Eclipse.

➢ For me, I would like to see the same information from the navigator for 
example. If I have a filter function, there is nothing wrong with a tree and it 
will not hurting the eyes. The only difference between your plugin and the 
navigator, should be, that this is a lightweight dialog and with a filter 
functionality.


Cheers

Chris

Von: Peter Cheung
Gesendet: Montag, 26. Februar 2018 10:06
An: d...@platform.netbeans.org
Cc: dev@netbeans.incubator.apache.org
Betreff: First draft of netbeans quick outline plugin

<https://netbeans.org/>
Welcome to NetBeans<https://netbeans.org/>
netbeans.org
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 
2018, Oracle Corporation and/or its affiliates. Sponsored by




First draft of netbeans quick outline plugin

http://peter.quantr.hk/2018/02/first-draft-of-netbeans-quick-outline-plugin/



Re: Netbeans quick outline plugin

2018-02-27 Thread Peter Cheung
Does it looks better than eclipse now?


http://peter.quantr.hk/2018/02/netbeans-qucik-outline-design-ii/


Thanks
>From Peter



From: Neil C Smith 
Sent: Monday, February 26, 2018 6:30 PM
To: dev@netbeans.incubator.apache.org
Subject: Re: Netbeans quick outline plugin

On Mon, 26 Feb 2018 at 09:50 Christian Lenz  wrote:

> ... this was only possible to add the plugin as a friend which is only a
> Workaround.
>

There was a discussion on a PR recently about stopping using friend
relationships for "unstable" API's in favour of another approach -
something that would be good not to let slide IMO.

Best wishes,

Neil
--
Neil C Smith
Artist & Technologist
www.neilcsmith.net
[http://www.neilcsmith.net/assets/ncs-front-lg.jpg]

Neil C Smith
www.neilcsmith.net
Neil C Smith, Artist & Technologist ... Contact. n...@neilcsmith.net; 
neilcsmith_net; neilcsmith-net © Neil C Smith




Praxis LIVE - hybrid visual IDE for creative coding - 
www.praxislive.org


Netbeans presentation in Hong Kong

2018-03-05 Thread Peter Cheung
Dear All

I will hold a 30 mins talk about netbeans plugin development in Hong Kong 
(http://codeaholics.io), is there any good powerpoint i can have a look. I want 
to know what points can attract people to use/extend netbeans.


Thanks
>From Peter


Re: Netbeans presentation in Hong Kong

2018-03-06 Thread Peter Cheung
Thanks Antonio

>From Peter



From: Antonio 
Sent: Tuesday, March 6, 2018 3:58 PM
To: dev@netbeans.incubator.apache.org
Subject: Re: Netbeans presentation in Hong Kong

Hi,

The page at [1] (currently in the making) lists some Apache related
stuff and links for presentations and events.

Cheers,
Antonio

[1]
https://github.com/apache/incubator-netbeans-website/blob/master/netbeans.apache.org/src/content/community/events.asciidoc

On 06/03/18 08:34, Peter Cheung wrote:
> Dear All
>
>  I will hold a 30 mins talk about netbeans plugin development in Hong 
> Kong (http://codeaholics.io), is there any good powerpoint i can have a look. 
> I want to know what points can attract people to use/extend netbeans.
Codeaholics - The Hong Kong Coding Community<http://codeaholics.io/>
codeaholics.io
Codeaholics is a community of passionate programmers in Hong Kong. We hold 
monthly meetups, aiming to share our skills and passion.



>
>
> Thanks
>  From Peter
>

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

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





layer.xml to define new generated file name

2018-03-09 Thread Peter Cheung
Hi All

   I am creating a new file template. How to define the new generated file name 
in layer.xml or wherever? At least I want to file name starts with capital 
letter. Now, it gives me "newSample.g4". Thanks

















Thanks
>From Peter


List of options of "cluster.config"

2018-03-13 Thread Peter Cheung
Hi All
   How to know/get the list of options of parameter “cluster.config”?

$ ant -Dcluster.config=platform

Thanks
From Peter


build error using ant

2018-03-23 Thread Peter Cheung
Hi All
   I can build the netbeans source few days ago, i just “git pull”, now when i 
type “ant”, i got these, please help?

download-selected-extbins:
 [echo] Downloading external binaries (*/external/ directories) for 
cluster.config=basic...
[downloadbinaries] Creating 
/Users/peter/workspace/incubator-netbeans/extbrowser/external/extbrowser-dlls-18.03.15.zip
[downloadbinaries] Downloading: 
http://hg.netbeans.org/binaries/2DC61D81338329D31905395F4738F58FFDCF8F2E-extbrowser-dlls-18.03.15.zip
[downloadbinaries] Could not download 
2DC61D81338329D31905395F4738F58FFDCF8F2E-extbrowser-dlls-18.03.15.zip to 
/Users/peter/.hgexternalcache/2DC61D81338329D31905395F4738F58FFDCF8F2E-extbrowser-dlls-18.03.15.zip:
 java.net.SocketException: Connection reset

BUILD FAILED
/Users/peter/workspace/incubator-netbeans/nbbuild/build.xml:124: Could not 
download 2DC61D81338329D31905395F4738F58FFDCF8F2E-extbrowser-dlls-18.03.15.zip 
from http://hg.netbeans.org/binaries/: java.io.IOException: Could not download 
2DC61D81338329D31905395F4738F58FFDCF8F2E-extbrowser-dlls-18.03.15.zip to 
/Users/peter/.hgexternalcache/2DC61D81338329D31905395F4738F58FFDCF8F2E-extbrowser-dlls-18.03.15.zip:
 java.net.SocketException: Connection reset
at 
org.netbeans.nbbuild.extlibs.DownloadBinaries.doDownload(DownloadBinaries.java:249)
at 
org.netbeans.nbbuild.extlibs.DownloadBinaries.fillInFile(DownloadBinaries.java:190)
at 
org.netbeans.nbbuild.extlibs.DownloadBinaries.execute(DownloadBinaries.java:156)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.Main.runBuild(Main.java:857)
at org.apache.tools.ant.Main.startAnt(Main.java:236)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:287)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:113)
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:210)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:735)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:678)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:706)
at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1569)
at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
at 
org.netbeans.nbbuild.extlibs.DownloadBinaries.downloadFromServer(DownloadBinaries.java:272)
at 
org.netbeans.nbbuild.extlibs.DownloadBinaries.legacyDownload(DownloadBinaries.java:262)
at 
org.netbeans.nbbuild.extlibs.DownloadBinaries.lambda$execute$1(DownloadBinaries.java:156)
at 
org.netbeans.nbbuild.extlibs.DownloadBinaries.doDownload(DownloadBinaries.java:226)
... 18 more

Total time: 3 seconds


Thanks
From Peter


Re: build error using ant

2018-03-24 Thread Peter Cheung
no and tried many times


Thanks
>From Peter



From: cowwoc 
Sent: Saturday, March 24, 2018 12:04 PM
To: dev@netbeans.incubator.apache.org
Subject: Re: build error using ant

Sounds like an intermittent connectivity issue. Try again...?

Gili

On 2018-03-24 12:00 AM, Peter Cheung wrote:
> Hi All
> I can build the netbeans source few days ago, i just “git pull”, now when 
> i type “ant”, i got these, please help?
>
> download-selected-extbins:
>   [echo] Downloading external binaries (*/external/ directories) for 
> cluster.config=basic...
> [downloadbinaries] Creating 
> /Users/peter/workspace/incubator-netbeans/extbrowser/external/extbrowser-dlls-18.03.15.zip
> [downloadbinaries] Downloading: 
> http://hg.netbeans.org/binaries/2DC61D81338329D31905395F4738F58FFDCF8F2E-extbrowser-dlls-18.03.15.zip
> [downloadbinaries] Could not download 
> 2DC61D81338329D31905395F4738F58FFDCF8F2E-extbrowser-dlls-18.03.15.zip to 
> /Users/peter/.hgexternalcache/2DC61D81338329D31905395F4738F58FFDCF8F2E-extbrowser-dlls-18.03.15.zip:
>  java.net.SocketException: Connection reset
>
> BUILD FAILED
> /Users/peter/workspace/incubator-netbeans/nbbuild/build.xml:124: Could not 
> download 
> 2DC61D81338329D31905395F4738F58FFDCF8F2E-extbrowser-dlls-18.03.15.zip from 
> http://hg.netbeans.org/binaries/: java.io.IOException: Could not download 
> 2DC61D81338329D31905395F4738F58FFDCF8F2E-extbrowser-dlls-18.03.15.zip to 
> /Users/peter/.hgexternalcache/2DC61D81338329D31905395F4738F58FFDCF8F2E-extbrowser-dlls-18.03.15.zip:
>  java.net.SocketException: Connection reset
> at 
> org.netbeans.nbbuild.extlibs.DownloadBinaries.doDownload(DownloadBinaries.java:249)
> at 
> org.netbeans.nbbuild.extlibs.DownloadBinaries.fillInFile(DownloadBinaries.java:190)
> at 
> org.netbeans.nbbuild.extlibs.DownloadBinaries.execute(DownloadBinaries.java:156)
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
> at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
> at org.apache.tools.ant.Task.perform(Task.java:348)
> at org.apache.tools.ant.Target.execute(Target.java:435)
> at org.apache.tools.ant.Target.performTasks(Target.java:456)
> at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
> at 
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
> at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
> at org.apache.tools.ant.Main.runBuild(Main.java:857)
> at org.apache.tools.ant.Main.startAnt(Main.java:236)
> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:287)
> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:113)
> Caused by: java.net.SocketException: Connection reset
> at java.net.SocketInputStream.read(SocketInputStream.java:210)
> at java.net.SocketInputStream.read(SocketInputStream.java:141)
> at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
> at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
> at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
> at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:735)
> at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:678)
> at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:706)
> at 
> sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1569)
> at 
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
> at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
> at 
> org.netbeans.nbbuild.extlibs.DownloadBinaries.downloadFromServer(DownloadBinaries.java:272)
> at 
> org.netbeans.nbbuild.extlibs.DownloadBinaries.legacyDownload(DownloadBinaries.java:262)
> at 
> org.netbeans.nbbuild.extlibs.DownloadBinaries.lambda$execute$1(DownloadBinaries.java:156)
> at 
> org.netbeans.nbbuild.extlibs.DownloadBinaries.doDownload(DownloadBinaries.java:226)
> ... 18 more
>
> Total time: 3 seconds
>
>
> Thanks
>  From Peter



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

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





submit PR

2018-04-01 Thread Peter Cheung
Hi All
   I want to add a filter to the “customize toolbars” window, to filter out the 
buttons i want. Am I welcome for this? I have read 
https://netbeans.apache.org/participate/submit-pr.html , so i just fork it and 
submit PR, right? Do I need to register myself as a team or whatever?
Thanks
From Peter

[cid:4ACD49CE-F8B5-42D4-826D-2C5E343CEF75]


JDK 10 and 11 roadmap

2018-04-29 Thread Peter Cheung
Dear All



   When will official release a new verison that supports JDK 10? Where I can 
find the roadmap with time?

Thanks
>From Peter


Re: JDK 10 and 11 roadmap

2018-04-30 Thread Peter Cheung
thanks, let me test it

> On 30 Apr 2018, at 12:58 AM, Geertjan Wielenga 
>  wrote:
> 
> Do a git clone on Apache NetBeans Git, build it, and run it on JDK 10 or 11.
> 
> Gj
> 
> On Sunday, April 29, 2018, Peter Cheung  wrote:
> 
>> Dear All
>> 
>> 
>> 
>>   When will official release a new verison that supports JDK 10? Where I
>> can find the roadmap with time?
>> 
>> Thanks
>> From Peter
>> 


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

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





HELP : output can't print color text in one netbeans but ok in other

2018-05-21 Thread Peter Cheung
Hi All

   output can't print color text in one netbeans but ok in other. They have 
same "output" setting, why? Same jdk too.


Please see 
http://peter.quantr.hk/2018/05/netbeans-console-has-no-color-but-has-color-in-my-other-mac/


Thanks
>From Peter


Re: HELP : output can't print color text in one netbeans but ok in other

2018-05-21 Thread Peter Cheung
My two mac are same locale : US English. One can have color text and the other 
can't


From: Emilian Bold 
Sent: Tuesday, May 22, 2018 12:09 AM
To: dev@netbeans.incubator.apache.org
Subject: Re: HELP : output can't print color text in one netbeans but ok in 
other

Maybe some locale problem that is messing with the ANSI escape sequences?

--emi

‐‐‐ Original Message ‐‐‐

On 21 May 2018 7:04 PM, Peter Cheung  wrote:

> Hi All
>
> output can't print color text in one netbeans but ok in other. They have same 
> "output" setting, why? Same jdk too.
>
> Please see 
> http://peter.quantr.hk/2018/05/netbeans-console-has-no-color-but-has-color-in-my-other-mac/
>
> Thanks
>
> From Peter


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

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





Re: HELP : output can't print color text in one netbeans but ok inother

2018-05-22 Thread Peter Cheung
Created a ticket in jira https://issues.apache.org/jira/browse/NETBEANS-822


Not sure if this is helpful, since i created 4 issues in the past but none of 
them has been resolve.


Thanks
From Peter



From: Christian Lenz 
Sent: Tuesday, May 22, 2018 2:29 PM
To: dev@netbeans.incubator.apache.org
Subject: AW: HELP : output can't print color text in one netbeans but ok inother

+1 for creating a ticket to make a better Color handling inside the InputOutput 
processor.

Gesendet von Mail für Windows 10

Von: Laszlo Kishalmi
Gesendet: Montag, 21. Mai 2018 18:24
An: dev@netbeans.incubator.apache.org
Betreff: Re: HELP : output can't print color text in one netbeans but ok inother

Well NetBeans InputOutput system (The one is responsible for displaying
the console output), has very limited ANSI processing capability.

It is better to not count on it. though you can raise an
improvement/feature request.

Most of the coloring comes from different output processors, which
understands the outputted line and colors them accordingly.


On 05/21/2018 09:09 AM, Emilian Bold wrote:
> Maybe some locale problem that is messing with the ANSI escape sequences?
>
> --emi
>
> �\�\�\�\�\�\�\ Original Message �\�\�\�\�\�\�\
>
> On 21 May 2018 7:04 PM, Peter Cheung  wrote:
>
>> Hi All
>>
>> output can't print color text in one netbeans but ok in other. They have 
>> same "output" setting, why? Same jdk too.
>>
>> Please see 
>> http://peter.quantr.hk/2018/05/netbeans-console-has-no-color-but-has-color-in-my-other-mac/
>>
>> Thanks
>>
>>  From Peter
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
> For additional commands, e-mail: dev-h...@netbeans.incubator.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.incubator.apache.org
For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org

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






output window coloring question

2018-05-24 Thread Peter Cheung
Hi

   i saw maven can print colored text in output window, after hacking maven, i 
know it uses library "org.fusesource.jansi.Ansi" to print colored text, but my 
testing program still can't see any color. The most amazing thing is that : in 
the output window, maven's text has color, but just my text has no color. Any 
hints?


my testing program:



import org.junit.Test;

import static org.fusesource.jansi.Ansi.*;

import static org.fusesource.jansi.Ansi.Color.*;

import org.fusesource.jansi.AnsiConsole;


public class TestConsole {


@Test

public void test() throws Exception {

// String ANSI_RESET = "\u001B[0m";

// String ANSI_RED = "\u001B[31m";

// System.out.print(ANSI_RED + "XX");

// System.out.flush();

// System.out.println(ANSI_RESET);

// System.out.println("\033[31;1mHello\033[0m, \033[32;1;2mworld!\033[0m");

// System.out.println((char) 27 + "[31m" + "ERROR MESSAGE IN RED");

// System.out.println((char) 27 + "[33mYELLOW");

AnsiConsole.systemInstall();

System.out.println(ansi().eraseScreen().fg(RED).a("Hello").fg(GREEN).a(" 
World").reset());

}

}



Thanks
>From Peter