Re: PrintProvider implementation in the Lookup of a MultiviewElement TopComponent not used!

Oliver Rettig <[email protected]> Tue, 09 May 2017 20:16:03 +0200
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Organization ORAT
Message-ID <2237897.j89zC54Zz1@l560>
Hi Boris,
> Is the File/Print action enabled when your TopComponent is activated?
yes, the actions are active, printpreview and pagesetup work fine with the 
default behavoir which should be active without explicit adding a 
PrintProvider in the lookup.

For this default behavoir the following properties are set:

 putClientProperty(PrintManager.PRINT_PRINTABLE, Boolean.TRUE); 
 putClientProperty(PrintManager.PRINT_NAME, ...);

The strange thing is that the print actions are still available even if I 
comment out the put with the PRINT_PRINTABLE property.

best regards
Oliver
       
> 
> 2017-05-09 19:33 GMT+02:00 Neil C Smith <[email protected]>:
> > Hi,
> > 
> > On Tue, May 9, 2017 at 6:23 PM Oliver Rettig <[email protected]>
> > 
> > wrote:
> >> I throw RuntimeExceptions to be sure:-)
> >> 
> >> But it is not invoked, no exceptions are thrown.
> >> 
> >> any further ideas?
> > 
> > Unfortunately not from me - not made use of PrintProvider yet.  Just
> > checking you weren't only using System.out as a check given it's usually
> > not visible - painful memories of early days with the platform there! ;-)
> > 
> > Good luck with it.
> > 
> > Best wishes,
> > 
> > Neil
> > --
> > Neil C Smith
> > Artist & Technologist
> > www.neilcsmith.net
> > 
> > Praxis LIVE - hybrid visual IDE for creative coding - www.praxislive.org