| Summary: | [Xtext] [EmbeddedEditorFactory] HighlightingHelper should be installed as default. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Holger Schill <Holger.Schill> | ||||||
| Component: | Xtext | Assignee: | Holger Schill <Holger.Schill> | ||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | sebastian.zarnekow, sven.efftinge | ||||||
| Version: | 2.3.0 | Flags: | sebastian.zarnekow:
juno+
|
||||||
| Target Milestone: | M7 | ||||||||
| Hardware: | Macintosh | ||||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Holger Schill
It would be nice to move the classes from org.eclipse.xtext.ui.codetemplates.ui.partialEditing to org.eclipse.xtext.ui.editor.embedded but I am afraid we will ran into API problems? What do others think? That package is not exported as public but is internal, so we could move it. These classes duplicate code which is not really extensible in the original classes. I think we should not move them but fix the original code, instead. I see. These two candidates are just a copies of stuff that is inside of org.eclipse.xtext.ui.editor.syntaxcoloring. org.eclipse.xtext.ui.codetemplates.ui.partialEditing.HighlightingHelper org.eclipse.xtext.ui.codetemplates.ui.partialEditing.HighlightingReconciler I think marking some methods protected instead of private in the implementation would solve the issue but the modified implementations should be move to org.eclipse.xtext.ui.editor.embedded I think. Created attachment 214377 [details]
Suggested fix
Thanks for the proposed patch. Do we have to mark everything as protected? This renders a lot of internal state to be API which I'd not recommend for this low level component. No we do not have to mark everything as protected but I thought it could be usefull for other possible clients but you are right. I will reduce the visibility as much as possible. Created attachment 214393 [details]
New version with less API changes
Looks good. +1 pushed patch to master. Requested via bug 522520. -M. Requested via bug 522520. -M. |