[sip-comm-dev] GSOC Introduction


#1

Hello everyone,

I am Atul, a prefinal year student of ITBHU from India. I am 21 and will be
working on adding proxy support to sip communicator. This is my first
participation in GSOC and also in open source software development. I am
very excited about it.

I would also love to have my project on java.net
My username for java.net is sylar

I will be blogging on http://atulsip.wordpress.com regarding the progress
about the project.

Cheers,
Atul Aggarwal


#2

Hi,
I've sent this e-mail to sipcom-gsoc-students mailing list, but I thought that not all dev members might read gsoc mailinglist so I decided to also send this to dev mailing list.

My name is Martin Harvan and I live in Slovakia. I'm 23 and am 3rd year student of Computer Science.

I will be working on moving from JMF (Java Media Framework) to FMJ with guidance from Ken Larson. I am feeling very enthusiastic about this project and can't wait for the summer to begin (or rather for my school to end :slight_smile: )

I have set up a blog for GSoC progress that I will try to update often it is located at gsoc.rubycoder.org.

I am subscribed to the dev mailinglist. I have java.net account (kane77) and I think svn would be very good to have.

You can also contact me - (jabber/mail - martinhrvn@gmail.com, icq - 265 634 317, irc - kane77 in #sip-communicator on freenode)

I feel this summer will be very interesting and I will hopefully be useful for Sip Communicator community and will learn a lot of new stuff.

Regards Martin Harvan

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#3

Hi!

A click on the systray minimizes the SC, another restores it. I've the
problem, that a doubleclick on the minized app restores it and immediately
closes it again, as I am used to doubleclick on trayicons.
I'd like to change the code, that this will be prevented.

* @author Nicolas Chamouard
* @author Yana Stamcheva

May I do this in your code? (Actually the change is already finished) - May
I commit your classes :wink:

        trayIcon.addActionListener(new ActionListener()
        {
            public void actionPerformed(ActionEvent e)
            {
! long currentTime = System.currentTimeMillis();
                UIService uiService = SystrayActivator.getUIService();

                boolean isVisible;

                isVisible = ! uiService.isVisible();
! if (isVisible) {
! setVisibleTime = currentTime;
! } else if (currentTime < (setVisibleTime + 2000)) {
! // Do nothing. the last restore is less than 2 seconds,
so it is very
! // likely, that the user made a double click. prevent
the main window
! // from opening and immediately closing again.
! return;
! }

                uiService.setVisible(isVisible);

                ConfigurationService configService
                    = SystrayActivator.getConfigurationService();

                configService.setProperty(

"net.java.sip.communicator.impl.systray.showApplication",
                        new Boolean(isVisible));
            }
        });

Cheers,thomas

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#4

Hey Thomas,

I agree this is a problem and your fix seems fine. I am a bit worried about
about the 2s condition though. A user could mistakenly click on our icon,
realize her error and then try to close our window with a second click that
would come than 2s later. Not closing the window at that point could be just
as frustrating as the behaviour you described.

Simply reducing the interval would probably not be a good way to go either
because we would risk going beneath the double-click interval that certain
users are used to.

I guess it would be best if we could somehow determine the length of that
interval from the operating system. I am not at all an UI expert, but I
think I remember seeing methods in swing that do this for you. ( ... or
maybe it was a UIDefaults property ... not sure any more).

Any thoughts on how we could do this?

Cheers
Emil

···

On Wed, Apr 23, 2008 at 9:57 AM, Thomas Hofer < mailinglisten@familie-hofer.net> wrote:

Hi!

A click on the systray minimizes the SC, another restores it. I've the
problem, that a doubleclick on the minized app restores it and immediately
closes it again, as I am used to doubleclick on trayicons.
I'd like to change the code, that this will be prevented.

* @author Nicolas Chamouard
* @author Yana Stamcheva

May I do this in your code? (Actually the change is already finished) -
May
I commit your classes :wink:

       trayIcon.addActionListener(new ActionListener()
       {
           public void actionPerformed(ActionEvent e)
           {
! long currentTime = System.currentTimeMillis();
               UIService uiService = SystrayActivator.getUIService();

               boolean isVisible;

               isVisible = ! uiService.isVisible();
! if (isVisible) {
! setVisibleTime = currentTime;
! } else if (currentTime < (setVisibleTime + 2000)) {
! // Do nothing. the last restore is less than 2
seconds,
so it is very
! // likely, that the user made a double click. prevent
the main window
! // from opening and immediately closing again.
! return;
! }

               uiService.setVisible(isVisible);

               ConfigurationService configService
                   = SystrayActivator.getConfigurationService();

               configService.setProperty(

"net.java.sip.communicator.impl.systray.showApplication",
                       new Boolean(isVisible));
           }
       });

Cheers,thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#5

Hi Emil!

Good Point!

I found a method to get the system's double-click-interval
(Toolkit.getDefaultToolkit().getDesktopProperty("awt.multiClickInterval"))).
I propose to set the timer to this interval. On my windows-XP the timer is
currently 500ms. But if I change it in the control panel, this value also
changes in java. So this would be fine, as a user is used to his
double-click-speed. And we can prevent unwanted doubleclicks, whereas two
single clicks do, what the user expects.

