Class XtextEditorUtil
- java.lang.Object
-
- com._1c.g5.v8.dt.lcore.ui.editor.util.XtextEditorUtil
-
public final class XtextEditorUtil extends Object
Utility class for accessing activeXtextEditor
andEmbeddedEditor
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.eclipse.xtext.ui.editor.embedded.EmbeddedEditor
getActiveEmbeddedEditor()
Get actualEmbeddedEditor
.static org.eclipse.xtext.ui.editor.XtextEditor
getActiveXtextEditor()
Get actualXtextEditor
.
-
-
-
Method Detail
-
getActiveXtextEditor
public static org.eclipse.xtext.ui.editor.XtextEditor getActiveXtextEditor()
Get actualXtextEditor
. Can returnnull
.
If active workbench part is adaptable toXtextEditor
, then will extract thisXtextEditor
form part.- Returns:
- active text editor if can obtain it or
null
otherwise.
-
getActiveEmbeddedEditor
public static org.eclipse.xtext.ui.editor.embedded.EmbeddedEditor getActiveEmbeddedEditor()
Get actualEmbeddedEditor
. Can returnnull
.
If active part is instance ofIEmbeddedEditorSource
then will return selected editor inside this form editor.- Returns:
- active text editor if can obtain it or
null
otherwise.
-
-