Package com._1c.g5.v8.dt.lcore.ui.editor
Class ViewerAwareIssueModificationContext
- java.lang.Object
-
- org.eclipse.xtext.ui.editor.model.edit.IssueModificationContext
-
- com._1c.g5.v8.dt.lcore.ui.editor.ViewerAwareIssueModificationContext
-
- All Implemented Interfaces:
org.eclipse.xtext.ui.editor.model.edit.IModificationContext
- Direct Known Subclasses:
EmbeddedIssueModificationContext
public class ViewerAwareIssueModificationContext extends org.eclipse.xtext.ui.editor.model.edit.IssueModificationContext
Extension ofIssueModificationContext
that stores invoking text viewer for further usage.
-
-
Constructor Summary
Constructors Constructor Description ViewerAwareIssueModificationContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.jface.text.ITextViewer
extractTextViewer(org.eclipse.ui.IEditorPart editor)
Extract text viewer from editor.org.eclipse.jface.text.ITextViewer
getTextViewer()
Get text viewer, associated with this modification context.org.eclipse.xtext.ui.editor.model.IXtextDocument
getXtextDocument(org.eclipse.emf.common.util.URI uri)
protected void
setTextViewer(org.eclipse.jface.text.ITextViewer viewer)
Set text viewer, associated with this modification context.
-
-
-
Method Detail
-
getXtextDocument
public org.eclipse.xtext.ui.editor.model.IXtextDocument getXtextDocument(org.eclipse.emf.common.util.URI uri)
- Specified by:
getXtextDocument
in interfaceorg.eclipse.xtext.ui.editor.model.edit.IModificationContext
- Overrides:
getXtextDocument
in classorg.eclipse.xtext.ui.editor.model.edit.IssueModificationContext
-
getTextViewer
public org.eclipse.jface.text.ITextViewer getTextViewer()
Get text viewer, associated with this modification context. Can returnnull
.- Returns:
- viewer, associated with this modification context.
or
null
, if there isn't one.
-
setTextViewer
protected void setTextViewer(org.eclipse.jface.text.ITextViewer viewer)
Set text viewer, associated with this modification context.- Parameters:
viewer
- viewer to set.
-
extractTextViewer
protected org.eclipse.jface.text.ITextViewer extractTextViewer(org.eclipse.ui.IEditorPart editor)
Extract text viewer from editor. Can returnnull
- Parameters:
editor
- the editor part, cannot benull
- Returns:
- text viewer, can be
null
-
-