Community
Participate
Working Groups
currently eclipse.CommandService ._render function always uses dojo.place(image, parent, "last"); to render a command , which ends up rendering the command floating to the right end of the tool bar. In compare editor case , there are two groups of comands 1. Commands for diff operations. e.g. "next diff" , "copy to left" 2. Commands for undo , redo and save on the left side . I would like group 1 to be rendered on the right end and group 2 on the left end of the page action tool bar.
I think there's a better way to achieve this. The "dom" scoped contributions are designed to let you put dom elements wherever you want commands to render. So you can have multiple spans in your toolbar, aligned and placed as needed. The contribute the command to the appropriate dom ID. So all your commands get defined in the "dom" scope. commandService.addCommand(nextDiffCommand, "dom"); etc... You could have span for diff commands and a span for editor commands. Contributions look like this: commandService.registerCommandContribution("orion.nextdiff", 1, "diffSpanId"); The editor commands can be generated as normally (into a different span).
I don't think is relevant anymore.