Browser hides dialogs - Code change possible? [message #15342] |
Tue, 03 April 2007 11:33  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04187 seconds