Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Key binding in a multi page editor
Key binding in a multi page editor [message #214724] Mon, 02 June 2008 14:20 Go to next message
Eclipse UserFriend
Originally posted by: vasanthv16.yahoo.com

Hi,

I have a multi page editor, in which, one of the pages is a Structured
Text Editor. I have a separate MultiPageEditorSite for the source page
which uses the id "org.eclipse.core.runtime.xml.source", and my multi
page editor's action bar contributor delegates to
org.eclipse.wst.xml.ui.internal.tabletree.SourcePageActionCo ntributor
(yes, its internal) for the source page.

So, my source page behaves like an xml editor and, since I delegate to
the SourcePageActionContributor, I get all menu contributions for an XML
editor whenever I move into the source page. So far so good.

The one problem I face is, key bindings don't seem to work correctly
when I am in the source page. For example, Edit --> Content Assist works
and brings up content assist. But Ctrl+Space doesn't work. I see that
the menu item in the Edit menu does show "Content Assist Ctrl+Space". I
also see that Help --> Key Assist shows "Content Assist Ctrl+Space" as
one of the listing.

Since I see that there is indeed an active key binding, and also that
the global menu item action works fine, I am not sure what the problem is.

Does this ring a bell? Or atleast, can someone point me to where to look?

In an earlier thread ("XML Editor - Key binding for Expand Selection
To") I have stated a similar issue with the XML Editor which seems to
face a similar problem with some other key bindings. Are these issues
related?

Thanks,
Vasanth
Re: Key binding in a multi page editor [message #214808 is a reply to message #214724] Wed, 04 June 2008 06:51 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4425
Registered: July 2009
Senior Member

Vasanth Velusamy wrote:
> Does this ring a bell? Or atleast, can someone point me to where to look?
>
> In an earlier thread ("XML Editor - Key binding for Expand Selection
> To") I have stated a similar issue with the XML Editor which seems to
> face a similar problem with some other key bindings. Are these issues
> related?

I remember this being an ugly issue around 2.0's release, bad enough
that it prompted us to redo a lot of our contributions in 3.0.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=185475#c7 is, I think,
the last comment in a long series of bugs about keybindings for
contributions not using the command/binding/handler mechanisms in
multi-page editors.

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Setting TCP/IP Monitor max message size
Next Topic:Serve modules without publishing causing classpath issue
Goto Forum:
  


Current Time: Tue Mar 19 07:32:27 GMT 2024

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

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

Back to the top