Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Device.setWarnings(boolean warnings)
Device.setWarnings(boolean warnings) [message #452488] Mon, 21 March 2005 13:21 Go to next message
Yu You is currently offline Yu YouFriend
Messages: 10
Registered: July 2009
Junior Member
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 #452502 is a reply to message #452488] Mon, 21 March 2005 16:16 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
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.

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 #452505 is a reply to message #452502] Mon, 21 March 2005 17:07 Go to previous messageGo to next message
Benjamin Pasero is currently offline Benjamin PaseroFriend
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 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
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 Go to previous messageGo to next message
Yu You is currently offline Yu YouFriend
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 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
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
> > > >>
> > > >>
> > > >>
> > > >>
> > > >
> > > >
> > > >
> > > >
> >
> >
>
>
Previous Topic:Textfield in a PopUp menu - is it possible?
Next Topic:Table and Scrollbars
Goto Forum:
  


Current Time: Thu Apr 25 17:52:45 GMT 2024

Powered by FUDForum. Page generated in 0.03125 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top