Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Use Shell Handle to get window
Use Shell Handle to get window [message #31185] Wed, 14 May 2003 09:48 Go to next message
Eclipse UserFriend
We are writing an eclipse plug-in that is going to allow us to lock-down
our desktop window. In the Java code I am getting all of the workbench
windows and then I am grabbing the one I want and calling
getShell().handle on it. I can pass that handle down to the native code
using JNI and in Windows I can use that handle and cast it to a HWND and
have controll of that window in the native code. In Linux this does not
work. The Shell handle is not the same as the XLib or Motif
Windows/Widgets. So I am wondering if you know of anyway to use the
getShell() method from the org.eclipse.swt.widgets.shell class so that I
can pass a handle down to Motif/Xlib and use that to be able to control
the window. Previously I was using Xlib and was getting a handle on the
window by cycling through all windows and looking for the window name.
That is no longer possible however because we are not going to know what
the window name will be any longer - i18n.

Any assistance would be greatly appreciated.

thank you,
Greg Roberts
IBM
gwrobert@us.ibm.com
Re: Use Shell Handle to get window [message #31381 is a reply to message #31185] Wed, 14 May 2003 10:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: simon.ibm.oti.lab

Post this in the eclipse.platform.swt newsgroup

Simon :-)

"Greg Roberts" <gwrobert@us.ibm.com> wrote in message
news:b9thfq$1g6$1@rogue.oti.com...
> We are writing an eclipse plug-in that is going to allow us to lock-down
> our desktop window. In the Java code I am getting all of the workbench
> windows and then I am grabbing the one I want and calling
> getShell().handle on it. I can pass that handle down to the native code
> using JNI and in Windows I can use that handle and cast it to a HWND and
> have controll of that window in the native code. In Linux this does not
> work. The Shell handle is not the same as the XLib or Motif
> Windows/Widgets. So I am wondering if you know of anyway to use the
> getShell() method from the org.eclipse.swt.widgets.shell class so that I
> can pass a handle down to Motif/Xlib and use that to be able to control
> the window. Previously I was using Xlib and was getting a handle on the
> window by cycling through all windows and looking for the window name.
> That is no longer possible however because we are not going to know what
> the window name will be any longer - i18n.
>
> Any assistance would be greatly appreciated.
>
> thank you,
> Greg Roberts
> IBM
> gwrobert@us.ibm.com
>
Re: Use Shell Handle to get window [message #31513 is a reply to message #31381] Wed, 14 May 2003 10:56 Go to previous message
Eclipse UserFriend
Thank you. Will do.

Simon Arsenault wrote:

> Post this in the eclipse.platform.swt newsgroup

> Simon :-)

> \\\"Greg Roberts\\\" <gwrobert@us.ibm.com> wrote in message
> news:b9thfq$1g6$1@rogue.oti.com...
> > We are writing an eclipse plug-in that is going to allow us to lock-down
> > our desktop window. In the Java code I am getting all of the workbench
> > windows and then I am grabbing the one I want and calling
> > getShell().handle on it. I can pass that handle down to the native code
> > using JNI and in Windows I can use that handle and cast it to a HWND and
> > have controll of that window in the native code. In Linux this does not
> > work. The Shell handle is not the same as the XLib or Motif
> > Windows/Widgets. So I am wondering if you know of anyway to use the
> > getShell() method from the org.eclipse.swt.widgets.shell class so that I
> > can pass a handle down to Motif/Xlib and use that to be able to control
> > the window. Previously I was using Xlib and was getting a handle on the
> > window by cycling through all windows and looking for the window name.
> > That is no longer possible however because we are not going to know what
> > the window name will be any longer - i18n.
> >
> > Any assistance would be greatly appreciated.
> >
> > thank you,
> > Greg Roberts
> > IBM
> > gwrobert@us.ibm.com
> >
Previous Topic:File access
Next Topic:How can i change enable/disable state of actions defined by ActionSet extension?
Goto Forum:
  


Current Time: Tue Aug 05 04:39:02 EDT 2025

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

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

Back to the top