Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Opening an editor without bringing it to top
Opening an editor without bringing it to top [message #323859] Thu, 10 January 2008 10:03 Go to next message
Eclipse UserFriend
Hey,

is it possible to open an editor but not bringing it to the top. at the
moment i am working around this by saving the current one before opening
and switching back to it after opening, but that is no final solution
since it shows the openend one for some secs which is quite irritating. i
have looked through the Workbenchpage code and as far as i read it it
allways performs a bringtotop for the freshly opened editor. So the
question could also be: "is there another way to open an editor beside via
IWorkbenchpage.openEditor(), which does not bring it to the top?".

thanks in advance

Philipp
Re: Opening an editor without bringing it to top [message #323860 is a reply to message #323859] Thu, 10 January 2008 11:08 Go to previous messageGo to next message
Eclipse UserFriend
There was a thread or bug on this recently. There is no way to do that.
If it was a bug (searching bugzilla in Eclipse Platform UI would show
it) then it is an enhancement request.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm
Re: Opening an editor without bringing it to top [message #323862 is a reply to message #323859] Thu, 10 January 2008 12:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

have you tried:

openEditor(IEditorInput input, String editorId, boolean activate) throws
PartInitException;

where activate is false?

Philipp Simon wrote:
> Hey,
>
> is it possible to open an editor but not bringing it to the top. at the
> moment i am working around this by saving the current one before opening
> and switching back to it after opening, but that is no final solution
> since it shows the openend one for some secs which is quite irritating.
> i have looked through the Workbenchpage code and as far as i read it it
> allways performs a bringtotop for the freshly opened editor. So the
> question could also be: "is there another way to open an editor beside
> via IWorkbenchpage.openEditor(), which does not bring it to the top?".
>
> thanks in advance
>
> Philipp
>
>
>

--
Thanks,
Rich Kulp
Re: Opening an editor without bringing it to top [message #323863 is a reply to message #323862] Thu, 10 January 2008 12:10 Go to previous messageGo to next message
Eclipse UserFriend
yes i tried that and as allready stated following the sourcecode of
workbenchpage implementation some lines get ommited with activate==false
but bringtotop is somehow allways called. Therefore i guess it wont be
doable via the workbenchpage and i will need another way.
Re: Opening an editor without bringing it to top [message #325556 is a reply to message #323859] Thu, 21 February 2008 17:47 Go to previous message
Eclipse UserFriend
I am also wondering if this is possible

If you find an answer please let me know

Charles
Previous Topic:Package Explorer Handler
Next Topic:Drag File out a View to Package Explorer
Goto Forum:
  


Current Time: Thu Jul 17 17:44:03 EDT 2025

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

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

Back to the top