Package com._1c.g5.v8.dt.bsl.qw.utils
Class BslQueryWizardUtils
- java.lang.Object
- 
- com._1c.g5.v8.dt.bsl.qw.utils.BslQueryWizardUtils
 
- 
 public class BslQueryWizardUtils extends Object Services methods for query wizard handlers
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classBslQueryWizardUtils.QueryTextInfoClass contains information about query text openning in query editor and query wizard
 - 
Constructor SummaryConstructors Constructor Description BslQueryWizardUtils()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static StringeditQueryText(String oldQueryText, org.eclipse.swt.widgets.Shell shell, org.eclipse.core.resources.IProject project, org.eclipse.jface.text.IDocument document, int offsetInDocument, boolean inEditor)Opens query wizard or query editor for editing existing query textstatic StringformatForBsl(String content, int offset, org.eclipse.jface.text.IDocument doc, String lineSeparator)Format query text for Bslstatic BslQueryWizardUtils.QueryTextInfogetCurrentStringLiteral(Module module, int offset, int mode, QueryTextResultProcessing.ResultProcessingParams params)GetBslQueryWizardUtils.QueryTextInfoby offset in the modulestatic voidopenQueryEditor(org.eclipse.core.commands.ExecutionEvent event)Open query editor from bsl modulestatic voidopenQueryWizard(org.eclipse.core.commands.ExecutionEvent event, int mode)Open query wizard from bsl module
 
- 
- 
- 
Method Detail- 
openQueryWizardpublic static void openQueryWizard(org.eclipse.core.commands.ExecutionEvent event, int mode)Open query wizard from bsl module- Parameters:
- event- - ExecutionEvent, cannot be- null
- mode- - open mode from QueryWizardMode
 
 - 
openQueryEditorpublic static void openQueryEditor(org.eclipse.core.commands.ExecutionEvent event) Open query editor from bsl module- Parameters:
- event- - ExecutionEvent, cannot be- null
 
 - 
editQueryTextpublic static String editQueryText(String oldQueryText, org.eclipse.swt.widgets.Shell shell, org.eclipse.core.resources.IProject project, org.eclipse.jface.text.IDocument document, int offsetInDocument, boolean inEditor) Opens query wizard or query editor for editing existing query text- Parameters:
- oldQueryText- exiting query text as- StringLiteralof Built-in language, cannot be- null
- shell- actual- Shellfor openning query wizard or query editor, cannot be- null
- project- actual- IProjectfor editing query text, cannot be- null
- document- actual- IDocumentfor editing query text, needs for formatting query- StringLiteralafter editing, cannot be- null
- offsetInDocument- actual offset in document of editing query text, needs for formatting query- StringLiteralafter editing
- inEditor-- trueif editing in query editor,- falseif editing in query wizard
- Returns:
- edited query text as StringLiteralof Built-in language, can benullif query text wasnot edited
 
 - 
formatForBslpublic static String formatForBsl(String content, int offset, org.eclipse.jface.text.IDocument doc, String lineSeparator) Format query text for Bsl- Parameters:
- content- - query text, cannot be- null
- offset- - query text offset from document begin
- doc- - document with query, cannot be- null
- lineSeparator- - line separator, cannot be- null
- Returns:
- formated query
 
 - 
getCurrentStringLiteralpublic static BslQueryWizardUtils.QueryTextInfo getCurrentStringLiteral(Module module, int offset, int mode, QueryTextResultProcessing.ResultProcessingParams params) GetBslQueryWizardUtils.QueryTextInfoby offset in the module- Parameters:
- module- actual module for getting query text information, cannot be- null
- offset- actual offswt in the Bsl module for getting information about query text
- mode- current mode, see- QueryWizard.QueryWizardMode
- params- parameter for query text result processing see- QueryTextResultProcessing.ResultProcessingParams, cannot be- null
- Returns:
- BslQueryWizardUtils.QueryTextInfowith information about- StringLiteralwith query text, never- null
 
 
- 
 
-