Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Browser hides dialogs - Code change possible?
Browser hides dialogs - Code change possible? [message #15342] Tue, 03 April 2007 11:33 Go to next message
Eclipse UserFriend
Hi,

I have a problem that locks my workbench. In my workbench there is a view
with a browser in it. Now, after the browser opens a PDF or XML file and I
want to display a dialog my workbench locks. At least that was what I
thought. After some research I discoverd that the dialog is diplayed
correctly, but it is hidden behind the browser (As I said, only if there is
currently a PDF or XML file shown). I think this is an operating system
issue and can not be solved.
So as a dirty workaround, as I could not find another solution, I would like
to minimize the browser view and set its old state after the dialog closes.
The problem is, that the methods to do this in the workbench page are not
public. The method toggleZoom is not what I want. I want to set and get the
state explicit.
I tried this with changing You source code. In IWorkbenchPage I added the
methods setState and getState. In WorkbenchPage I changed the getState to be
public. Now it would work great for me, although it is a little bit dirty to
minimize and restore the view everytime a dialog is show, but I see no other
solution for now. So would it be possible to to change Your code like I did?

Thank You,

Markus
Re: Browser hides dialogs - Code change possible? [message #15408 is a reply to message #15342] Tue, 03 April 2007 12:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rsternberg.innoopract.com

Hi Markus,

Markus Krüger schrieb:
> I have a problem that locks my workbench. In my workbench there is a view
> with a browser in it. Now, after the browser opens a PDF or XML file and I
> want to display a dialog my workbench locks. At least that was what I
> thought. After some research I discoverd that the dialog is diplayed
> correctly, but it is hidden behind the browser (As I said, only if there is
> currently a PDF or XML file shown). I think this is an operating system
> issue and can not be solved.

Weird. It appears that the PDF viewer is painted on the surface of the
browser window. In this case, I think, the only resonable solution is
not to use the browser widget to display PDF or XML, unless it is part
of a modal dialog and thus always on top. It seems that we have to live
with this limitation.

> So as a dirty workaround, as I could not find another solution, I would like
> to minimize the browser view and set its old state after the dialog closes.
> The problem is, that the methods to do this in the workbench page are not
> public. The method toggleZoom is not what I want. I want to set and get the
> state explicit.
> I tried this with changing You source code. In IWorkbenchPage I added the
> methods setState and getState. In WorkbenchPage I changed the getState to be
> public. Now it would work great for me, although it is a little bit dirty to
> minimize and restore the view everytime a dialog is show, but I see no other
> solution for now. So would it be possible to to change Your code like I did?

I'm sorry, but I don't think that we should change the Workbench API
only to provide a workaround. API conformance is one of our key targets.
Although large parts are not implemented yet, and some never will, we
don't want to extend Eclipse APIs.

Ralf
Re: Browser hides dialogs - Code change possible? [message #15474 is a reply to message #15408] Tue, 03 April 2007 13:29 Go to previous messageGo to next message
Eclipse UserFriend
Hmm,

how about somthing like this:

ActionFactory.MINIMIZE.create(getViewSite().getWorkbenchWind ow()).run();
ActionFactory.MAXIMIZE.create(getViewSite().getWorkbenchWind ow()).run();

I found this in a newsgroup entry for eclipse.

Is there another way to minimize, maximize, restore the view?

Thanks,

Markus


"Ralf Sternberg" <rsternberg@innoopract.com> schrieb im Newsbeitrag
news:euu02m$dja$1@build.eclipse.org...
> Hi Markus,
>
> Markus Kr
Re: Browser hides dialogs - Code change possible? [message #15507 is a reply to message #15474] Wed, 04 April 2007 04:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rsternberg.innoopract.com

Hi Markus,

Markus Krüger schrieb:
> how about somthing like this:
>
> ActionFactory.MINIMIZE.create(getViewSite().getWorkbenchWind ow()).run();
> ActionFactory.MAXIMIZE.create(getViewSite().getWorkbenchWind ow()).run();

A couple of classes are still missing for this, but I think they will be
implemented soon. We'll let you know when this is done.

Ralf
Re: Browser hides dialogs - Code change possible? [message #15536 is a reply to message #15507] Wed, 04 April 2007 06:03 Go to previous message
Eclipse UserFriend
Thanks, that would be nice.


"Ralf Sternberg" <rsternberg@innoopract.com> schrieb im Newsbeitrag
news:euvm2o$n30$1@build.eclipse.org...
> Hi Markus,
>
> Markus Kr
Previous Topic:numeric value in Text field
Next Topic:setTitle on view
Goto Forum:
  


Current Time: Tue Jul 15 00:38:58 EDT 2025

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

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

Back to the top