WDYT?

Cheers.

Thomas

···

Von: Emil Ivov [mailto:emcho@sip-communicator.org]
Gesendet: Mittwoch, 23. April 2008 13:59
An: dev@sip-communicator.dev.java.net
Betreff: Re: [sip-comm-dev] Systray-Click

Hey Thomas,

I agree this is a problem and your fix seems fine. I am a bit worried about
about the 2s condition though. A user could mistakenly click on our icon,
realize her error and then try to close our window with a second click that
would come than 2s later. Not closing the window at that point could be just
as frustrating as the behaviour you described.

Simply reducing the interval would probably not be a good way to go either
because we would risk going beneath the double-click interval that certain
users are used to.

I guess it would be best if we could somehow determine the length of that
interval from the operating system. I am not at all an UI expert, but I
think I remember seeing methods in swing that do this for you. ( ... or
maybe it was a UIDefaults property ... not sure any more).

Any thoughts on how we could do this?

Cheers
Emil

On Wed, Apr 23, 2008 at 9:57 AM, Thomas Hofer <mailinglisten@familie-hofer.net> wrote:

Hi!

A click on the systray minimizes the SC, another restores it. I've the
problem, that a doubleclick on the minized app restores it and immediately
closes it again, as I am used to doubleclick on trayicons.
I'd like to change the code, that this will be prevented.

* @author Nicolas Chamouard
* @author Yana Stamcheva

May I do this in your code? (Actually the change is already finished) - May
I commit your classes :wink:

       trayIcon.addActionListener(new ActionListener()
       {
           public void actionPerformed(ActionEvent e)
           {
! long currentTime = System.currentTimeMillis();
               UIService uiService = SystrayActivator.getUIService();

               boolean isVisible;

               isVisible = ! uiService.isVisible();
! if (isVisible) {
! setVisibleTime = currentTime;
! } else if (currentTime < (setVisibleTime + 2000)) {
! // Do nothing. the last restore is less than 2 seconds,
so it is very
! // likely, that the user made a double click. prevent
the main window
! // from opening and immediately closing again.
! return;
! }

               uiService.setVisible(isVisible);

               ConfigurationService configService
                   = SystrayActivator.getConfigurationService();

               configService.setProperty(

"net.java.sip.communicator.impl.systray.showApplication",
                       new Boolean(isVisible));
           }
       });

Cheers,thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#6

Great! Sounds perfect.

Cheers
Emil

P.S. Ah, one more thing. Can you please make sure that your braces are each
on a line of its one? ... conventions, conventions :slight_smile:

···

On Wed, Apr 23, 2008 at 2:54 PM, Thomas Hofer < mailinglisten@familie-hofer.net> wrote:

Hi Emil!

Good Point!

I found a method to get the system's double-click-interval (Toolkit.getDefaultToolkit().getDesktopProperty("awt.multiClickInterval"))).
I propose to set the timer to this interval. On my windows-XP the timer is
currently 500ms. But if I change it in the control panel, this value also
changes in java. So this would be fine, as a user is used to his
double-click-speed. And we can prevent unwanted doubleclicks, whereas two
single clicks do, what the user expects.

WDYT?

Cheers.

Thomas

*Von:* Emil Ivov [mailto:emcho@sip-communicator.org]
*Gesendet:* Mittwoch, 23. April 2008 13:59
*An:* dev@sip-communicator.dev.java.net
*Betreff:* Re: [sip-comm-dev] Systray-Click

Hey Thomas,

I agree this is a problem and your fix seems fine. I am a bit worried
about about the 2s condition though. A user could mistakenly click on our
icon, realize her error and then try to close our window with a second click
that would come than 2s later. Not closing the window at that point could be
just as frustrating as the behaviour you described.

Simply reducing the interval would probably not be a good way to go either
because we would risk going beneath the double-click interval that certain
users are used to.

I guess it would be best if we could somehow determine the length of that
interval from the operating system. I am not at all an UI expert, but I
think I remember seeing methods in swing that do this for you. ( ... or
maybe it was a UIDefaults property ... not sure any more).

Any thoughts on how we could do this?

Cheers
Emil

On Wed, Apr 23, 2008 at 9:57 AM, Thomas Hofer < > mailinglisten@familie-hofer.net> wrote:

