Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Device.setWarnings(boolean warnings)
Device.setWarnings(boolean warnings) [message #452488] |
Mon, 21 March 2005 08:21  |
Eclipse User |
|
|
|
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 #452505 is a reply to message #452502] |
Mon, 21 March 2005 12:07   |
Eclipse User |
|
|
|
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 15:42   |
Eclipse User |
|
|
|
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 02:09   |
Eclipse User |
|
|
|
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] |
Tue, 29 March 2005 19:14  |
Eclipse User |
|
|
|
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: Sun Jul 06 07:52:26 EDT 2025
Powered by FUDForum. Page generated in 0.04488 seconds
|