| Summary: | Add generic template content assist support | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Silenio Quarti <Silenio_Quarti> |
| Component: | Editor | Assignee: | Silenio Quarti <Silenio_Quarti> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | gheorghe |
| Version: | 3.0 | ||
| Target Milestone: | 3.0 M1 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
Added two new classes: orion.editor.Template - represents a generic template orion.editor.TemplateContentAssist - collection of templates This patch also re-implements JSTemplateContentAssist, CSSTemplateContentAssit and HTMContentAssist using the new support and added more templates. The patch fixed the line delimiters and tabs inserted by templates so that they respect the editor settings (i.e. expandTab). Previously, we were always inserting \n even if the editor line delimiter is \r\n. Tabs are expanded to spaces if appropriate. Moved CSS and JS keywords into a separate file so that they are shared be textStyler.js and the content assist classes. The keywords were out of sync. Fixed the embeddededitor and samples to have a LinkedMode. Fixed: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=d64751fe6abc8f87db8f49d06ea8c753e2fa9407 |
We should support templates like eclipse desktop. For example: for (var ${i} = 0; ${i} < ${array}.length; ${i}++) { var ${value} = ${array}[${i}]; } Currently, our css, js and html content assist have some templates, but it can not be easily extended.