| Summary: | New[client]eclipse.CommandService ._render function needs to render commad on left | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | libing wang <libingw> |
| Component: | Client | Assignee: | Project Inbox <e4.orion-inbox> |
| Status: | RESOLVED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | simon_kaegi, susan |
| Version: | 0.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
libing wang
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. |