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 Summary
Nested Classes Modifier and Type Class Description static class
BslQueryWizardUtils.QueryTextInfo
Class contains information about query text openning in query editor and query wizard
-
Constructor Summary
Constructors Constructor Description BslQueryWizardUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
formatForBsl(String content, int offset, org.eclipse.jface.text.IDocument doc)
Format query text for Bslstatic BslQueryWizardUtils.QueryTextInfo
getCurrentStringLiteral(Module module, int offset, int mode, QueryTextResultProcessing.ResultProcessingParams params)
GetBslQueryWizardUtils.QueryTextInfo
by offset in the modulestatic void
openQueryEditor(org.eclipse.core.commands.ExecutionEvent event)
Open query editor from bsl modulestatic void
openQueryWizard(org.eclipse.core.commands.ExecutionEvent event, int mode)
Open query wizard from bsl module
-
-
-
Method Detail
-
openQueryWizard
public static void openQueryWizard(org.eclipse.core.commands.ExecutionEvent event, int mode)
Open query wizard from bsl module- Parameters:
event
- - ExecutionEvent, cannot benull
mode
- - open mode from QueryWizardMode
-
openQueryEditor
public static void openQueryEditor(org.eclipse.core.commands.ExecutionEvent event)
Open query editor from bsl module- Parameters:
event
- - ExecutionEvent, cannot benull
-
formatForBsl
public static String formatForBsl(String content, int offset, org.eclipse.jface.text.IDocument doc)
Format query text for Bsl- Parameters:
content
- - query text, cannot benull
offset
- - query text offset from document begindoc
- - document with query, cannot benull
- Returns:
- formated query
-
getCurrentStringLiteral
public static BslQueryWizardUtils.QueryTextInfo getCurrentStringLiteral(Module module, int offset, int mode, QueryTextResultProcessing.ResultProcessingParams params)
GetBslQueryWizardUtils.QueryTextInfo
by offset in the module- Parameters:
module
- actual module for getting query text information, cannot benull
offset
- actual offswt in the Bsl module for getting information about query textmode
- current mode, seeQueryWizard.QueryWizardMode
params
- parameter for query text result processing seeQueryTextResultProcessing.ResultProcessingParams
, cannot benull
- Returns:
BslQueryWizardUtils.QueryTextInfo
with information aboutStringLiteral
with query text, nevernull
-
-