Re: How to remove the "Customize" menu item from toolbars popupmenu ?

2019-05-07 Thread Emilian Bold
Sure, many of these UI things should be configurable. Even the TopComponent
popup has hardcoded things but there are ugly workarounds to filter those...

--emi

mie., 8 mai 2019, 09:13 Tushar Joshi  a scris:

> As this is a platform issue and platform should be flexible, should we add
> some way to hide such menu items for platform applications?
>
> with regards
> Tushar
>
> Tushar Joshi, Nagpur: http://www.tusharjoshi.com
>
> * MCSD_NET C#, SCJP, RHCE, ZCE, PMP, CSM, SAFe, PRINCE2
>
> * Senior Architect @ Persistent Systems http://www.persistent.com
> * LinkedIn: http://www.linkedin.com/in/tusharvjoshi
>
>
>
> On Wed, May 8, 2019 at 10:19 AM Emilian Bold 
> wrote:
>
>> I didn't do this before nor see an easy workaround.
>>
>> Generally I highly recommend serious Platform applications to maintain
>> an Platform fork and recompile it themselves. Then little
>> customizations like this are just a matter of commenting a few lines
>> of code. Of course, this makes updating the Platform more work, but a
>> workaround is generally even harder to port as it's more complicated.
>>
>> --emi
>>
>> On Wed, May 8, 2019 at 1:50 AM Jerome Lelasseux
>>  wrote:
>> >
>> > In my RCP app the Customize action from the toolbars popup menu
>> confuses users and I'd like to remove it.
>> >
>> > Problem is that the popupmenu is not built from the layer file, it is
>> hardcoded (module Core Windows / ToolbarConfiguration.java / method
>> fillToolbarsMenu() method)... Is there a workaround ? Thanks.
>> >
>> > Jerome
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>


Re: How to remove the "Customize" menu item from toolbars popupmenu ?

2019-05-07 Thread Tushar Joshi
As this is a platform issue and platform should be flexible, should we add
some way to hide such menu items for platform applications?

with regards
Tushar

Tushar Joshi, Nagpur: http://www.tusharjoshi.com

* MCSD_NET C#, SCJP, RHCE, ZCE, PMP, CSM, SAFe, PRINCE2

* Senior Architect @ Persistent Systems http://www.persistent.com
* LinkedIn: http://www.linkedin.com/in/tusharvjoshi



On Wed, May 8, 2019 at 10:19 AM Emilian Bold  wrote:

> I didn't do this before nor see an easy workaround.
>
> Generally I highly recommend serious Platform applications to maintain
> an Platform fork and recompile it themselves. Then little
> customizations like this are just a matter of commenting a few lines
> of code. Of course, this makes updating the Platform more work, but a
> workaround is generally even harder to port as it's more complicated.
>
> --emi
>
> On Wed, May 8, 2019 at 1:50 AM Jerome Lelasseux
>  wrote:
> >
> > In my RCP app the Customize action from the toolbars popup menu confuses
> users and I'd like to remove it.
> >
> > Problem is that the popupmenu is not built from the layer file, it is
> hardcoded (module Core Windows / ToolbarConfiguration.java / method
> fillToolbarsMenu() method)... Is there a workaround ? Thanks.
> >
> > Jerome
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>


Re: How to remove the "Customize" menu item from toolbars popupmenu ?

2019-05-07 Thread Emilian Bold
I didn't do this before nor see an easy workaround.

Generally I highly recommend serious Platform applications to maintain
an Platform fork and recompile it themselves. Then little
customizations like this are just a matter of commenting a few lines
of code. Of course, this makes updating the Platform more work, but a
workaround is generally even harder to port as it's more complicated.

--emi

On Wed, May 8, 2019 at 1:50 AM Jerome Lelasseux
 wrote:
>
> In my RCP app the Customize action from the toolbars popup menu confuses 
> users and I'd like to remove it.
>
> Problem is that the popupmenu is not built from the layer file, it is 
> hardcoded (module Core Windows / ToolbarConfiguration.java / method 
> fillToolbarsMenu() method)... Is there a workaround ? Thanks.
>
> Jerome
>

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

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



Re: Error compiling a very simple Web Java program

2019-05-07 Thread Emilian Bold
You have the error right there:

> error: option -Xbootclasspath/p: not allowed with target 12

>From 
>https://www.oracle.com/technetwork/java/javase/9-relnote-issues-3704069.html

