|
|
|
Re: How to react to change in AutoEditStrategyProvider [message #720202 is a reply to message #719987] |
Tue, 30 August 2011 05:56 |
Sebastian Zarnekow Messages: 3118 Registered: July 2009 |
Senior Member |
|
|
Hi Henrik,
would you be willing to contribute a minimalist preference page for the
auto edit configuration to the framework?
Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
On 29.08.11 17:54, Henrik Lindberg wrote:
> Thanks Sebastian,
> I ended up with a wrapper that checks for enablement before calling the
> original customizeDocumentCommand. Works like a charm.
>
> I anyone is interested, the code is (soon) at github cloudsmith/geppetto.
>
> - henrik
>
> On 8/29/11 8:28 AM, Sebastian Zarnekow wrote:
>> Hi Henrik,
>>
>> I think the cleanest way would be to customize the strategies itself.
>> They should listen to preference changes and guard themselves if they
>> are disabled (e.g. like in
>> org.eclipse.jdt.internal.ui.text.java.SmartSemicolonAutoEditStrategy.customizeDocumentCommand(IDocument,
>>
>> DocumentCommand)
>>
>> Regards,
>> Sebastian
>
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03444 seconds