Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ease-dev] Format source file from EASE Script

> I want to format a source file with an EASE script. Does someone know how
I can trigger formatting from code?

Not directly, but the Platform module can execute command handlers. The
Platform.executeCommand() method might help. It accepts a commandId and
optional command parameters. Now you would need to find out which eclipse
command handler is responsible for formatting source code. There has to
exist one as we have a context menu entry for this. An open question is how
to pass a file instance to the handler. If it works with command parameters,
it would be easy. If it uses the current selection you would have to
basically copy the code...

Best regards
Christian 

Attachment: smime.p7s
Description: S/MIME cryptographic signature


Back to the top