> The boot class path has been mostly removed in this release. The java 
> -Xbootclasspath and -Xbootclasspath/p options have been removed. The javac 
> -bootclaspath option can only be used when compiling to JDK 8 or older. The 
> system property sun.boot.class.path has been removed. Deployments that rely 
> on overriding platform classes for testing purposes with -Xbootclasspath/p 
> will need to changed to use the --patch-module option that is documented in 
> JEP 261. The -Xbootclasspath/a option is unchanged.

--emi

On Wed, May 8, 2019 at 1:20 AM Quang Nguyen  wrote:
>
> Hi,
> Can you let me know what I should do to resolve the error below?
> This is a very simple Web Java program that passes the user’s input from 
> index.jsp to response.jsp
>
> Created dir: /Users/apple/NetBeansProjects/HelloWeb/build/empty
> Created dir: 
> /Users/apple/NetBeansProjects/HelloWeb/build/generated-sources/ap-source-output
> Compiling 1 source file to 
> /Users/apple/NetBeansProjects/HelloWeb/build/web/WEB-INF/classes
> error: option -Xbootclasspath/p: not allowed with target 12
>
> I compiled it in Netbeans 11 using JDK 12.0.1
> Thank you,

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

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



How to remove the "Customize" menu item from toolbars popupmenu ?

2019-05-07 Thread Jerome Lelasseux
In my RCP app the Customize action from the toolbars popup menu confuses users 
and I'd like to remove it. 

Problem is that the popupmenu is not built from the layer file, it is hardcoded 
(module Core Windows / ToolbarConfiguration.java / method fillToolbarsMenu() 
method)... Is there a workaround ? Thanks.
Jerome



Error compiling a very simple Web Java program

2019-05-07 Thread Quang Nguyen
Hi,
Can you let me know what I should do to resolve the error below?
This is a very simple Web Java program that passes the user’s input from 
index.jsp to response.jsp

Created dir: /Users/apple/NetBeansProjects/HelloWeb/build/empty
Created dir: 
/Users/apple/NetBeansProjects/HelloWeb/build/generated-sources/ap-source-output
Compiling 1 source file to 
/Users/apple/NetBeansProjects/HelloWeb/build/web/WEB-INF/classes
error: option -Xbootclasspath/p: not allowed with target 12

I compiled it in Netbeans 11 using JDK 12.0.1
Thank you,

Re: Sass comple error

2019-05-07 Thread Peter Haworth
Thanks Pete.  I should have mentioned that I am running on a Mac with
Netbeans 8.2 and sounds like you are on a Windows box.  Hopefully the fix
to the config file will still works as long as I can find the equivalent
file on my Mac.

*Sent with Shift
*

On Tue, May 7, 2019 at 5:31 AM Pete Whelpton  wrote:

>
> Hi Peter,
>
> I was able to configure a workaround.  Hopefully this will work for you. :)
>
> The problem appears to be that NetBeans SASS support was written for the
> original Ruby SASS implementation.  The root cause is that
> the ide/css.prep/src/org/netbeans/modules/css/prep/sass/SassExecutable.java
> class contains two parameters that are not in the current SASS
> implementations (dart-sass, libsass, npm sass etc.): --cache-location &
> --debug-log, and one parameter that has been renamed: --sourcemap (to
> --source-map)
>
> However, whilst snooping around the NB code, I discovered that there is
> already a (experimental?) class in NetBeans to work with libsass
> implementations.  It will ignore parameters set in the NetBeans Options (so
> it will always generate sourcemaps), but was able to compile SASS using the
> NB11.0 and dart-sass 1.20.1
>
> Here's the steps:
>
> 1) Install dart-sass from https://github.com/sass/dart-sass/releases/
>
> 2) Open your netbeans.conf file (/etc/netbeans.conf in the NB installation
> folder)
>
> 3) Add the following to the netbeans_default_options
> parameter: -J-Dnb.sass.libsass=true
>
> 4) Launch Netbeans, Tools -> Options -> HTML5/JS -> CSS PreProcessors and
> configure it to point to the sass.bat file in your dart-sass installation
> folder
>
>
> I've only tested with some basic stuff, but what I tested worked.
>
>
> P
>
> On Mon, May 6, 2019 at 11:50 PM Peter Haworth  wrote:
>
>> Just getting started setting up Netbeans to compile sass files. Loaded
>> the sass compiler and set all the preferences including the one to compile
>> on save.. First time I try to compile, I get an error "Could not find an
>> option named "cache-location".  Any suggestions?
>> *Sent with Shift
>> *
>>
>


Re: Sass comple error

2019-05-07 Thread Pete Whelpton
Hi Peter,

I was able to configure a workaround.  Hopefully this will work for you. :)

