Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Minimizing RCP App to System Tray
Minimizing RCP App to System Tray [message #397369] Tue, 30 November 2004 04:11 Go to next message
Eclipse UserFriend
Originally posted by: abhay.csdotbu.edu

Hi All,

I am trying to figure out how I can get rid of the application button from
taskbar when it is minimized. I'd like to have an icon in system tray when
it is minimized.

I did play with suggestion mentioned in
http://dev.eclipse.org/newslists/news.eclipse.platform/msg27 866.html. and I
was able to add a system tray icon and get events from it. However, I have
no idea how I can remove the application from taskbar and hide it on
"Minimize".

I'd appreciate any help/hits.

Thanks
Abhay
Re: Minimizing RCP App to System Tray [message #397469 is a reply to message #397369] Tue, 30 November 2004 10:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: 7ukena.informatik.uni-hamburg.de

Hi Abhay,

Abhay wrote:
> taskbar when it is minimized. I'd like to have an icon in system tray when
> it is minimized.

Have a look at Bibster (bibster.sf.net). It's a Eclipse-based P2P
bibliography database that has the option to minimize to the systray.
After you close the application it asks you whether it should run in the
background. If you choose "yes" the window will be removed from the
taskbar but the systray-icon will remain. Source is available via CVS.

Hope this helps,
Stefan
Re: Minimizing RCP App to System Tray [message #397475 is a reply to message #397369] Tue, 30 November 2004 12:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: happy.gear.hu

Abhay wrote:
> Hi All,
>
> I am trying to figure out how I can get rid of the application button from
> taskbar when it is minimized. I'd like to have an icon in system tray when
> it is minimized.

(IWorkbenchWindow)window.getShell().setVisible(false);

]-[.
Re: Minimizing RCP App to System Tray [message #397691 is a reply to message #397469] Wed, 01 December 2004 05:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: abhay.csdotbu.edu

Thanks Stefan,

I've downloaded the source and trying to figure out how it is working. Looks
like you have got a mix of SWT/AWT/Swing.

I am pretty new to Eclipse and RCP, it'll probably take me a while to get a
grip. :-)

Thanks
Abhay

"Stefan Ukena" <7ukena@informatik.uni-hamburg.de> wrote in message
news:cohj9t$l5s$1@www.eclipse.org...
> Hi Abhay,
>
> Abhay wrote:
> > taskbar when it is minimized. I'd like to have an icon in system tray
when
> > it is minimized.
>
> Have a look at Bibster (bibster.sf.net). It's a Eclipse-based P2P
> bibliography database that has the option to minimize to the systray.
> After you close the application it asks you whether it should run in the
> background. If you choose "yes" the window will be removed from the
> taskbar but the systray-icon will remain. Source is available via CVS.
>
> Hope this helps,
> Stefan
Re: Minimizing RCP App to System Tray [message #397728 is a reply to message #397475] Wed, 01 December 2004 19:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: abhay_remove.csdotbu.edu

Thanks!
This worked and default-handler on system tray is able to switch this
flag back to visible and the taskbar button shows up. However, it
doesn't bring this window to front. It still remains minimized.

If I use .setMaximized, it does bring the window in front.

item.addListener (SWT.DefaultSelection, new Listener () {
public void handleEvent (Event event) {
System.out.println("default selection");
mwShell.setVisible(true); /* gets taskbar button back */
mwShell.setMaximized(true); /*this brings the window to front but
brings it maximized, no help :-( */
}
});

Any ideas on how I can accomplish this?

-Abhay

]-[appy wrote:
> Abhay wrote:
>
>> Hi All,
>>
>> I am trying to figure out how I can get rid of the application button
>> from
>> taskbar when it is minimized. I'd like to have an icon in system tray
>> when
>> it is minimized.
>
>
> (IWorkbenchWindow)window.getShell().setVisible(false);
>
> ]-[.
Re: Minimizing RCP App to System Tray [message #397893 is a reply to message #397728] Wed, 01 December 2004 19:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: abhay_remove.csdotbu.edu

I should be searching SWT archives first. :-)
As per

http://dev.eclipse.org/newslists/news.eclipse.platform.swt/m sg13256.html

following code works-

mwShell.setVisible(true);
mwShell.setMinimized(false);
mwShell.forceActive();

-Abhay

Abhay wrote:

> Thanks!
> This worked and default-handler on system tray is able to switch this
> flag back to visible and the taskbar button shows up. However, it
> doesn't bring this window to front. It still remains minimized.
>
> If I use .setMaximized, it does bring the window in front.
>
> item.addListener (SWT.DefaultSelection, new Listener () {
> public void handleEvent (Event event) {
> System.out.println("default selection");
> mwShell.setVisible(true); /* gets taskbar button back */
> mwShell.setMaximized(true); /*this brings the window to front
> but brings it maximized, no help :-( */
> }
> });
>
> Any ideas on how I can accomplish this?
>
> -Abhay
>
> ]-[appy wrote:
>
>> Abhay wrote:
>>
>>> Hi All,
>>>
>>> I am trying to figure out how I can get rid of the application button
>>> from
>>> taskbar when it is minimized. I'd like to have an icon in system tray
>>> when
>>> it is minimized.
>>
>>
>>
>> (IWorkbenchWindow)window.getShell().setVisible(false);
>>
>> ]-[.
Re: Minimizing RCP App to System Tray [message #436108 is a reply to message #397691] Wed, 31 August 2005 07:21 Go to previous messageGo to next message
Pietro is currently offline PietroFriend
Messages: 27
Registered: July 2009
Junior Member
Abhay ha scritto:
> Thanks Stefan,
>
> I've downloaded the source and trying to figure out how it is working. Looks
> like you have got a mix of SWT/AWT/Swing.
>
> I am pretty new to Eclipse and RCP, it'll probably take me a while to get a
> grip. :-)
>
> Thanks
> Abhay
>
> "Stefan Ukena" <7ukena@informatik.uni-hamburg.de> wrote in message
> news:cohj9t$l5s$1@www.eclipse.org...
>
>>Hi Abhay,
>>
>>Abhay wrote:
>>
>>>taskbar when it is minimized. I'd like to have an icon in system tray
>
> when
>
>>>it is minimized.
>>
>>Have a look at Bibster (bibster.sf.net). It's a Eclipse-based P2P
>>bibliography database that has the option to minimize to the systray.
>>After you close the application it asks you whether it should run in the
>>background. If you choose "yes" the window will be removed from the
>>taskbar but the systray-icon will remain. Source is available via CVS.
>>
>>Hope this helps,
>>Stefan
>
>
>
Hi Abhay,
please can you tell me how you have accomplished your problem?
My primary doubt is how hide the parent shell and avoid memory leak. The
solution wrotten by ]-[appy seems to lead there.

Thanks in advance,
Pietro
Re: Minimizing RCP App to System Tray [message #436114 is a reply to message #436108] Wed, 31 August 2005 09:35 Go to previous message
Eclipse UserFriend
Originally posted by: mail4zlq.gmail.com

Donot forget to share the way after you got it :-)

> Abhay ha scritto:
>
>> Thanks Stefan,
>>
>> I've downloaded the source and trying to figure out how it is working.
>> Looks
>> like you have got a mix of SWT/AWT/Swing.
>>
>> I am pretty new to Eclipse and RCP, it'll probably take me a while to
>> get a
>> grip. :-)
>>
>> Thanks
>> Abhay
>>
>> "Stefan Ukena" <7ukena@informatik.uni-hamburg.de> wrote in message
>> news:cohj9t$l5s$1@www.eclipse.org...
>>
>>> Hi Abhay,
>>>
>>> Abhay wrote:
>>>
>>>> taskbar when it is minimized. I'd like to have an icon in system tray
>>
>>
>> when
>>
>>>> it is minimized.
>>>
>>>
>>> Have a look at Bibster (bibster.sf.net). It's a Eclipse-based P2P
>>> bibliography database that has the option to minimize to the systray.
>>> After you close the application it asks you whether it should run in the
>>> background. If you choose "yes" the window will be removed from the
>>> taskbar but the systray-icon will remain. Source is available via CVS.
>>>
>>> Hope this helps,
>>> Stefan
>>
>>
>>
>>
> Hi Abhay,
> please can you tell me how you have accomplished your problem?
> My primary doubt is how hide the parent shell and avoid memory leak. The
> solution wrotten by ]-[appy seems to lead there.
>
> Thanks in advance,
> Pietro
Previous Topic:RetargetAction key binding only works when subclassing?
Next Topic:[Newbie] Where to fill the widget content?
Goto Forum:
  


Current Time: Thu Dec 05 16:44:57 GMT 2024

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

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

Back to the top