Hi!

A click on the systray minimizes the SC, another restores it. I've the
problem, that a doubleclick on the minized app restores it and immediately
closes it again, as I am used to doubleclick on trayicons.
I'd like to change the code, that this will be prevented.

* @author Nicolas Chamouard
* @author Yana Stamcheva

May I do this in your code? (Actually the change is already finished) -
May
I commit your classes :wink:

       trayIcon.addActionListener(new ActionListener()
       {
           public void actionPerformed(ActionEvent e)
           {
! long currentTime = System.currentTimeMillis();
               UIService uiService = SystrayActivator.getUIService();

               boolean isVisible;

               isVisible = ! uiService.isVisible();
! if (isVisible) {
! setVisibleTime = currentTime;
! } else if (currentTime < (setVisibleTime + 2000)) {
! // Do nothing. the last restore is less than 2
seconds,
so it is very
! // likely, that the user made a double click. prevent
the main window
! // from opening and immediately closing again.
! return;
! }

               uiService.setVisible(isVisible);

               ConfigurationService configService
                   = SystrayActivator.getConfigurationService();

               configService.setProperty(

"net.java.sip.communicator.impl.systray.showApplication",
                       new Boolean(isVisible));
           }
       });

Cheers,thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#7

Sure :wink: (Did not run the codeformatter yet)

Cheers, thomas

···

Von: Emil Ivov [mailto:emcho@sip-communicator.org]
Gesendet: Mittwoch, 23. April 2008 15:03
An: dev@sip-communicator.dev.java.net
Betreff: Re: [sip-comm-dev] Systray-Click

Great! Sounds perfect.

Cheers
Emil

P.S. Ah, one more thing. Can you please make sure that your braces are each
on a line of its one? ... conventions, conventions :slight_smile:

On Wed, Apr 23, 2008 at 2:54 PM, Thomas Hofer <mailinglisten@familie-hofer.net> wrote:

Hi Emil!

Good Point!

I found a method to get the system's double-click-interval
(Toolkit.getDefaultToolkit().getDesktopProperty("awt.multiClickInterval"))).
I propose to set the timer to this interval. On my windows-XP the timer is
currently 500ms. But if I change it in the control panel, this value also
changes in java. So this would be fine, as a user is used to his
double-click-speed. And we can prevent unwanted doubleclicks, whereas two
single clicks do, what the user expects.

WDYT?

Cheers.

Thomas

Von: Emil Ivov [mailto:emcho@sip-communicator.org]
Gesendet: Mittwoch, 23. April 2008 13:59
An: dev@sip-communicator.dev.java.net
Betreff: Re: [sip-comm-dev] Systray-Click

Hey Thomas,

I agree this is a problem and your fix seems fine. I am a bit worried about
about the 2s condition though. A user could mistakenly click on our icon,
realize her error and then try to close our window with a second click that
would come than 2s later. Not closing the window at that point could be just
as frustrating as the behaviour you described.

Simply reducing the interval would probably not be a good way to go either
because we would risk going beneath the double-click interval that certain
users are used to.

I guess it would be best if we could somehow determine the length of that
interval from the operating system. I am not at all an UI expert, but I
think I remember seeing methods in swing that do this for you. ( ... or
maybe it was a UIDefaults property ... not sure any more).

Any thoughts on how we could do this?

Cheers
Emil

On Wed, Apr 23, 2008 at 9:57 AM, Thomas Hofer <mailinglisten@familie-hofer.net> wrote:

Hi!

A click on the systray minimizes the SC, another restores it. I've the
problem, that a doubleclick on the minized app restores it and immediately
closes it again, as I am used to doubleclick on trayicons.
I'd like to change the code, that this will be prevented.

* @author Nicolas Chamouard
* @author Yana Stamcheva

May I do this in your code? (Actually the change is already finished) - May
I commit your classes :wink:

       trayIcon.addActionListener(new ActionListener()
       {
           public void actionPerformed(ActionEvent e)
           {
! long currentTime = System.currentTimeMillis();
               UIService uiService = SystrayActivator.getUIService();

               boolean isVisible;

               isVisible = ! uiService.isVisible();
! if (isVisible) {
! setVisibleTime = currentTime;
! } else if (currentTime < (setVisibleTime + 2000)) {
! // Do nothing. the last restore is less than 2 seconds,
so it is very
! // likely, that the user made a double click. prevent
the main window
! // from opening and immediately closing again.
! return;
! }

               uiService.setVisible(isVisible);

               ConfigurationService configService
                   = SystrayActivator.getConfigurationService();

               configService.setProperty(

"net.java.sip.communicator.impl.systray.showApplication",
                       new Boolean(isVisible));
           }
       });

Cheers,thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net