Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » [Cocoa] Annoying system beep/bell
[Cocoa] Annoying system beep/bell [message #509237] Thu, 21 January 2010 18:17 Go to next message
Mickael Istria is currently offline Mickael Istria
Messages: 765
Registered: July 2009
Location: Grenoble, France
Senior Member
Hi all,

In our product, we have a strange behavior on MacOSX: when giving focus to one of our editors view (precisely a GMF editor), then we here a "bong", a kind of system bell.
From here, I have 2 questions, and I'd appreciate any help for any of these questions since I did not find any help by googling:
* What could explain this "bong" ?
* Is there a way to deactivate the system bell in our application (by setting a system property or a preference for example) ?

Thanks in advance

--
Mickael Istria - BonitaSoft S.A.
http://www.bonitasoft.com/products/downloads.php
Re: [Cocoa] Annoying system beep/bell [message #509246 is a reply to message #509237] Thu, 21 January 2010 18:51 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.
Messages: 621
Registered: July 2009
Senior Member
On 21/01/10 11:47 PM, Mickael Istria wrote:
> In our product, we have a strange behavior on MacOSX: when giving focus
> to one of our editors view (precisely a GMF editor), then we here a
> "bong", a kind of system bell.
> From here, I have 2 questions, and I'd appreciate any help for any of
> these questions since I did not find any help by googling:
> * What could explain this "bong" ?

Your GMF editor is calling Display.beep();

> * Is there a way to deactivate the system bell in our application (by
> setting a system property or a preference for example) ?

You can reduce the Alert volume to zero in the System Preferences.
(affects all apps)

- Prakash
Platform UI Team, IBM

Blog <http://blog.eclipse-tips.com>
Twitter <http://www.twitter.com/Eclipse_Tips>
Re: [Cocoa] Annoying system beep/bell [message #509420 is a reply to message #509246] Fri, 22 January 2010 12:14 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael Istria
Messages: 765
Registered: July 2009
Location: Grenoble, France
Senior Member
Prakash G.R. a écrit :
> On 21/01/10 11:47 PM, Mickael Istria wrote:
>> In our product, we have a strange behavior on MacOSX: when giving focus
>> to one of our editors view (precisely a GMF editor), then we here a
>> "bong", a kind of system bell.
>> From here, I have 2 questions, and I'd appreciate any help for any of
>> these questions since I did not find any help by googling:
>> * What could explain this "bong" ?
>
> Your GMF editor is calling Display.beep();


I put a breakpoint on this method and could understand where the problem is in our code.
Thanks!


--
Mickael Istria - BonitaSoft S.A.
http://www.bonitasoft.com/products/downloads.php
Re: [Cocoa] Annoying system beep/bell [message #509449 is a reply to message #509420] Fri, 22 January 2010 13:21 Go to previous message
Mickael Istria is currently offline Mickael Istria
Messages: 765
Registered: July 2009
Location: Grenoble, France
Senior Member
Mickael Istria a écrit :
> Prakash G.R. a écrit :
>> On 21/01/10 11:47 PM, Mickael Istria wrote:
>>> In our product, we have a strange behavior on MacOSX: when giving focus
>>> to one of our editors view (precisely a GMF editor), then we here a
>>> "bong", a kind of system bell.
>>> From here, I have 2 questions, and I'd appreciate any help for any of
>>> these questions since I did not find any help by googling:
>>> * What could explain this "bong" ?
>>
>> Your GMF editor is calling Display.beep();
>

Thanks a lot Prakash, we could avoid this beep by investigating around the Display.beep() method.
I opened a bug report about this annoying behaviour: http://bugs.eclipse.org/300486

--
Mickael Istria - BonitaSoft S.A.
http://www.bonitasoft.com/products/downloads.php
Previous Topic:Popup location of context menu contributed by a MenuManager
Next Topic:Problems with Eclipse 3.5.x on Ubuntu? Read this.
Goto Forum:
  


Current Time: Wed Oct 22 05:08:49 GMT 2014

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

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