Package com._1c.g5.v8.dt.qw.ui
Class QueryWizard
- java.lang.Object
- 
- org.eclipse.jface.window.Window
- 
- org.eclipse.jface.dialogs.Dialog
- 
- com._1c.g5.v8.dt.qw.ui.dialogs.AbstractQueryWizardDialog
- 
- com._1c.g5.v8.dt.qw.ui.QueryWizard
 
 
 
 
- 
- All Implemented Interfaces:
- org.eclipse.jface.window.IShellProvider
 
 public class QueryWizard extends AbstractQueryWizardDialog Query wizard dialog
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classQueryWizard.QueryWizardModeQuery wizard run mode
 - 
Field Summary- 
Fields inherited from class org.eclipse.jface.dialogs.DialogblockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
 
- 
 - 
Constructor SummaryConstructors Constructor Description QueryWizard(int mode, org.eclipse.swt.widgets.Shell parentShell, org.eclipse.core.resources.IProject contextProject, String queryText, int style, QueryWizardControl parentQueryWizardControl, boolean editable, IBmNavigatorOrderIndexManager bmNavigatorOrderIndexManager, IConfigurationProvider configurationProvider)QueryWizard(int mode, org.eclipse.swt.widgets.Shell parentShell, org.eclipse.core.resources.IProject contextProject, String queryText, IBmNavigatorOrderIndexManager bmNavigatorOrderIndexManager, IConfigurationProvider configurationProvider)QueryWizard(org.eclipse.swt.widgets.Shell parentShell, org.eclipse.core.resources.IProject contextProject, String queryText, int style, IBmNavigatorOrderIndexManager bmNavigatorOrderIndexManager, IConfigurationProvider configurationProvider)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanclose()protected voidconfigureShell(org.eclipse.swt.widgets.Shell newShell)protected org.eclipse.swt.widgets.ControlcreateButtonBar(org.eclipse.swt.widgets.Composite parent)protected org.eclipse.swt.widgets.ControlcreateDialogArea(org.eclipse.swt.widgets.Composite parent)Create contents of the dialog.QlEditorgetActiveQlEditor()Get active QL editororg.eclipse.emf.ecore.EObjectgetContextObject()Get context objectprotected org.eclipse.swt.graphics.PointgetInitialLocation(org.eclipse.swt.graphics.Point initialSize)protected org.eclipse.swt.graphics.PointgetInitialSize()intgetMode()Get current query wizard modeQuerySchemagetQuerySchema()Get current query schemaStringgetQueryText()Get query textStringgetQueryTextForTextModule(String lineFormatter)Get query text ready for insert to text moduleprotected voidhandleShellCloseEvent()intopen()voidpressCancel()Cancel pressedvoidpressOk()Ok pressedvoidsetCloseAction(org.eclipse.jface.action.Action queryWizardCloseAction)Set action on close.voidsetContextObject(org.eclipse.emf.ecore.EObject contextObject)Set MdObject for generating template for output resultvoidsetHotKeyListener(org.eclipse.swt.widgets.Listener listener)Set key listenervoidsetResultProcessingParams(QueryTextResultProcessing.ResultProcessingParams params)Set parameters for result processing- 
Methods inherited from class com._1c.g5.v8.dt.qw.ui.dialogs.AbstractQueryWizardDialoggetDialogLocation, getDialogSize, getInitialSize, saveState
 - 
Methods inherited from class org.eclipse.jface.dialogs.DialogapplyDialogFont, buttonPressed, cancelPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonsForButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
 - 
Methods inherited from class org.eclipse.jface.window.WindowcanHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
 
- 
 
- 
- 
- 
Constructor Detail- 
QueryWizardpublic QueryWizard(org.eclipse.swt.widgets.Shell parentShell, org.eclipse.core.resources.IProject contextProject, String queryText, int style, IBmNavigatorOrderIndexManager bmNavigatorOrderIndexManager, IConfigurationProvider configurationProvider)- Parameters:
- parentShell- - parent shell
- contextProject- - project
- queryText- - query text
- style- the shell style
- bmNavigatorOrderIndexManager- - service to get- IBmNavigatorOrderIndexProvider. Cannot be- null.
- configurationProvider- - service to get configuration using eObject. Cannot be- null.
 
 - 
