Class DialogPosition
- java.lang.Object
-
- org.eclipse.jface.text.Position
-
- org.eclipse.jface.text.link.LinkedPosition
-
- com._1c.g5.v8.dt.lcore.ui.text.links.DialogPosition
-
public abstract class DialogPosition extends org.eclipse.jface.text.link.LinkedPosition
SpecialLinkedPosition
which opens dialog for editing text in focus on it. ThisLinkedPosition
works only withCustomLinkedModeModel
andCustomLinkedModeUI
-
-
Constructor Summary
Constructors Constructor Description DialogPosition(org.eclipse.jface.text.IDocument document, int offset, int length)
Constructor.DialogPosition(org.eclipse.jface.text.IDocument document, int offset, int length, int sequence)
Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract String
editInDialog(org.eclipse.swt.widgets.Shell shell)
Opens dialog and editing value in currentLinkedPosition
-
Methods inherited from class org.eclipse.jface.text.link.LinkedPosition
equals, getContent, getDocument, getSequenceNumber, hashCode, includes, includes, includes, includes, overlapsWith, setSequenceNumber
-
-
-
-
Constructor Detail
-
DialogPosition
public DialogPosition(org.eclipse.jface.text.IDocument document, int offset, int length, int sequence)
Constructor. Creates instance for concreteIDocument
, offset, lenght and sequence number- Parameters:
document
- actual document for creating instance, cannot benull
offset
- offset of creatingLinkedPosition
length
- lenght of creatingLinkedPosition
sequence
- current sequence number inLinkedPositionGroup
-
DialogPosition
public DialogPosition(org.eclipse.jface.text.IDocument document, int offset, int length)
Constructor. Creates instance for concreteIDocument
, offset, lenght- Parameters:
document
- actual document for creating instance, cannot benull
offset
- offset of creatingLinkedPosition
length
- lenght of creatingLinkedPosition
-
-
Method Detail
-
editInDialog
public abstract String editInDialog(org.eclipse.swt.widgets.Shell shell)
Opens dialog and editing value in currentLinkedPosition
- Parameters:
shell
- actualShell
for open dialog, cannot benull
- Returns:
- new content of the
LinkedPosition
, can benull
if content was not changed
-
-