Package com._1c.g5.v8.dt.bsl.ui.menu
Class AbstractBslSpecCopyPasteHandler
- java.lang.Object
- 
- org.eclipse.core.commands.common.EventManager
- 
- org.eclipse.core.commands.AbstractHandler
- 
- com._1c.g5.v8.dt.bsl.ui.menu.AbstractBslSpecCopyPasteHandler
 
 
 
- 
- All Implemented Interfaces:
- org.eclipse.core.commands.IHandler,- org.eclipse.core.commands.IHandler2
 - Direct Known Subclasses:
- BslSpecCopyHandler,- BslSpecCutHandler,- BslSpecPasteHandler
 
 public abstract class AbstractBslSpecCopyPasteHandler extends org.eclipse.core.commands.AbstractHandlerAbstract handler for processing special operation - copy, cut and paste, forStringLiteralin Built-in language
- 
- 
Constructor SummaryConstructors Constructor Description AbstractBslSpecCopyPasteHandler()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcopyToClipboard(org.eclipse.jface.text.ITextSelection selection, boolean delete, org.eclipse.jface.text.source.SourceViewer viewer)Copy text fromselectionto the clipboardprotected booleanisStringLiteralContext(org.eclipse.jface.text.IDocument document, org.eclipse.swt.graphics.Point selectRange)Checks that selected range in the editor corresponding to the body of theStringLiteralprotected StringtransformCopyText(String copyText)Transfroms text deleting symbols "|" from it- 
Methods inherited from class org.eclipse.core.commands.AbstractHandleraddHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
 - 
Methods inherited from class org.eclipse.core.commands.common.EventManageraddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
 
- 
 
- 
- 
- 
Method Detail- 
isStringLiteralContextprotected boolean isStringLiteralContext(org.eclipse.jface.text.IDocument document, org.eclipse.swt.graphics.Point selectRange)Checks that selected range in the editor corresponding to the body of theStringLiteral- Parameters:
- selectRange- checking selected range, cannot be- null
- Returns:
- trueif selected range in the editor corresponding to the body of the- StringLiteral,- falseotherwise
 
 - 
transformCopyTextprotected String transformCopyText(String copyText) Transfroms text deleting symbols "|" from it- Parameters:
- copyText- transforming text, can't be- null
- Returns:
- transformed text without symbols "|", never null
 
 - 
copyToClipboardprotected void copyToClipboard(org.eclipse.jface.text.ITextSelection selection, boolean delete, org.eclipse.jface.text.source.SourceViewer viewer)Copy text fromselectionto the clipboard- Parameters:
- selection- actual- ITextSelectionfor copying text, cannot be- null
- delete-- trueif text should be deleted after copying,- falsecopying without deleting
- viewer- actual- SourceViewerfor copying, cannot be- null
 
 
- 
 
-