Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Device.setWarnings(boolean warnings)
| |
Re: Device.setWarnings(boolean warnings) [message #452505 is a reply to message #452502] |
Mon, 21 March 2005 17:07 |
Benjamin Pasero Messages: 337 Registered: July 2009 |
Senior Member |
|
|
Grant Gayed wrote:
>The description text is wrong, Device.setWarnings(false) will make warnings
>NOT be printed, and Device.setWarnings(true) will re-enable printing of
>warnings. I'll update the javadoc accordingly.
>
>
Could you tell us, what kind of warnings are meant? Could you give an
example?
Thanks,
Ben
>Grant
>
>"Yu You" <yu.you@nokia.com> wrote in message
>news:d1mmgk$7ap$1@news.eclipse.org...
>
>
>>Hi,
>>
>>The Javadoc says "If the underlying window system supports printing
>>
>>
>warning
>
>
>>messages to the console, setting warnings to true prevents these messages
>>from being printed. If the argument is false message printing is not
>>blocked"
>>
>>But the "Param" says "
>>Parameters:
>>warnings - trueif warnings should be handled, and false otherwise "
>>
>>What exactly does this method do, for example, in Display?
>>
>>Regards,
>>Yu
>>
>>
>>
>>
>
>
>
>
|
|
|
Re: Device.setWarnings(boolean warnings) [message #452538 is a reply to message #452505] |
Mon, 21 March 2005 20:42 |
Grant Gayed Messages: 2150 Registered: July 2009 |
Senior Member |
|
|
Some toolkits will spew warnings if some condition arises that is
recoverable but not desirable (these are different from errors). For
example, the GtkFileChooser spews a warning if the user doesn't have the
theme installed that it expects (see
http://bugzilla.gnome.org/show_bug.cgi?id=149931 ). Clients of SWT
shouldn't really need to use the Device.setWarnings() api.
Grant
"Benjamin Pasero" <bpasero@rssowl.org> wrote in message
news:d1n3o2$shk$1@news.eclipse.org...
> Grant Gayed wrote:
>
> >The description text is wrong, Device.setWarnings(false) will make
warnings
> >NOT be printed, and Device.setWarnings(true) will re-enable printing of
> >warnings. I'll update the javadoc accordingly.
> >
> >
> Could you tell us, what kind of warnings are meant? Could you give an
> example?
>
> Thanks,
> Ben
>
> >Grant
> >
> >"Yu You" <yu.you@nokia.com> wrote in message
> >news:d1mmgk$7ap$1@news.eclipse.org...
> >
> >
> >>Hi,
> >>
> >>The Javadoc says "If the underlying window system supports printing
> >>
> >>
> >warning
> >
> >
> >>messages to the console, setting warnings to true prevents these
messages
> >>from being printed. If the argument is false message printing is not
> >>blocked"
> >>
> >>But the "Param" says "
> >>Parameters:
> >>warnings - trueif warnings should be handled, and false otherwise "
> >>
> >>What exactly does this method do, for example, in Display?
> >>
> >>Regards,
> >>Yu
> >>
> >>
> >>
> >>
> >
> >
> >
> >
|
|
|
Re: Device.setWarnings(boolean warnings) [message #452737 is a reply to message #452538] |
Thu, 24 March 2005 07:09 |
Yu You Messages: 10 Registered: July 2009 |
Junior Member |
|
|
If so, is would be better to mention in the description that this method is
mainly used by the implementation, not for developers.
Thanks for the clarification and fix.
Yu
"Grant Gayed" <grant_gayed@ca.ibm.com> wrote in message
news:d1ngak$fju$1@news.eclipse.org...
> Some toolkits will spew warnings if some condition arises that is
> recoverable but not desirable (these are different from errors). For
> example, the GtkFileChooser spews a warning if the user doesn't have the
> theme installed that it expects (see
> http://bugzilla.gnome.org/show_bug.cgi?id=149931 ). Clients of SWT
> shouldn't really need to use the Device.setWarnings() api.
>
> Grant
>
> "Benjamin Pasero" <bpasero@rssowl.org> wrote in message
> news:d1n3o2$shk$1@news.eclipse.org...
> > Grant Gayed wrote:
> >
> > >The description text is wrong, Device.setWarnings(false) will make
> warnings
> > >NOT be printed, and Device.setWarnings(true) will re-enable printing of
> > >warnings. I'll update the javadoc accordingly.
> > >
> > >
> > Could you tell us, what kind of warnings are meant? Could you give an
> > example?
> >
> > Thanks,
> > Ben
> >
> > >Grant
> > >
> > >"Yu You" <yu.you@nokia.com> wrote in message
> > >news:d1mmgk$7ap$1@news.eclipse.org...
> > >
> > >
> > >>Hi,
> > >>
> > >>The Javadoc says "If the underlying window system supports printing
> > >>
> > >>
> > >warning
> > >
> > >
> > >>messages to the console, setting warnings to true prevents these
> messages
> > >>from being printed. If the argument is false message printing is not
> > >>blocked"
> > >>
> > >>But the "Param" says "
> > >>Parameters:
> > >>warnings - trueif warnings should be handled, and false otherwise "
> > >>
> > >>What exactly does this method do, for example, in Display?
> > >>
> > >>Regards,
> > >>Yu
> > >>
> > >>
> > >>
> > >>
> > >
> > >
> > >
> > >
>
>
|
|
|
Re: Device.setWarnings(boolean warnings) [message #453019 is a reply to message #452737] |
Wed, 30 March 2005 00:14 |
Steve Northover Messages: 1636 Registered: July 2009 |
Senior Member |
|
|
Some applications on X wish to suppress X warnings as well.
"Yu You" <yu.you@nokia.com> wrote in message
news:d1tts8$go5$1@news.eclipse.org...
> If so, is would be better to mention in the description that this method
is
> mainly used by the implementation, not for developers.
>
> Thanks for the clarification and fix.
>
> Yu
>
> "Grant Gayed" <grant_gayed@ca.ibm.com> wrote in message
> news:d1ngak$fju$1@news.eclipse.org...
> > Some toolkits will spew warnings if some condition arises that is
> > recoverable but not desirable (these are different from errors). For
> > example, the GtkFileChooser spews a warning if the user doesn't have the
> > theme installed that it expects (see
> > http://bugzilla.gnome.org/show_bug.cgi?id=149931 ). Clients of SWT
> > shouldn't really need to use the Device.setWarnings() api.
> >
> > Grant
> >
> > "Benjamin Pasero" <bpasero@rssowl.org> wrote in message
> > news:d1n3o2$shk$1@news.eclipse.org...
> > > Grant Gayed wrote:
> > >
> > > >The description text is wrong, Device.setWarnings(false) will make
> > warnings
> > > >NOT be printed, and Device.setWarnings(true) will re-enable printing
of
> > > >warnings. I'll update the javadoc accordingly.
> > > >
> > > >
> > > Could you tell us, what kind of warnings are meant? Could you give an
> > > example?
> > >
> > > Thanks,
> > > Ben
> > >
> > > >Grant
> > > >
> > > >"Yu You" <yu.you@nokia.com> wrote in message
> > > >news:d1mmgk$7ap$1@news.eclipse.org...
> > > >
> > > >
> > > >>Hi,
> > > >>
> > > >>The Javadoc says "If the underlying window system supports printing
> > > >>
> > > >>
> > > >warning
> > > >
> > > >
> > > >>messages to the console, setting warnings to true prevents these
> > messages
> > > >>from being printed. If the argument is false message printing is not
> > > >>blocked"
> > > >>
> > > >>But the "Param" says "
> > > >>Parameters:
> > > >>warnings - trueif warnings should be handled, and false otherwise "
> > > >>
> > > >>What exactly does this method do, for example, in Display?
> > > >>
> > > >>Regards,
> > > >>Yu
> > > >>
> > > >>
> > > >>
> > > >>
> > > >
> > > >
> > > >
> > > >
> >
> >
>
>
|
|
|
Goto Forum:
Current Time: Mon Sep 23 13:36:07 GMT 2024
Powered by FUDForum. Page generated in 0.03421 seconds
|