Alright, got a first hint and solved question Nr.1 with a XSelectionChangeListener. This only leaves question 2 open :)

Jimmy schrieb:
Now that I finally got my DisptachInterceptor running (thanks to Mathias), I'd like my application to have the following behaviour:

Depending on the cursor context I'd like to enable or gray-out commands.

1.) How can I fire an event whenever the context of the cursor changes. For example the Cursor moves from one paragraph style to another, or into a texttable ...I always have to check for the context and do step (2).

2.) How can I gray-out and enable commands at runtime? I got my DispatchInterceptor to gray out commands when initiated but how can I change the behaviour at runtime? Do I have to write more than one DispatchProviderInterceptor and release and register them all the time depending on the context?

Thanks for the help
Jimmy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to