QueryWizardpublic QueryWizard(int mode, org.eclipse.swt.widgets.Shell parentShell, org.eclipse.core.resources.IProject contextProject, String queryText, IBmNavigatorOrderIndexManager bmNavigatorOrderIndexManager, IConfigurationProvider configurationProvider)- Parameters:
- mode- - query wizard mode type (QueryWizardMode)
- parentShell- - parent shell
- contextProject- - project
- queryText- - query text
- bmNavigatorOrderIndexManager- - service to get- IBmNavigatorOrderIndexProvider. Cannot be- null.
- configurationProvider- - service to get configuration using eObject. Cannot be- null.
 
 - 
QueryWizardpublic QueryWizard(int mode, org.eclipse.swt.widgets.Shell parentShell, org.eclipse.core.resources.IProject contextProject, String queryText, int style, QueryWizardControl parentQueryWizardControl, boolean editable, IBmNavigatorOrderIndexManager bmNavigatorOrderIndexManager, IConfigurationProvider configurationProvider)- Parameters:
- mode- - query wizard mode type (QueryWizardMode)
- parentShell- - parent shell
- contextProject- - project
- queryText- - query text
- parentQueryWizardControl- - parent query wizard for nested query
- editable- the editable state,- trueif this dialog is editable,- falseotherwise
- bmNavigatorOrderIndexManager- - service to get- IBmNavigatorOrderIndexProvider. Cannot be- null.
- configurationProvider- - service to get configuration using eObject. Cannot be- null.
 
 
- 
 - 
Method Detail- 
openpublic int open() - Overrides:
- openin class- org.eclipse.jface.window.Window
 
 - 
getQueryTextpublic String getQueryText() Get query text- Returns:
- query text
 
 - 
getQueryTextForTextModulepublic String getQueryTextForTextModule(String lineFormatter) Get query text ready for insert to text module- Parameters:
- lineFormatter- - line formatter
- Returns:
- query text
 
 - 
setContextObjectpublic void setContextObject(org.eclipse.emf.ecore.EObject contextObject) Set MdObject for generating template for output result- Parameters:
- contextObject- - context object with reference 'templates'
 
 - 
getContextObjectpublic org.eclipse.emf.ecore.EObject getContextObject() Get context object- Returns:
- context object
 
 - 
setCloseActionpublic void setCloseAction(org.eclipse.jface.action.Action queryWizardCloseAction) Set action on close. Need for not modal style.- Parameters:
- queryWizardCloseAction- - close action
 
 - 
getQuerySchemapublic QuerySchema getQuerySchema() Get current query schema- Returns:
- query schema
 
 - 
pressOkpublic void pressOk() Ok pressed
 - 
pressCancelpublic void pressCancel() Cancel pressed
 - 
closepublic boolean close() - Overrides:
- closein class- AbstractQueryWizardDialog
 
 - 
setHotKeyListenerpublic void setHotKeyListener(org.eclipse.swt.widgets.Listener listener) Set key listener- Parameters:
- listener- - listener
 
 - 
getModepublic int getMode() Get current query wizard mode- Returns:
- combination of QueryWizardMode flags
 
 - 
getActiveQlEditorpublic QlEditor getActiveQlEditor() Get active QL editor- Returns:
- active QL editor
 
 - 
setResultProcessingParamspublic void setResultProcessingParams(QueryTextResultProcessing.ResultProcessingParams params) Set parameters for result processing- Parameters:
- params- - result processing parameters
 
 - 
configureShellprotected void configureShell(org.eclipse.swt.widgets.Shell newShell) - Overrides:
- configureShellin class- org.eclipse.jface.window.Window
 
 - 
handleShellCloseEventprotected void handleShellCloseEvent() - Overrides:
- handleShellCloseEventin class- org.eclipse.jface.window.Window
 
 - 
createDialogAreaprotected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent) Create contents of the dialog.- Overrides:
- createDialogAreain class- org.eclipse.jface.dialogs.Dialog
- Parameters:
- parent-
 
 - 
createButtonBarprotected org.eclipse.swt.widgets.Control createButtonBar(org.eclipse.swt.widgets.Composite parent) - Overrides:
- createButtonBarin class- org.eclipse.jface.dialogs.Dialog
 
 - 
getInitialSizeprotected org.eclipse.swt.graphics.Point getInitialSize() - Overrides:
- getInitialSizein class- AbstractQueryWizardDialog
 
 - 
getInitialLocationprotected org.eclipse.swt.graphics.Point getInitialLocation(org.eclipse.swt.graphics.Point initialSize) - Overrides:
- getInitialLocationin class- AbstractQueryWizardDialog
 
 
- 
 
-