[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform] How to bind Tab in plugin.xml for an editor.
|
- From: "Gary E. Barnes" <gebarnes@xxxxxxxxxx>
- Date: Thu, 22 May 2008 14:08:43 -0700
- Newsgroups: eclipse.platform
- Organization: EclipseCorner
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.14eol) Gecko/20080410 Red Hat/1.0.9-0.17.el3 SeaMonkey/1.0.9
How do I do what the Java editor does for the Tab key?
The Java editor binds Control-I to "Correct Indentation" and it binds Tab to a
function that works almost the same if the cursor is in the whitespace at the
start of a line. But I can't find the Tab binding anywhere. I can find the
Control-I binding,
<extension point="org.eclipse.ui.bindings">
<key sequence="M1+I"
commandId="org.eclipse.jdt.ui.edit.text.java.indent"
......
But what is it binding to Tab and more importantly how is it doing it?
There's nothing bound to Tab according to the Preferences>Keys page but it
obviously is bound to something. I would like to provide the same general
functionality in my editor, but what goes into the plugin.xml file?
Gary