Neues Tastenkürzel für Eclipse Editorfenster registrieren

O

OKdoi

Gast
Hallo,

ich möchte im Eclipse Sourcecode-editor ein neues Tastenkürzel registrieren. Ich hab jetzt sehr viel gelesen, ohne wirklich das zu finden was ich gesucht habe.

Mein derzeitiger Versuch sieht so aus:

Ich hab einen context erstellt, ein keybinding und ein kommand das ausgeführt werden soll, wenn das keybinding im kontext gedrückt wird.
Java:
<extension
    point="org.eclipse.ui.contexts">
   <context
        name="org.[...].MySelection"
        description="do it"
        id="org.eclipse.ui.textEditorScope"
        parentId="org.eclipse.ui.contexts.window">
    </context>

<extension
      point="org.eclipse.ui.commands">
   <command
         defaultHandler="FFFFF"
         id="myCommand"
         name="asfsfsd">
   </command>
</extension>
<extension
         point="org.eclipse.ui.bindings">
      <key
            sequence="M1+N"
            contextId="org.eclipse.ui.textEditorScope"
            commandId="myCommand"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"/>
</extension>

Der defaulthandler "FFFFF" führt nur ein sysout aus, falls er aufgerufen wird, was aber nie geschieht und ich wirklich nicht verstehe warum. Fehlt noch was? Context, Keybinding und command? Kann mir jemand weiter hlefen?
 
Ähnliche Java Themen
  Titel Forum Antworten Datum
S RCP Daten aus einem File auslesen, und daraus ein neues Objekt erstellen! Plattformprogrammierung 4
S RCP Neues Icon via p2 update Plattformprogrammierung 4
G neues project -> Plug-in project. Wie plugin starten? Plattformprogrammierung 6
L Ungewünschte Action bei Tastenkürzel Plattformprogrammierung 3
D RCP P2-Repository für Eclipse-Plugins Plattformprogrammierung 0
Z MySQL-Treiber in RAP-Anwendung für Jetty im OSGI- Equinox- Maven-Dschungel Plattformprogrammierung 0
D Hintergrundbild für E-Mail Plattformprogrammierung 2
R Welches Betriebsystem für Solution Architect Plattformprogrammierung 4
J RCP File Path von selected File in Package Explorer für RCP Plugin Plattformprogrammierung 2
S Wie lauffähige .jar-Datei mit Netbeans für Java3D Anwendung erstellen? Plattformprogrammierung 8
M Extension Point für Content Assist in JSP Editor gesucht Plattformprogrammierung 2
TheWhiteShadow RCP Konstrukt für Editor in Eclipse gesucht. Plattformprogrammierung 3
B Footer bei den Birt-Reports für nur eine Seite anzeigen Plattformprogrammierung 4
J Eclipse Plug-In für UML-Diagramme Problem Plattformprogrammierung 4
P RCP Welche Technologie für RCP Anwendungen? Plattformprogrammierung 10
N Was brauche ich für eine Web- und was für eine Fat-Client-Anwendung? Plattformprogrammierung 14
L RCP Eigene View für EditorPart? Plattformprogrammierung 3
C Eclipse Plugin Entwicklung: Editor für Flussdiagramme Plattformprogrammierung 6
A RCP Eigene Klasse für Views Plattformprogrammierung 13
V Ein Denkanstoß für GUI Plattformprogrammierung 17
S OSGi Bibliothek für alle Plattformprogrammierung 5
M RCP Icon für TreeView festlegen Plattformprogrammierung 2
T RCP Local History für eigenen Editor Plattformprogrammierung 9
B Eclipse RCP: Kontextsensitive Buttons für Editor und Hilfebutton für Wizard hinzufügen Plattformprogrammierung 5
P Update: Nur die JAR Datei für alle Betriebssysteme ? Plattformprogrammierung 9
hdi Schwierigkeiten mit Plugin für EPF (Eclipse Process Framework) Plattformprogrammierung 3
M Fehler bei Plugin Export für eigene Target Platform Plattformprogrammierung 3
M Eclipse RCP: Context Menu für MultiPageEditor erzeugen... Plattformprogrammierung 6
S Gleiche Preference Page für mehrere Preferences Plattformprogrammierung 2
dzim Fragmente für Bibliotheken Plattformprogrammierung 3
lumo Eclipse 3.5 Plug-In für ein Plug-In Plattformprogrammierung 3
M IMarker für GMF Plattformprogrammierung 2
R Wo/Wie Eclipse Plugin einhängen für Jar-Export? Plattformprogrammierung 14
N Tastenkombinationen für Actions Plattformprogrammierung 4
C AST (Abstract Syntax Tree)-Generierung für Eclipse-Plugin Plattformprogrammierung 5
R Plugin-Lokalisierung für Ganymede Plattformprogrammierung 12
B Eclipse: Extension Point für das Öffnen v Files Plattformprogrammierung 8
H Visueller Editor für Eclipse RCP Anwendung Plattformprogrammierung 3
M Erweitern Popup - Menüs für Eclipse Outline Plattformprogrammierung 2
G Pluginentwicklung für Eclipse Plattformprogrammierung 3

Ähnliche Java Themen

Neue Themen


Oben