Class CustomEmbeddedEditorModelAccess
- java.lang.Object
-
- org.eclipse.xtext.ui.editor.embedded.EmbeddedEditorModelAccess
-
- com._1c.g5.v8.dt.lcore.ui.editor.embedded.CustomEmbeddedEditorModelAccess
-
public class CustomEmbeddedEditorModelAccess extends org.eclipse.xtext.ui.editor.embedded.EmbeddedEditorModelAccess
Extension ofEmbeddedEditorModelAccess
that will reattach resource any time model is updated (created byEmbeddedEditorResourceProvider
.
-
-
Constructor Summary
Constructors Constructor Description CustomEmbeddedEditorModelAccess(org.eclipse.jface.text.source.SourceViewer viewer, org.eclipse.xtext.ui.editor.embedded.IEditedResourceProvider resourceProvider, boolean insertLineBreaks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
setModel(org.eclipse.xtext.ui.editor.model.XtextDocument document, String prefix, String editablePart, String suffix)
void
updateEditablePart(String editablePart)
Update editable part of this embedded editor model.void
updateModel(String prefix, String editablePart, String suffix)
-
-
-
Method Detail
-
updateModel
public void updateModel(String prefix, String editablePart, String suffix)
- Overrides:
updateModel
in classorg.eclipse.xtext.ui.editor.embedded.EmbeddedEditorModelAccess
-
setModel
protected void setModel(org.eclipse.xtext.ui.editor.model.XtextDocument document, String prefix, String editablePart, String suffix)
- Overrides:
setModel
in classorg.eclipse.xtext.ui.editor.embedded.EmbeddedEditorModelAccess
-
updateEditablePart
public void updateEditablePart(String editablePart)
Update editable part of this embedded editor model.- Parameters:
editablePart
- part to update, nevernull
-
-