|
Re: Binding keys to command sequences? [message #328666 is a reply to message #328036] |
Fri, 30 May 2008 17:38 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
|
This is a multi-part message in MIME format.
--------------020705030001050000050208
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Basically you want a compositor command or outright scripting. That is
not currently available in the SDK, although something simple could be
deployed yourself.
Where something like:
<key
commandId="z.ex.command.runCommands"
contextId="org.eclipse.ui.contexts.window"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M1+5 L">
<parameter
id="z.ex.command.script"
value="z.ex.command.search">
</parameter>
</key>
+ the script:
ArrayList search = new ArrayList();
search.add(" org.eclipse.ui.views.showView(org.eclipse.ui.views.showView. viewId=org.eclipse.search.ui.views.SearchView) ");
search.add("org.eclipse.ui.navigate.next");
scripts.put("z.ex.command.search", search);
would execute.
I've attached the example plugin that can be imported into the workspace.
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
--------------020705030001050000050208
Content-Type: application/zip;
name="z.ex.command.zip"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="z.ex.command.zip"
UEsDBBQACAAIAIBsvjgAAAAAAAAAAAAAAAAXAAAAei5leC5jb21tYW5kLy5j bGFzc3BhdGiV
kMFKAzEQhs/2KZbcO2uLBw+7LSIrtGAt7dZrSZNhOxoncZIU+/a6YKkICr3N P3zz8TPV9OPN
FQeUSJ5rNYJrVSAbb4m7Wm3ah+Gtmk4GlXE6xqDTfjK4OgfkJMfildjWynhW Rb+slZcO0DgK
EeHFJnA6s9l/GWG+arb3T4v2brZoVuVvjjihsHZgcZc7yPR9iQLrpNlqsc+P 7TFgOR+vm+EI
blR5aZ9gEYwXBMH3TIJ26XJHH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AAA AAAAAAB6LmV4
LmNvbW1hbmQvLmNsYXNzcGF0aFBLAQIUABQACAAIAIBsvjiBTa3n5QAAAIUC AAAVAAAAAAAA
AAAAAAAAABIBAAB6LmV4LmNvbW1hbmQvLnByb2plY3RQSwECFAAUAAgACACA bL44VCxpykcA
AABoAAAAHQAAAAAAAAAAAAAAAAA6AgAAei5leC5jb21tYW5kL2J1aWxkLnBy b3BlcnRpZXNQ
SwECFAAUAAgACACAbL4444/hFncBAABGBAAAFwAAAAAAAAAAAAAAAADMAgAA ei5leC5jb21t
YW5kL3BsdWdpbi54bWxQSwECFAAUAAgACACAbL449lS0YpsAAABHAQAAMQAA AAAAAAAAAAAA
AACIBAAAei5leC5jb21tYW5kLy5zZXR0aW5ncy9vcmcuZWNsaXBzZS5qZHQu Y29yZS5wcmVm
c1BLAQIUABQACAAIAIBsvjgQGOMCuwAAAEQBAAAhAAAAAAAAAAAAAAAAAIIF AAB6LmV4LmNv
bW1hbmQvTUVUQS1JTkYvTUFOSUZFU1QuTUZQSwECFAAUAAgACACAbL446nAZ JTECAADEBQAA
LAAAAAAAAAAAAAAAAACMBgAAei5leC5jb21tYW5kL3NyYy96L2V4L2NvbW1h bmQvQWN0aXZh
dG9yLmphdmFQSwECFAAUAAgACACAbL449SC6VU8CAACHBwAAMAAAAAAAAAAA AAAAAAAXCQAA
ei5leC5jb21tYW5kL3NyYy96L2V4L2NvbW1hbmQvU2NyaXB0SGFuZGxlci5q YXZhUEsBAhQA
FAAIAAgAgGy+ODsr6wv1AAAAsAEAADEAAAAAAAAAAAAAAAAAxAsAAHouZXgu Y29tbWFuZC9z
cmMvei9leC9jb21tYW5kL1NjcmlwdElkVmFsdWVzLmphdmFQSwUGAAAAAAkA CQDdAgAAGA0A
AAAA
--------------020705030001050000050208--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
|
|
|
Powered by
FUDForum. Page generated in 0.03689 seconds