The problem appears to be that NetBeans SASS support was written for the
original Ruby SASS implementation.  The root cause is that
the ide/css.prep/src/org/netbeans/modules/css/prep/sass/SassExecutable.java
class contains two parameters that are not in the current SASS
implementations (dart-sass, libsass, npm sass etc.): --cache-location &
--debug-log, and one parameter that has been renamed: --sourcemap (to
--source-map)

However, whilst snooping around the NB code, I discovered that there is
already a (experimental?) class in NetBeans to work with libsass
implementations.  It will ignore parameters set in the NetBeans Options (so
it will always generate sourcemaps), but was able to compile SASS using the
NB11.0 and dart-sass 1.20.1

Here's the steps:

1) Install dart-sass from https://github.com/sass/dart-sass/releases/

2) Open your netbeans.conf file (/etc/netbeans.conf in the NB installation
folder)

3) Add the following to the netbeans_default_options
parameter: -J-Dnb.sass.libsass=true

4) Launch Netbeans, Tools -> Options -> HTML5/JS -> CSS PreProcessors and
configure it to point to the sass.bat file in your dart-sass installation
folder


I've only tested with some basic stuff, but what I tested worked.


P

On Mon, May 6, 2019 at 11:50 PM Peter Haworth  wrote:

> Just getting started setting up Netbeans to compile sass files. Loaded the
> sass compiler and set all the preferences including the one to compile on
> save.. First time I try to compile, I get an error "Could not find an
> option named "cache-location".  Any suggestions?
> *Sent with Shift
> *
>


RE: git partial commit

2019-05-07 Thread Mike Billman
Thanks!

Mike

From: Philip Durbin 
Sent: Monday, May 6, 2019 6:32 PM
To: Mike Billman 
Cc: users@netbeans.apache.org
Subject: Re: git partial commit

I believe this feature request is being tracked at 
https://issues.apache.org/jira/browse/NETBEANS-428

On Mon, May 6, 2019 at 5:01 PM Mike Billman 
mailto:mikebill...@qcsoftware.com>> wrote:
Is there a way to do this in netbeans?  Don’t have a current need, more just 
curious as we are moving from svn to git where I work.

Mike Billman
Senior Software Engineer
CPTE

[qclogo]

11800 Conrey Rd
Suite 150
Cincinnati, OH 45249

T +1 513 469 1424
E mikebill...@qcsoftware.com
F +1 513 469 1425



Re: New @ActionState annotation doc ?

2019-05-07 Thread Jerome Lelasseux
 Thank you.

Le mardi 7 mai 2019 à 09:34:08 UTC+2, Geertjan Wielenga 
 a écrit :  
 
 There's a reference to it here, though indeed the link to @ActionState 
indicates that the javadoc is missing:
https://bits.netbeans.org/10.0/javadoc/apichanges.html

On the other hand, there's no point in googling when you know the sources are 
available directly on GitHub, i.e., here in this case, lots of info in there:
https://github.com/apache/netbeans/blob/master/platform/openide.awt/src/org/openide/awt/awt/ActionState.java

Gj
On Tue, May 7, 2019 at 9:25 AM Jerome Lelasseux  
wrote:

Hello,
I switched from 8.2 to 11 and I get warning messages about my now deprecated 
BooleanStateActions. The API doc recommends to use the new @ActionState 
annotation instead, but the ActionState javadoc is missing, and I could not 
find help on Google...

Jerome



  

Re: New @ActionState annotation doc ?

2019-05-07 Thread Geertjan Wielenga
There's a reference to it here, though indeed the link to @ActionState
indicates that the javadoc is missing:

https://bits.netbeans.org/10.0/javadoc/apichanges.html

On the other hand, there's no point in googling when you know the sources
are available directly on GitHub, i.e., here in this case, lots of info in
there:

https://github.com/apache/netbeans/blob/master/platform/openide.awt/src/org/openide/awt/awt/ActionState.java

Gj

On Tue, May 7, 2019 at 9:25 AM Jerome Lelasseux 
wrote:

> Hello,
>
> I switched from 8.2 to 11 and I get warning messages about my now
> deprecated BooleanStateActions. The API doc recommends to use the new
> @ActionState annotation instead, but the ActionState javadoc is missing,
> and I could not find help on Google...
>
> Jerome
>
>
>


New @ActionState annotation doc ?

2019-05-07 Thread Jerome Lelasseux
Hello,
I switched from 8.2 to 11 and I get warning messages about my now deprecated 
BooleanStateActions. The API doc recommends to use the new @ActionState 
annotation instead, but the ActionState javadoc is missing, and I could not 
find help on Google...

Jerome