Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Editor positions
Editor positions [message #326730] Mon, 31 March 2008 12:39 Go to next message
Jan Kohnert is currently offline Jan KohnertFriend
Messages: 196
Registered: July 2009
Senior Member
Hello,

how can I get control over the place where a specific editor is opened?
At special circumstances I want a second editor to open located below
another.
Just like it can be down by using the mouse once a editor is allready open.

Thanks!
Re: Editor positions [message #326742 is a reply to message #326730] Mon, 31 March 2008 13:37 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

There is no API to do that.

If you're interested, there's a internal hack in the test plugin that
shows you how to do it programmatically ... but of course, that's not
guaranteed to work at all (never mind release to release :-)

See
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ui.test s/Eclipse%20UI%20Tests/org/eclipse/ui/tests/session/Bug95357 Test.java?view=co
as an example where we try and open multiple stacks

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: Editor positions [message #326746 is a reply to message #326742] Mon, 31 March 2008 14:28 Go to previous messageGo to next message
Jan Kohnert is currently offline Jan KohnertFriend
Messages: 196
Registered: July 2009
Senior Member
Thanks. To sad there is no API available.
Is this the hack you are talking about?
// create the second editor stack using the second editor
DragOperations.drag(current, new EditorDropTarget(new
ExistingWindowProvider(fWin), 0, SWT.BOTTOM), false);
Re: Editor positions [message #326754 is a reply to message #326746] Mon, 31 March 2008 16:44 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Jan Kohnert wrote:
> Thanks. To sad there is no API available.
> Is this the hack you are talking about?
> // create the second editor stack using the second editor
> DragOperations.drag(current, new EditorDropTarget(new
> ExistingWindowProvider(fWin), 0, SWT.BOTTOM), false);

Yes, that looks like it.

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: Editor positions [message #326766 is a reply to message #326746] Tue, 01 April 2008 02:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Jan Kohnert wrote:
> Thanks. To sad there is no API available.

You should see if you can find a bugzilla about it; I'd be surprised if
there is not already one, but if not feel free to enter it as a feature
request.

Eric
Re: Editor positions [message #326779 is a reply to message #326766] Tue, 01 April 2008 12:24 Go to previous messageGo to next message
Jan Kohnert is currently offline Jan KohnertFriend
Messages: 196
Registered: July 2009
Senior Member
I've searched the bugs bud did not found one that matched it properly.
When searching a link to place a feature request I did not found one :(
Where is this (at least for me) hidden feature request place ? :)
Re: Editor positions [message #326785 is a reply to message #326779] Tue, 01 April 2008 13:18 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Jan Kohnert wrote:
> I've searched the bugs bud did not found one that matched it properly.
> When searching a link to place a feature request I did not found one :(
> Where is this (at least for me) hidden feature request place ? :)

https://bugs.eclipse.org/bugs/
Previous Topic:Focus traversal and editable table cells
Next Topic:mouse listener for the vertical bar
Goto Forum:
  


Current Time: Sat Dec 21 14:47:11 GMT 2024

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

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

Back to the top