Package com._1c.g5.v8.dt.bsl.ui.menu
Class BslHandlerUtil
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.ui.menu.BslHandlerUtil
-
public final class BslHandlerUtil extends Object
Contains common method for all menu command handler for Bsl Module
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
createLinkedModel(org.eclipse.jface.text.ITextViewer viewer, org.eclipse.jface.text.link.LinkedPosition[] linkedPos)
Creates Linked Model in viewerstatic org.eclipse.xtext.ui.editor.XtextEditor
extractXtextEditor(org.eclipse.ui.IWorkbenchPart part)
Extracts actualXtextEditor
static org.eclipse.jface.text.ITextViewer
getTextViewer(org.eclipse.ui.texteditor.ITextEditor editor)
Gets actualITextViewer
-
-
-
Method Detail
-
extractXtextEditor
public static org.eclipse.xtext.ui.editor.XtextEditor extractXtextEditor(org.eclipse.ui.IWorkbenchPart part)
Extracts actualXtextEditor
- Parameters:
part
- currentIWorkbenchPart
- Returns:
- found
XtextEditor
ornull
if actualIWorkbenchPart
doesn't haveXtextEditor
adapter
-
getTextViewer
public static org.eclipse.jface.text.ITextViewer getTextViewer(org.eclipse.ui.texteditor.ITextEditor editor)
Gets actualITextViewer
- Parameters:
editor
- currentITextEditor
- Returns:
- found
ITextViewer
ornull
ifITextViewer
wasn't found
-
createLinkedModel
public static void createLinkedModel(org.eclipse.jface.text.ITextViewer viewer, org.eclipse.jface.text.link.LinkedPosition[] linkedPos) throws org.eclipse.jface.text.BadLocationException
Creates Linked Model in viewer- Parameters:
viewer
- current viewerlinkedPos
- array ofLinkedPosition
- Throws:
org.eclipse.jface.text.BadLocationException
- iflinkedPos
intersect
-
-